Class Command


  • public class Command
    extends java.lang.Object
    Represents a reference to a command. Provides a title which will be used to represent a command in the UI and, optionally, an array of arguments which will be passed to the command handler function when invoked.
    • Constructor Summary

      Constructors 
      Constructor Description
      Command()  
      Command​(java.lang.String title, java.lang.String command)  
      Command​(java.lang.String title, java.lang.String command, java.util.List<java.lang.Object> arguments)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      java.util.List<java.lang.Object> getArguments()
      Arguments that the command handler should be invoked with.
      java.lang.String getCommand()
      The identifier of the actual command handler.
      java.lang.String getTitle()
      Title of the command, like `save`.
      int hashCode()  
      void setArguments​(java.util.List<java.lang.Object> arguments)
      Arguments that the command handler should be invoked with.
      void setCommand​(java.lang.String command)
      The identifier of the actual command handler.
      void setTitle​(java.lang.String title)
      Title of the command, like `save`.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Command

        public Command()
      • Command

        public Command​(java.lang.String title,
                       java.lang.String command)
      • Command

        public Command​(java.lang.String title,
                       java.lang.String command,
                       java.util.List<java.lang.Object> arguments)
    • Method Detail

      • getTitle

        public java.lang.String getTitle()
        Title of the command, like `save`.
      • setTitle

        public void setTitle​(java.lang.String title)
        Title of the command, like `save`.
      • getCommand

        public java.lang.String getCommand()
        The identifier of the actual command handler.
      • setCommand

        public void setCommand​(java.lang.String command)
        The identifier of the actual command handler.
      • getArguments

        public java.util.List<java.lang.Object> getArguments()
        Arguments that the command handler should be invoked with.
      • setArguments

        public void setArguments​(java.util.List<java.lang.Object> arguments)
        Arguments that the command handler should be invoked with.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object