Class CallMethodAction

java.lang.Object
com.simsilica.lemur.Action
com.simsilica.lemur.CallMethodAction
All Implemented Interfaces:
Command<Button>, VersionedObject<Action>

public class CallMethodAction extends Action
  • Constructor Details

    • CallMethodAction

      public CallMethodAction()
    • CallMethodAction

      public CallMethodAction(String name, Object delegate, String methodName)
    • CallMethodAction

      public CallMethodAction(Object delegate, String methodName)
  • Method Details

    • methodToName

      protected static String methodToName(String m)
    • isValidArgument

      protected boolean isValidArgument(Class type)
    • isValidArgumentList

      protected boolean isValidArgumentList(Class[] types)
    • toParm

      protected Object toParm(Button source, Class type)
    • findMethod

      protected void findMethod()
    • findMethod

      protected void findMethod(Class type)
    • setMethod

      public void setMethod(Object object, String methodName)
    • getMethodName

      public String getMethodName()
    • getDelegate

      public Object getDelegate()
    • execute

      public void execute(Button source)
      Description copied from class: Action
      Subclasses must override this to perform the action.
      Specified by:
      execute in interface Command<Button>
      Specified by:
      execute in class Action
    • appendFields

      protected void appendFields(StringBuilder sb)
      Overrides:
      appendFields in class Action