JavaScript API Reference for Oracle ADF Faces
|
Oracle Fusion Middleware Javascript API Reference for Oracle ADF Faces 12c (12.2.1) E52772-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, exportPrototypeSymbol, getClass, GetLazyArrayProperty, GetLazyMapProperty, getTypeName, toDebugString, toString |
Field Detail |
|---|
private Object _afterAnimateprivate Object _callbackParametersprivate Object _componentprivate Object _duringAnimatepublic static Object FRAME_METHOD_ACCELERATINGpublic static Object FRAME_METHOD_CONSTANT_SPEEDpublic static Object FRAME_METHOD_DECELERATINGpublic static Object FRAME_METHOD_SLOW_FAST_SLOWprivate Object _frameCountprivate Object _frameMethodprivate static Object _FRAMES_PER_MILLISECONDprivate Object _itemStateprivate 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 Objects 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 |
- | optional component being animated; only use this if you need to ensure descendant resize notifications get invoked after animations are complete (you wouldn't use this if your component's outer dimensions would be unchanged by this animation like tab conveyor belt animation) |
AdfDhtmlElementAnimator - the animator that has been started (so you can stop it)private Object _animationStep()Objectprivate static Object _computeFrameProperty(Object frameNumber,
Object initialValue,
Object finalValue,
Object frameMethod,
Object lastFrameNumber)frameNumber |
||
initialValue |
||
finalValue |
||
frameMethod |
||
lastFrameNumber |
Objectprivate Object _destroy()Objectprivate static Object _gatherSizeState(Object state,
Object finalProperties,
Object element,
Object sizeKey,
Object currentSizeProperty,
Object borderStartKey,
Object borderEndKey)state |
||
finalProperties |
||
element |
||
sizeKey |
||
currentSizeProperty |
||
borderStartKey |
||
borderEndKey |
Objectprivate static Object _getElementZIndex(Object agent,
Object element)agent |
||
element |
Objectprotected 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 |
Objectanimate(Object, Number, ArrayAdfObject.Init()private static Object _renderFrameProperty(Object element,
Object pValue,
Object pName)element |
||
pValue |
||
pName |
Objectprivate Object _start()Objectpublic 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 12c (12.2.1) E52772-01 |
||||||||
| PREV NEXT | FRAMES NO FRAMES Warning: private items are visible | ||||||||