Class Command

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int ANTICLOCKWISE
      Constant for "anti-clockwise" command.
      static int BACK
      Constant for "back" command.
      static int CANCEL
      Constant for "cancel" command.
      static int CLOCKWISE
      Constant for "clockwise" command.
      static int COPY
      Constant for "copy" command.
      static int CUT
      Constant for "cut" command.
      static int DISPLAY
      Constant for "display" command.
      static int DOWN
      Constant for "down" command.
      static int ESC
      Constant for "escape" command.
      static int EVENT_TYPE
      The COMMAND event type returned by getEventType().
      static int EXIT
      Constant for "exit" command.
      static int HELP
      Constant for "help" command.
      static int LEFT
      Constant for "left" command.
      static int MENU
      Constant for "menu" command.
      static int NEXT
      Constant for "next" command.
      static int PASTE
      Constant for "paste" command.
      static int PAUSE
      Constant for "pause" command.
      static int PREVIOUS
      Constant for "previous" command.
      static int RESUME
      Constant for "resume" command.
      static int RIGHT
      Constant for "right" command.
      static int SELECT
      Constant for "select" command.
      static int START
      Constant for "start" command.
      static int STOP
      Constant for "stop" command.
      static int UP
      Constant for "up" command.
    • Constructor Summary

      Constructors 
      Constructor Description
      Command()
      Creates a new command event generator.
    • Constructor Detail

      • Command

        public Command()
        Creates a new command event generator.
    • Method Detail

      • getEventType

        public int getEventType()
        Description copied from class: EventGenerator
        Gets the event type associated with the event generator
        Specified by:
        getEventType in class EventGenerator
        Returns:
        the event type
      • buildEvent

        public int buildEvent​(int command)
        Builds a MicroUI event for the given command.
        Parameters:
        command - the command to be sent
        Returns:
        the MicroUI event
      • send

        public void send​(int command)
        Sends the given command to the event generator's listener
        Parameters:
        command - the command to be sent