Package com.iizix.gyro
Interface IUIPanelAnimation
- All Known Subinterfaces:
- IUIAction
- All Known Implementing Classes:
- AbstractUIAction,- EditorVSAction,- EMLItemProp,- EMUISimpleDialog,- EUIButton,- EUIDialog,- EUIImage,- EUIMenuItem,- EUIPanel,- EUIPanelPart,- MLItemProp,- MUISimpleDialog,- UIButton,- UIDialog,- UIImage,- UIMenuItem,- UIPanel,- UIPanelBase,- UIPanelPart,- VSAction
Interface providing the API to manipulate panel animations when panels are replaced by another. The animation provides a type and a speed. A panel that has been displayed using an animation uses the opposite animation when going back to the previous panel.
- Author:
- Christopher Mindus
- Nested Class SummaryNested ClassesModifier and TypeInterfaceDescription- static enumThe animation direction.- static enumThe animation speed.- static enumThe animation type.
- Field SummaryFieldsModifier and TypeFieldDescription- static final intThe animation composite value: default (-1).- static final intThe animation composite value: fade fast (1).- static final intThe animation composite value: fade normal (10).- static final intThe animation composite value: fade slow (1).- static final intThe animation composite value: fade slower (1000).- static final intThe animation composite value: fade slowest (10000), not recommended, use for testing purposes only.- static final intAnimation bit to add to remove CSS3 animations.- static final intAnimation bit to add to remove Scroll animations.- static final intThe animation composite value: none (0).- static final StringThe animation property name "animation".- static final intAnimation speed: fast (100 ms).- static final intAnimation speed: normal (350 ms).- static final intAnimation speed: slow (600 ms).- static final intAnimation speed: slower (1 second).- static final intAnimation speed: slowest (10 seconds).- static final intAnimation type: cover.- static final intAnimation type: fade.- static final intAnimation type: none.- static final intAnimation type: reveal.- static final intAnimation type: slide.- Fields inherited from interface com.iizix.prop.IGProp- EQC_ERROR_IGNORE_ALL, EQC_ERROR_IGNORE_REFERENCES, EQC_IGNORE_ARRAY, EQC_IGNORE_VOLATILE_OR_EDITOR, EQC_PRIVATE, EQC_SAVE_FILE, EXT_CONTAINER_EXTENDS, EXT_CONTAINER_EXTENDS_VALID, EXT_EXTENDED, EXT_FINAL, EXT_OVERRIDES, EXT_OVERRIDES_FINAL_ERR, EXT_PRIVATE
- Method SummaryModifier and TypeMethodDescription- default intGets the currently defined animation when this panel is going to be replaced.- default int- getAnimation- (int defaultAnimation) Gets the currently defined animation when this panel is going to be replaced.- default StringGets the animation description as a "debug" string.- static String- getAnimationDescription- (int animation) Gets the animation description as a "debug" string.- default IUIPanelAnimation.DirectionGets the animation direction.- default IUIPanelAnimation.SpeedGets the animation speed.- default IUIPanelAnimation.TypeGets the animation type.- static int- getAnimationValue- (int type, int direction, int speed) Gets the animation value.- static int- getAnimationValue- (IUIPanelAnimation.Type type, IUIPanelAnimation.Direction direction, IUIPanelAnimation.Speed speed) Gets the animation value.- static int- getOppositeAnimation- (int animation) Gets the opposite animation composite value from an animation composite value, i.e.- booleanReturns if the animation property is private or not.- default boolean- setAnimation- (int animation) Sets the animation when a panel is replaced by another.- default boolean- setAnimation- (IUIPanelAnimation.Type type, IUIPanelAnimation.Direction direction, IUIPanelAnimation.Speed speed) Sets the animation when a panel is replaced by another.- Methods inherited from interface com.iizix.prop.IGProp- addPropError, addPropListener, dispose, equals, fine, fine, finer, finer, finest, finest, fromElementString, getAppSessionGyro, getAtomPath, getClientSessionGyro, getConstraints, getEnvironment, getErroredPropItems, getErroredProps, getErrorsProp, getExtendsRootContainer, getFullPropName, getFullPropNameDebug, getModuleFolder, getModuleFolder, getParent, getParent, getPropAtom, getPropBaseReference, getPropError, getPropError, getPropErrorSeverity, getPropExtendsFlags, getPropFromPath, getPropFromReference, getPropIndex, getPropName, getPropPath, getPropPath, getPropRootPropMgr, getPropTreeErrorSeverity, getPropValue, getPropValue, getReferencePropName, getRelativePropName, getRootParent, getTreeLock, getValueClasses, getVSReference, hasChanged, hasCircularReferencesError, hasPrivateChangeEventProp, hasPropError, hasPropTreeError, info, info, initializeGElement, initializeGProp, isDisposed, isPropChildOf, isPropClientCreated, isPropCommunicating, isPropCreateRequired, isPropExtended, isPropExtendsFinal, isPropExtendsPrivate, isPropExtendsPrivateInRoot, isPropExtendsPrivateInRoot, isPropFile, isPropFolder, isPropNullable, isPropPrivate, isPropReadOnly, isPropReferenceTreeValid, isPropRoot, isPropVirtualized, list, list, list, list, list, mapAliasToReference, mapReferenceToAlias, mapReferenceToProjectRelative, moveProp, moveProp, moveProp, onEvent, onEventSelf, onPropTreeInitialized, onRemoteEvent, removePropError, removePropListener, renameProp, resolveRuntimeReferences, setChanged, setConstraints, setConstraints, setParent, setPrivateChangeEventProp, setPropError, setPropExtendsFinal, setPropExtendsPrivate, setPropNullable, setPropPrivate, setPropReadOnly, setPropValue, setPropValue, severe, severe, severe, toElementString, toNativeValue, triggerRemoteEvent, triggerRemoteEvent, validateProp, validatePropType, validatePropValue, verify, warning, warning, warning- Methods inherited from interface com.iizix.prop.IPropCnr- addProp, addProp, addProp2, addProp2, canRequestFocus, canRequestFocus, canRequestFocus, containsProp, containsProp, couldRequestFocusIfVirtualized, couldRequestFocusIfVirtualized, couldRequestFocusIfVirtualized, createCopyOfAtom, createUniqueAtom, createUniqueAtom, enablePropCommunication, enablePropHashMap, getAllProps, getAllProps, getAllProps, getAllProps, getAllProps, getAllProps, getAllProps, getAllProps, getBool, getBool, getBool, getBool, getChildPropError, getChildPropError, getChildPropErrorSeverity, getChildPropErrorSeverity, getErrorsProp, getExtendsError, getExtendsName, getExtendsPossibleClasses, getFirstProp, getFirstProp, getFocusEngine, getInt, getInt, getInt, getInt, getLong, getLong, getLong, getLong, getNumber, getNumber, getNumber, getNumber, getPossibleChildren, getProp, getProp, getProp, getProp, getProp, getProp, getProp, getProp, getProp, getProp, getProp, getPropCnr, getPropCount, getPropIndex, getPropIndex, getPropIndexes, getProps, getProps, getPropValue, getPropValue, getPropValue, getPropValue, getPropValue, getPropValue, getPropValue, getString, getString, getString, getString, hasFocus, initializeExtendsFramework, insertProp, insertProp2, isChild, isExtendsOverriden, isExtendsRoot, isPropAddRemoveAllowed, isPropExtended, isSibling, removeAllProps, removeAllProps2, removeProp, removeProp, removeProp, removeProp, removeProp, removeProp, removeProp, removeProp2, removeProp2, removeProp2, removeProp2, removeProp2, removeProp2, removeProp2, reorderProps, requestFocus, requestFocusEx, setBool, setBool, setBool, setBool, setExtendsName, setExtendsOverride, setInt, setInt, setInt, setLong, setLong, setLong, setLong, setNumber, setNumber, setNumber, setNumber, setProp, setProp, setProp, setProp2, setProp2, setPropValue, setPropValue, setPropValue, setPropValue, setPropValue, setPropValue, setString, setString, setString, setString, usePropHashMap, usesPropIndex, validateClassInstances
- Field Details- ANIMATION_PROP_NAMEThe animation property name "animation".- See Also:
 
- ANIMATION_NO_CSS3_FLAGstatic final int ANIMATION_NO_CSS3_FLAGAnimation bit to add to remove CSS3 animations.- See Also:
 
- ANIMATION_NO_SCROLL_FLAGstatic final int ANIMATION_NO_SCROLL_FLAGAnimation bit to add to remove Scroll animations.- See Also:
 
- ANIMATION_DEFAULTstatic final int ANIMATION_DEFAULTThe animation composite value: default (-1).- See Also:
 
- ANIMATION_NONEstatic final int ANIMATION_NONEThe animation composite value: none (0).- See Also:
 
- ANIMATION_FADE_FASTstatic final int ANIMATION_FADE_FASTThe animation composite value: fade fast (1).- See Also:
 
- ANIMATION_FADE_NORMALstatic final int ANIMATION_FADE_NORMALThe animation composite value: fade normal (10).- See Also:
 
- ANIMATION_FADE_SLOWstatic final int ANIMATION_FADE_SLOWThe animation composite value: fade slow (1).- See Also:
 
- ANIMATION_FADE_SLOWERstatic final int ANIMATION_FADE_SLOWERThe animation composite value: fade slower (1000).- See Also:
 
- ANIMATION_FADE_SLOWESTstatic final int ANIMATION_FADE_SLOWESTThe animation composite value: fade slowest (10000), not recommended, use for testing purposes only.- See Also:
 
- ANIMATION_TYPE_NONEstatic final int ANIMATION_TYPE_NONEAnimation type: none.- See Also:
 
- ANIMATION_TYPE_FADEstatic final int ANIMATION_TYPE_FADEAnimation type: fade.- See Also:
 
- ANIMATION_TYPE_SLIDEstatic final int ANIMATION_TYPE_SLIDEAnimation type: slide.- See Also:
 
- ANIMATION_TYPE_COVERstatic final int ANIMATION_TYPE_COVERAnimation type: cover.- See Also:
 
- ANIMATION_TYPE_REVEALstatic final int ANIMATION_TYPE_REVEALAnimation type: reveal.- See Also:
 
- ANIMATION_SPEED_FASTstatic final int ANIMATION_SPEED_FASTAnimation speed: fast (100 ms).- See Also:
 
- ANIMATION_SPEED_NORMALstatic final int ANIMATION_SPEED_NORMALAnimation speed: normal (350 ms).- See Also:
 
- ANIMATION_SPEED_SLOWstatic final int ANIMATION_SPEED_SLOWAnimation speed: slow (600 ms).- See Also:
 
- ANIMATION_SPEED_SLOWERstatic final int ANIMATION_SPEED_SLOWERAnimation speed: slower (1 second).- See Also:
 
- ANIMATION_SPEED_SLOWESTstatic final int ANIMATION_SPEED_SLOWESTAnimation speed: slowest (10 seconds). Do not use this speed, it is intended for testing.- See Also:
 
 
- Method Details- getAnimationValuestatic int getAnimationValue- (IUIPanelAnimation.Type type, IUIPanelAnimation.Direction direction, IUIPanelAnimation.Speed speed) Gets the animation value.- Parameters:
- type- The animation type.
- direction- The direction.
- speed- The speed.
- Returns:
- The integer direction value.
- Throws:
- IllegalArgumentException- For invalid parameters.
 
- getAnimationValuestatic int getAnimationValue- (int type, int direction, int speed) Gets the animation value.- Parameters:
- type- The animation type ANIMATION_TYPE_nnn values.
- direction- The direction is 4=left, 6=right, 8=up, 2=down (used for directional types only).
- speed- The speed is ANIMATION_SPEED_nnn values.
- Throws:
- IllegalArgumentException- For invalid parameters.
 
- getOppositeAnimationstatic int getOppositeAnimation- (int animation) Gets the opposite animation composite value from an animation composite value, i.e. if an animation is slide right, the opposite is slide left, reveal opposite of cover with opposite direction, etc.- Parameters:
- animation- The animation composite value.
- Returns:
- The opposite animation composite value, or ANIMATION_DEFAULT if no opposite is found.
 
- setAnimationdefault boolean setAnimation- (int animation) Sets the animation when a panel is replaced by another.- This call must be made prior to the panel removal and can be called programmatically. This method is also called for e.g. UI actions that also can specify the panel animation. - Parameters:
- animation- The animation composite value: values ANIMATION_*.
- Returns:
- true for change, false for no change.
 
- isAnimationPropPrivateboolean isAnimationPropPrivate()Returns if the animation property is private or not.- Returns:
- Typically true for actions, false for panels.
 
- setAnimationdefault boolean setAnimation- (IUIPanelAnimation.Type type, IUIPanelAnimation.Direction direction, IUIPanelAnimation.Speed speed) Sets the animation when a panel is replaced by another.- This call must be made prior to the panel removal and can be called programmatically. This method is also called for e.g. UI actions that also can specify the panel animation. - The animation types NONE and FADE are not affected by direction, but the parameter cannot be null. - Parameters:
- type- The animation type.
- direction- The animation direction.
- speed- The animation speed.
- Returns:
- true for change, false for no change.
 
- getAnimationdefault int getAnimation()Gets the currently defined animation when this panel is going to be replaced.- Returns:
- The animation composite value, or ANIMATION_DEFAULT if none other is defined.
 
- getAnimationdefault int getAnimation- (int defaultAnimation) Gets the currently defined animation when this panel is going to be replaced.- Parameters:
- defaultAnimation- The default animation to use if not defined.
- Returns:
- The animation composite value, or the defaultAnimation if none other is defined.
 
- getAnimationTypeGets the animation type.- Returns:
- The animation type, defaults to NONE.
 
- getAnimationDirectionGets the animation direction.- Returns:
- The animation direction, defaults to RIGHT.
 
- getAnimationSpeedGets the animation speed.- Returns:
- The animation speed, defaults to NORMAL.
 
- getAnimationDescriptionGets the animation description as a "debug" string.- Returns:
- The string.
 
- getAnimationDescriptionGets the animation description as a "debug" string.- Parameters:
- animation- The composite animation value.
- Returns:
- The string.