|
Oracle Fusion Middleware JavaScript API Reference for Oracle ADF Faces 11g Release 2 (11.1.2.0.0) E17489-01 |
||||||||
PREV NEXT | FRAMES NO FRAMES Warning: private items are visible |
org.ecmascript.object.Object | +--oracle.adf.view.js.base.AdfObject | +--oracle.adfinternal.view.js.laf.dhtml.rich.AdfDhtmlElementAnimator
public class AdfDhtmlElementAnimator extends AdfObject
Example:
AdfDhtmlElementAnimator.animate(
AdfDhtmlElementAnimator.FRAME_METHOD_SLOW_FAST_SLOW,
500,
[
{
"element": document.getElementById("div1"),
"properties":
{
"width": 100,
"height": 200,
"alpha": 0
}
},
{
"element": document.getElementById("div2"),
"properties":
{
"width": 200,
"height": 100,
"alpha": 100
}
}
],
animationFrameRenderedFunction,
animationCompleteFunction,
callbackParameters,
component);
animate(Object, Number, Array
Field Summary |
|
---|---|
private Object |
|
private Object |
|
private Object |
|
private Object |
|
public static Object |
|
public static Object |
|
public static Object |
|
public static Object |
|
private Object |
|
private Object |
|
private static Object |
|
private Object |
|
private Object |
Fields inherited from oracle.adf.view.js.base.AdfObject |
constructor, superclass |
Fields inherited from org.ecmascript.object.Object |
prototype |
Constructor Summary |
|
---|---|
private |
Method Summary |
|
---|---|
public static AdfDhtmlElementAnimator |
|
private Object |
|
private static Object |
|
private Object |
|
private static Object |
|
private static Object |
|
protected Object |
|
private static Object |
|
private Object |
|
public Object |
|
private static Object |
|
Methods inherited from oracle.adf.view.js.base.AdfObject |
adopt, clone, createCallback, createInitializedObject, createSubclass, ensureClassInitialization, equals, getClass, GetLazyArrayProperty, GetLazyMapProperty, getTypeName, toDebugString, toString |
Field Detail |
---|
private Object _afterAnimate
private Object _callbackParameters
private Object _component
private Object _duringAnimate
public static Object FRAME_METHOD_ACCELERATING
public static Object FRAME_METHOD_CONSTANT_SPEED
public static Object FRAME_METHOD_DECELERATING
public static Object FRAME_METHOD_SLOW_FAST_SLOW
private Object _frameCount
private Object _frameMethod
private static Object _FRAMES_PER_MILLISECOND
private Object _itemState
private Object _startTime
Constructor Detail |
---|
private AdfDhtmlElementAnimator(Object itemState,
Object duringAnimate,
Object afterAnimate,
Object callbackParameters,
Object component,
Object frameMethod,
Object frameCount)
AdfDhtmlElementAnimator.animate()
to start an animation and get its instance.itemState |
||
duringAnimate |
||
afterAnimate |
||
callbackParameters |
||
component |
||
frameMethod |
||
frameCount |
Method Detail |
---|
public static AdfDhtmlElementAnimator animate(Object frameMethod,
Number timeLength,
Array<Object> items,
Function duringAnimate,
Function afterAnimate,
Object callbackParameters,
AdfUIComponent component)
frameMethod |
- | the AdfDhtmlElementAnimator.FRAME_METHOD_* choice for how frames are spaced on the timeline |
timeLength |
- | milliseconds for how long the animation will last |
items |
- | an array of animation item Object s whose properties are:
|
duringAnimate |
- | the function to be executed at each processed animation frame (if a frame is skipped, the function won't be called); you may specify null if no execution is needed |
afterAnimate |
- | the function to be executed after animation is complete or null if no execution is needed |
callbackParameters |
- | an optional object containing key-value pairs that will be passed to the duringAnimate and the afterAnimate function if applicable |
component |
- | the component being animated; used to ensure descendant resize notifications get invoked after animations are complete |
AdfDhtmlElementAnimator
- the animator that has been started (so you can stop it)private Object _animationStep()
Object
private static Object _computeFrameProperty(Object frameNumber,
Object initialValue,
Object finalValue,
Object frameMethod,
Object lastFrameNumber)
frameNumber |
||
initialValue |
||
finalValue |
||
frameMethod |
||
lastFrameNumber |
Object
private Object _destroy()
Object
private static Object _gatherSizeState(Object state,
Object finalProperties,
Object element,
Object sizeKey,
Object currentSizeProperty,
Object borderStartKey,
Object borderEndKey)
state |
||
finalProperties |
||
element |
||
sizeKey |
||
currentSizeProperty |
||
borderStartKey |
||
borderEndKey |
Object
private static Object _getElementZIndex(Object agent,
Object element)
agent |
||
element |
Object
protected Object Init(Array itemState,
Function duringAnimate,
Function afterAnimate,
Object callbackParameters,
AdfUIComponent component,
Object frameMethod,
Object frameCount)
AdfDhtmlElementAnimator.animate()
to start an animation and get its instance.itemState |
- | an Array of internal details for the animation |
duringAnimate |
- | the function to be executed at each processed animation frame (if a frame is skipped, the function won't be called); you may specify null if no execution is needed |
afterAnimate |
- | the function to be executed after animation is complete or null if no execution is needed |
callbackParameters |
- | an optional object containing key-value pairs that will be passed to the duringAnimate and the afterAnimate function if applicable |
component |
- | the component being animated; used to ensure descendant resize notifications get invoked after animations are complete |
frameMethod |
||
frameCount |
Object
animate(Object, Number, Array
AdfObject.Init()
private static Object _renderFrameProperty(Object element,
Object pValue,
Object pName)
element |
||
pValue |
||
pName |
Object
private Object _start()
Object
public Object stop()
Object
- the callback parameters originally passed into the animator (if provided)private static Object _subtractBorderSize(Object value,
Object borderWidthStyle)
value |
||
borderWidthStyle |
Object
|
Oracle Fusion Middleware JavaScript API Reference for Oracle ADF Faces 11g Release 2 (11.1.2.0.0) E17489-01 |
||||||||
PREV NEXT | FRAMES NO FRAMES Warning: private items are visible |