public class ActionMenuListData
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.List<ActionMenuData> |
actions |
Constructor and Description |
---|
ActionMenuListData() |
ActionMenuListData(ActionMenuListData copy) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(ActionMenuData action)
Adds an action to the end of the action list.
|
boolean |
add(ActionMenuData action,
int location)
Inserts a menu at a specified location.
|
boolean |
add(java.util.List<ActionMenuData> actions) |
void |
addLast(ActionMenuData menu)
Add at end of visible (action/overflow) menus, prior to hidden items and prior
to BOTTOM_ANCHORED items
|
void |
clear() |
boolean |
equals(ActionMenuListData c) |
boolean |
equals(java.lang.Object o) |
ActionMenuData |
getAction(int id) |
ActionMenuData |
getAction(java.lang.String title) |
java.util.List<ActionMenuData> |
getActions() |
java.util.List<ActionMenuData> |
getActions(ActionMenuData.PreferredMenu pm) |
java.util.List<ActionMenuData> |
getPlaceholderActions(boolean placeholder) |
boolean |
hasAction(ActionMenuData action)
Note, does not do a full .equals comparison Returns true if a tool exists
with the same title
|
int |
hashCode() |
boolean |
isValid() |
boolean |
remove(ActionMenuData action) |
int |
size() |
java.lang.String |
toString() |
protected java.util.List<ActionMenuData> actions
public ActionMenuListData()
public ActionMenuListData(ActionMenuListData copy)
public boolean isValid()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public boolean equals(ActionMenuListData c)
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.List<ActionMenuData> getActions()
public java.util.List<ActionMenuData> getActions(ActionMenuData.PreferredMenu pm)
public java.util.List<ActionMenuData> getPlaceholderActions(boolean placeholder)
public ActionMenuData getAction(java.lang.String title)
public ActionMenuData getAction(int id)
public boolean hasAction(ActionMenuData action)
action
- public boolean add(ActionMenuData action)
public boolean add(ActionMenuData action, int location)
public void addLast(ActionMenuData menu)
menu
- public boolean add(java.util.List<ActionMenuData> actions)
public int size()
public boolean remove(ActionMenuData action)
public void clear()