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 void
void
Subclasses must override this to perform the action.protected void
protected void
findMethod
(Class type) protected boolean
isValidArgument
(Class type) protected boolean
isValidArgumentList
(Class[] types) protected static String
void
protected Object
Methods 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:Action
Subclasses must override this to perform the action. -
appendFields
- Overrides:
appendFields
in classAction
-