Class MenuRow


  • public class MenuRow
    extends java.lang.Object
    Created with IntelliJ IDEA.
    Since:
    : 9/19/2015 Time : 11:42 AM
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String FORMAT_RS_ARROW  
      static java.lang.String STRING_NULL  
    • Constructor Summary

      Constructors 
      Constructor Description
      MenuRow​(java.lang.String object, java.lang.String action, int xCode, int yCode, int opCode, int id)
      Instantiates a new Menu row wrapper used to represent rows of a Menu instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean compareAction​(java.lang.String action)
      Compare action a inputted action, and determines if the action associated with this menu row matches the given action.
      boolean compareObject​(java.lang.String object)
      Compares a inputted object, and determines if the object associated with this menu row matches the given object.
      java.lang.String getAction()
      Gets action associated with this menu row.
      int getID()
      Gets ID of this menu row.
      java.lang.String getObject()
      Gets object reference associated with this menu row.
      int getOpCode()
      Get opcode of this menu row.
      int getXCode()
      Get x code of this menu row.
      int getYCode()
      Get y code of this menu row.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • MenuRow

        public MenuRow​(java.lang.String object,
                       java.lang.String action,
                       int xCode,
                       int yCode,
                       int opCode,
                       int id)
        Instantiates a new Menu row wrapper used to represent rows of a Menu instance.
        Parameters:
        object - the object
        action - the action
        xCode - the x code
        yCode - the y code
        opCode - the op code
        id - the id
    • Method Detail

      • getAction

        public java.lang.String getAction()
        Gets action associated with this menu row.
        Returns:
        the action
      • getObject

        public java.lang.String getObject()
        Gets object reference associated with this menu row.
        Returns:
        the object
      • getID

        public int getID()
        Gets ID of this menu row.
        Returns:
        the ID of this menu row
      • getXCode

        public int getXCode()
        Get x code of this menu row.
        Returns:
        the x code of this menu row
      • getYCode

        public int getYCode()
        Get y code of this menu row.
        Returns:
        the y code of this menu row
      • getOpCode

        public int getOpCode()
        Get opcode of this menu row.
        Returns:
        the int
      • compareAction

        public boolean compareAction​(java.lang.String action)
        Compare action a inputted action, and determines if the action associated with this menu row matches the given action.
        Parameters:
        action - the action to compare
        Returns:
        true if the two actions match, otherwise false
      • compareObject

        public boolean compareObject​(java.lang.String object)
        Compares a inputted object, and determines if the object associated with this menu row matches the given object.
        Parameters:
        object - the object to compare
        Returns:
        true if the two objects match, otherwise false
      • toString

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