Package com.simsilica.lemur
Class CallMethodAction
java.lang.Object
com.simsilica.lemur.Action
com.simsilica.lemur.CallMethodAction
- All Implemented Interfaces:
Command<Button>,VersionedObject<Action>
-
Field Summary
Fields inherited from class com.simsilica.lemur.Action
KEY_ENABLED, KEY_ICON, KEY_LARGE_ICON, KEY_NAME, KEY_SELECTED, KEY_SHORT_DESCRIPTION -
Constructor Summary
ConstructorsConstructorDescriptionCallMethodAction(Object delegate, String methodName) CallMethodAction(String name, Object delegate, String methodName) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvoidSubclasses must override this to perform the action.protected voidprotected voidfindMethod(Class type) protected booleanisValidArgument(Class type) protected booleanisValidArgumentList(Class[] types) protected static Stringvoidprotected ObjectMethods inherited from class com.simsilica.lemur.Action
createReference, getIcon, getLargeIcon, getName, getObject, getValue, getValue, getVersion, incrementVersion, isEnabled, isSelected, putValue, setEnabled, setIcon, setLargeIcon, setName, setSelected, toString
-
Constructor Details
-
CallMethodAction
public CallMethodAction() -
CallMethodAction
-
CallMethodAction
-
-
Method Details
-
methodToName
-
isValidArgument
-
isValidArgumentList
-
toParm
-
findMethod
protected void findMethod() -
findMethod
-
setMethod
-
getMethodName
-
getDelegate
-
execute
Description copied from class:ActionSubclasses must override this to perform the action. -
appendFields
- Overrides:
appendFieldsin classAction
-