public abstract class MustMenuNode extends java.util.Vector<MustMenuNode>
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
toolTipText |
protected int |
type |
static int |
TYPE_MENU |
static int |
TYPE_MENU_ITEM |
Constructor and Description |
---|
MustMenuNode(java.lang.String description)
Constructs a new menu node.
|
MustMenuNode(java.lang.String description,
java.lang.String toolTipText)
Constructs a new menu node.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCreationTag(MustMenuBar menuBar,
int itemPointer,
java.lang.String actionForPost)
Returns the node's creation tag.
|
java.lang.String |
getCreationTag(java.lang.String label,
java.lang.String actionID,
SessionData sessionData)
Returns the node's creation tag.
|
java.lang.String |
getDescription()
Returns the node's description.
|
java.lang.String |
getToolTipText()
Returns the node's tool tip text.
|
int |
getType()
Returns the node's type.
|
abstract boolean |
isAllowed(SessionData sessionData)
Returns true if the menu node is allowed in the session context.
|
void |
setDescription(java.lang.String newDescription)
Sets the node's description.
|
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, forEach, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, iterator, lastElement, lastIndexOf, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeIf, removeRange, replaceAll, retainAll, set, setElementAt, setSize, size, sort, spliterator, subList, toArray, toArray, toString, trimToSize
public static final int TYPE_MENU
public static final int TYPE_MENU_ITEM
protected int type
protected java.lang.String toolTipText
public MustMenuNode(java.lang.String description)
description
- the node's descriptionpublic MustMenuNode(java.lang.String description, java.lang.String toolTipText)
description
- the node's descriptiontoolTipText
- the node's tool tip textpublic java.lang.String getToolTipText()
public int getType()
public void setDescription(java.lang.String newDescription)
newDescription
- the new description of the nodepublic java.lang.String getDescription()
public java.lang.String getCreationTag(MustMenuBar menuBar, int itemPointer, java.lang.String actionForPost)
menuBar
- the enclosing menu bar - needed for the addressitemPointer
- the item's pointer - needed for the addressactionForPost
- the action for postpublic java.lang.String getCreationTag(java.lang.String label, java.lang.String actionID, SessionData sessionData)
label
- the label to be displayedactionId
- the action IDsessionData
- the session's public datapublic abstract boolean isAllowed(SessionData sessionData)
sessionData
- the session's public dataCopyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de