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 Summary
Modifier and TypeInterfaceDescriptionstatic enum
The animation direction.static enum
The animation speed.static enum
The animation type.Field Summary
Modifier and TypeFieldDescriptionstatic final int
The animation composite value: default (-1).static final int
The animation composite value: fade fast (1).static final int
The animation composite value: fade normal (10).static final int
The animation composite value: fade slow (1).static final int
The animation composite value: fade slower (1000).static final int
The animation composite value: fade slowest (10000), not recommended, use for testing purposes only.static final int
Animation bit to add to remove CSS3 animations.static final int
Animation bit to add to remove Scroll animations.static final int
The animation composite value: none (0).static final String
The animation property name "animation".static final int
Animation speed: fast (100 ms).static final int
Animation speed: normal (350 ms).static final int
Animation speed: slow (600 ms).static final int
Animation speed: slower (1 second).static final int
Animation speed: slowest (10 seconds).static final int
Animation type: cover.static final int
Animation type: fade.static final int
Animation type: none.static final int
Animation type: reveal.static final int
Animation 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_INCLUDE_PRIVATE, EQC_SAVE_FILE, EXT_CONTAINER_EXTENDS, EXT_CONTAINER_EXTENDS_VALID, EXT_EXTENDED, EXT_FINAL, EXT_OVERRIDES, EXT_OVERRIDES_FINAL_ERR, EXT_PRIVATE
Method Summary
Modifier and TypeMethodDescriptiondefault int
Gets 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 String
Gets the animation description as a "debug" string.static String
getAnimationDescription
(int animation) Gets the animation description as a "debug" string.default IUIPanelAnimation.Direction
Gets the animation direction.default IUIPanelAnimation.Speed
Gets the animation speed.default IUIPanelAnimation.Type
Gets 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.boolean
Returns 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, isSibling, 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, 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_NAME
The animation property name "animation".- See Also:
ANIMATION_NO_CSS3_FLAG
static final int ANIMATION_NO_CSS3_FLAGAnimation bit to add to remove CSS3 animations.- See Also:
ANIMATION_NO_SCROLL_FLAG
static final int ANIMATION_NO_SCROLL_FLAGAnimation bit to add to remove Scroll animations.- See Also:
ANIMATION_DEFAULT
static final int ANIMATION_DEFAULTThe animation composite value: default (-1).- See Also:
ANIMATION_NONE
static final int ANIMATION_NONEThe animation composite value: none (0).- See Also:
ANIMATION_FADE_FAST
static final int ANIMATION_FADE_FASTThe animation composite value: fade fast (1).- See Also:
ANIMATION_FADE_NORMAL
static final int ANIMATION_FADE_NORMALThe animation composite value: fade normal (10).- See Also:
ANIMATION_FADE_SLOW
static final int ANIMATION_FADE_SLOWThe animation composite value: fade slow (1).- See Also:
ANIMATION_FADE_SLOWER
static final int ANIMATION_FADE_SLOWERThe animation composite value: fade slower (1000).- See Also:
ANIMATION_FADE_SLOWEST
static final int ANIMATION_FADE_SLOWESTThe animation composite value: fade slowest (10000), not recommended, use for testing purposes only.- See Also:
ANIMATION_TYPE_NONE
static final int ANIMATION_TYPE_NONEAnimation type: none.- See Also:
ANIMATION_TYPE_FADE
static final int ANIMATION_TYPE_FADEAnimation type: fade.- See Also:
ANIMATION_TYPE_SLIDE
static final int ANIMATION_TYPE_SLIDEAnimation type: slide.- See Also:
ANIMATION_TYPE_COVER
static final int ANIMATION_TYPE_COVERAnimation type: cover.- See Also:
ANIMATION_TYPE_REVEAL
static final int ANIMATION_TYPE_REVEALAnimation type: reveal.- See Also:
ANIMATION_SPEED_FAST
static final int ANIMATION_SPEED_FASTAnimation speed: fast (100 ms).- See Also:
ANIMATION_SPEED_NORMAL
static final int ANIMATION_SPEED_NORMALAnimation speed: normal (350 ms).- See Also:
ANIMATION_SPEED_SLOW
static final int ANIMATION_SPEED_SLOWAnimation speed: slow (600 ms).- See Also:
ANIMATION_SPEED_SLOWER
static final int ANIMATION_SPEED_SLOWERAnimation speed: slower (1 second).- See Also:
ANIMATION_SPEED_SLOWEST
static final int ANIMATION_SPEED_SLOWESTAnimation speed: slowest (10 seconds). Do not use this speed, it is intended for testing.- See Also:
Method Details
getAnimationValue
static 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.
getAnimationValue
static 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.
getOppositeAnimation
static 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.
setAnimation
default 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.
isAnimationPropPrivate
boolean isAnimationPropPrivate()Returns if the animation property is private or not.- Returns:
- Typically true for actions, false for panels.
setAnimation
default 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.
getAnimation
default 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.
getAnimation
default 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.
getAnimationType
Gets the animation type.- Returns:
- The animation type, defaults to NONE.
getAnimationDirection
Gets the animation direction.- Returns:
- The animation direction, defaults to RIGHT.
getAnimationSpeed
Gets the animation speed.- Returns:
- The animation speed, defaults to NORMAL.
getAnimationDescription
Gets the animation description as a "debug" string.- Returns:
- The string.
getAnimationDescription
Gets the animation description as a "debug" string.- Parameters:
animation
- The composite animation value.- Returns:
- The string.