Class MenuRow
- java.lang.Object
-
- org.dreambot.api.wrappers.widgets.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
-
Constructor Summary
Constructors Constructor Description MenuRow(int index, java.lang.String action, java.lang.String object, int opCode, int id, int xCode, int yCode, int itemIdCode, boolean shift)
Instantiates a new Menu row wrapper used to represent rows of aMenu
instance.MenuRow(java.lang.String action, java.lang.String object, int opCode, int id, int xCode, int yCode, int itemIdCode)
Instantiates a new Menu row wrapper used to represent rows of aMenu
instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MenuRow
clone()
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.int
getIndex()
int
getItemIdCode()
java.lang.String
getObject()
Gets object reference associated with this menu row.int
getOpCode()
Get opcode of this menu row.java.lang.String
getRawAction()
java.lang.String
getRawObject()
int
getXCode()
Get x code of this menu row.int
getYCode()
Get y code of this menu row.boolean
isShift()
void
setAction(java.lang.String action)
void
setId(int id)
void
setIndex(int index)
void
setItemIdCode(int itemIdCode)
void
setObject(java.lang.String object)
void
setOpCode(int opCode)
void
setShift(boolean shift)
void
setxCode(int xCode)
void
setyCode(int yCode)
java.lang.String
toString()
-
-
-
Field Detail
-
FORMAT_RS_ARROW
public static final java.lang.String FORMAT_RS_ARROW
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MenuRow
public MenuRow(java.lang.String action, java.lang.String object, int opCode, int id, int xCode, int yCode, int itemIdCode)
Instantiates a new Menu row wrapper used to represent rows of aMenu
instance.- Parameters:
action
- the actionobject
- the objectopCode
- the op codeid
- the idxCode
- the x codeyCode
- the y codeitemIdCode
- the item code for inventory interactions
-
MenuRow
public MenuRow(int index, java.lang.String action, java.lang.String object, int opCode, int id, int xCode, int yCode, int itemIdCode, boolean shift)
Instantiates a new Menu row wrapper used to represent rows of aMenu
instance.- Parameters:
index
- index of the menu row (0 is first in menu)action
- the actionobject
- the objectopCode
- the op codeid
- the idxCode
- the x codeyCode
- the y codeitemIdCode
- the item code for inventory interactionsshift
- Whether this menu row item is shift invoked (generally false)
-
-
Method Detail
-
getAction
public java.lang.String getAction()
Gets action associated with this menu row.- Returns:
- the action
-
getRawAction
public java.lang.String getRawAction()
-
getObject
public java.lang.String getObject()
Gets object reference associated with this menu row.- Returns:
- the object
-
getRawObject
public java.lang.String getRawObject()
-
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 classjava.lang.Object
-
isShift
public boolean isShift()
-
setShift
public void setShift(boolean shift)
-
getIndex
public int getIndex()
-
setIndex
public void setIndex(int index)
-
setAction
public void setAction(java.lang.String action)
-
setObject
public void setObject(java.lang.String object)
-
setId
public void setId(int id)
-
setxCode
public void setxCode(int xCode)
-
setyCode
public void setyCode(int yCode)
-
setOpCode
public void setOpCode(int opCode)
-
getItemIdCode
public int getItemIdCode()
-
setItemIdCode
public void setItemIdCode(int itemIdCode)
-
clone
public MenuRow clone()
-
-