Package rsb.internal.globval
Enum Class GlobalWidgetInfo
- All Implemented Interfaces:
Serializable
,Comparable<GlobalWidgetInfo>
,Constable
The list of widget info in the form of (parent, child)
The [Group] at the start and end denotes a segment
Though it is not indicative of the underlying parent interface
Rather just for grouping and potentially future updating purposes
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription[BANK] Widget Info[CHAT] Widget Info[COMBAT] Widget Info[DEPOSIT BOX] Widget Info[EQUIPMENT] Widget Info[GRANDEXCHANGE][INVENTORY] Widget Info[LOGIN] Widget Info[MAGIC] Widget Info[MINIMAP] Widget Info[PRAYER] Widget Info[WILDERNESS] Widget Info[QUICKPRAYER][SKILL] Widget Info[STORE] Widget Info[TRADE] Widget Info[MISC] Widget Info -
Method Summary
Modifier and TypeMethodDescriptionint
Gets the ID of the child in the group.int
Gets the group ID of the pair.int
getId()
Gets the ID of the group-child pairing.int
Gets the packed widget ID.static int
PACK
(int groupId, int childId) Packs the group and child IDs into a single integer.static int
TO_CHILD
(int id) Utility method that converts an ID returned bygetId()
back to its child ID.static int
TO_GROUP
(int id) Utility method that converts an ID returned bygetId()
back to its group ID.static GlobalWidgetInfo
Returns the enum constant of this class with the specified name.static GlobalWidgetInfo[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
LOGIN_MOTW
[LOGIN] Widget Info -
WORLD_MAP_VIEW
[MISC] Widget Info -
LOGOUT_BUTTON
-
LOGIN_CLICK_TO_PLAY_SCREEN_MESSAGE_OF_THE_DAY
-
CHATBOX_MESSAGES
[CHAT] Widget Info -
CHATBOX_FULL_INPUT
-
DIALOG_NPC_TEXT
-
PVP_WILDERNESS_LEVEL
[WILDERNESS] Widget Info -
INVENTORY_ITEMS_CONTAINER
[INVENTORY] Widget Info -
INVENTORY_DESTROY_ITEM
-
INVENTORY_DESTROY_ITEM_YES
-
BANK_DYNAMIC_COMPONENTS
[BANK] Widget Info -
BANK_INVENTORY_ITEMS_CONTAINER
-
BANK_ITEM_COUNT
-
BANK_ITEM_MAX
-
BANK_TAB
-
BANK_INVENTORY
-
BANK_SCROLLBAR
-
BANK_BUTTON_SWAP
-
BANK_BUTTON_INSERT
-
BANK_BUTTON_ITEM
-
BANK_BUTTON_NOTE
-
BANK_BUTTON_SEARCH
-
BANK_BUTTON_DEPOSIT_CARRIED_ITEMS
-
BANK_BUTTON_DEPOSIT_WORN_ITEMS
-
BANK_SEARCH_INPUT
-
DEPOSIT_DYNAMIC_COMPONENTS
[DEPOSIT BOX] Widget Info -
DEPOSIT_ITEMS_CONTAINER
-
DEPOSIT_BUTTON_DEPOSIT_WORN_ITEMS
-
DEPOSIT_BUTTON_DEPOSIT_CARRIED_ITEMS
-
DEPOSIT_BUTTON_DEPOSIT_LOOT
-
COMBAT_STYLE_ONE
[COMBAT] Widget Info -
COMBAT_STYLE_TWO
-
COMBAT_STYLE_THREE
-
COMBAT_STYLE_FOUR
-
COMBAT_DEFENSIVE_CAST_SPELL
-
COMBAT_AUTO_CAST_SPELL
-
COMBAT_AUTO_RETALIATE
-
EQUIPMENT_INVENTORY_ITEMS_CONTAINER
[EQUIPMENT] Widget Info -
EQUIPMENT_ITEM_SLOTS
-
EQUIPMENT_HELMET
-
EQUIPMENT_CAPE
-
EQUIPMENT_NECK
-
EQUIPMENT_WEAPON
-
EQUIPMENT_BODY
-
EQUIPMENT_SHIELD
-
EQUIPMENT_LEGS
-
EQUIPMENT_HANDS
-
EQUIPMENT_FEET
-
EQUIPMENT_RING
-
EQUIPMENT_AMMO
-
TRADE_MAIN_SCREEN__INVENTORY_ITEMS_CONTAINER
[TRADE] Widget Info -
TRADE_MAIN_SCREEN_ACCEPT
-
TRADE_MAIN_SCREEN_DECLINE
-
TRADE_MAIN_SCREEN_PERSONAL
-
TRADE_MAIN_SCREEN_PARTNER
-
TRADE_MAIN_SCREEN_MAIN_NAME
-
TRADE_MAIN_SCREEN_PARTNER_FREE_SLOTS
-
TRADE_SECOND_SCREEN_ACCEPT
-
TRADE_SECOND_SCREEN_DECLINE
-
TRADE_SECOND_SCREEN_PERSONAL
-
TRADE_SECOND_SCREEN_PARTNER
-
TRADE_SECOND_SCREEN_SECOND_NAME
-
STORE_DYNAMIC_COMPONENTS
[STORE] Widget Info -
STORE_INVENTORY_ITEMS_CONTAINER
-
GRAND_EXCHANGE_SEARCH_INPUT
[GRANDEXCHANGE] -
GRAND_EXCHANGE_OFFER_WINDOW
-
GRAND_EXCHANGE_DESCRIPTION
-
GRAND_EXCHANGE_COLLECTION_AREA
-
GRAND_EXCHANGE_COLLECT_AREA_ONE
-
GRAND_EXCHANGE_COLLECT_AREA_TWO
-
GRAND_EXCHANGE_INTERFACE_LAYOUT
-
GRAND_EXCHANGE_INVENTORY_ITEMS_CONTAINER
-
SKILL
[SKILL] Widget Info -
MAGIC_SPELL_LIST
[MAGIC] Widget Info -
MAGIC_AUTOCAST_SPELL_LIST
-
MINIMAP_HEALTH_ORB
[MINIMAP] Widget Info -
MINIMAP_PRAYER_ORB
-
MINIMAP_RUN_ORB
-
MINIMAP_SPEC_ORB
-
MINIMAP_QUICK_PRAYER_ORB
-
MINIMAP_HEALTH_ORB_TEXT
-
MINIMAP_PRAYER_ORB_TEXT
-
MINIMAP_RUN_ORB_TEXT
-
MINIMAP_SPEC_ORB_TEXT
-
MINIMAP_QUICK_PRAYER_ORB_SPRITE
-
PRAYER_NORMAL_BOOK
[PRAYER] Widget Info -
QUICK_PRAYER_PRAYERS
[QUICKPRAYER]
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getId
public int getId()Gets the ID of the group-child pairing.- Returns:
- the ID
-
getGroupId
public int getGroupId()Gets the group ID of the pair.- Returns:
- the group ID
-
getChildId
public int getChildId()Gets the ID of the child in the group.- Returns:
- the child ID
-
getPackedId
public int getPackedId()Gets the packed widget ID. Any usage where regular WidgetInfo is required and an easy conversion is required. This will enable use of the RuneLite WidgetInfo class somewhat indirectly. Method calls using this are for example: client.getWidget()- Returns:
- the packed ID
-
TO_GROUP
public static int TO_GROUP(int id) Utility method that converts an ID returned bygetId()
back to its group ID.- Parameters:
id
- passed group-child ID- Returns:
- the group ID
-
TO_CHILD
public static int TO_CHILD(int id) Utility method that converts an ID returned bygetId()
back to its child ID.- Parameters:
id
- passed group-child ID- Returns:
- the child ID
-
PACK
public static int PACK(int groupId, int childId) Packs the group and child IDs into a single integer.- Parameters:
groupId
- the group IDchildId
- the child ID- Returns:
- the packed ID
-