Interface AnimationPropertyKey
-
- All Superinterfaces:
AnimationCollectionKey,IsTypedAnimationKey,Key
- All Known Implementing Classes:
DefaultAnimationPropertyKey,StandardAnimationProperty
public interface AnimationPropertyKey extends AnimationCollectionKey
Represents the property id to set to the configure animation collection items.- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
Static Methods Modifier and Type Method Description static AnimationPropertyKeycheckAndGetIfValid(AnimationPropertyKey property)Checks if property passed as argument is notnulland its value is notnullas well.
If not, throw aIllegalArgumentException, otherwise it returns the key.static voidcheckIfValid(AnimationPropertyKey property)Checks if type passed as argument is notnulland its type is notnullas well.
If not, throw aIllegalArgumentException.static AnimationPropertyKeycreate(String property, AnimationType type)Returns a animation property instance by its string value.static booleanisValid(AnimationPropertyKey property)Returnstrueif type passed as argument is notnulland its type is notnullas well.-
Methods inherited from interface org.pepstock.charba.client.options.AnimationCollectionKey
properties
-
Methods inherited from interface org.pepstock.charba.client.options.IsTypedAnimationKey
type
-
-
-
-
Method Detail
-
create
static AnimationPropertyKey create(String property, AnimationType type)
Returns a animation property instance by its string value.- Parameters:
property- string value to usetype- type related to the typeof property- Returns:
- new property instance
-
isValid
static boolean isValid(AnimationPropertyKey property)
Returnstrueif type passed as argument is notnulland its type is notnullas well.- Parameters:
property- animation property to be checked- Returns:
trueif type passed as argument is notnulland its type is notnullas well.
-
checkIfValid
static void checkIfValid(AnimationPropertyKey property)
Checks if type passed as argument is notnulland its type is notnullas well.
If not, throw aIllegalArgumentException.- Parameters:
property- animation property to be checked
-
checkAndGetIfValid
static AnimationPropertyKey checkAndGetIfValid(AnimationPropertyKey property)
Checks if property passed as argument is notnulland its value is notnullas well.
If not, throw aIllegalArgumentException, otherwise it returns the key.- Parameters:
property- property to be checked- Returns:
- the same property passed as argument
-
-