public class MustMenu extends MustMenuNode
MustMenuBar
,
Serialized FormtoolTipText, type, TYPE_MENU, TYPE_MENU_ITEM
Constructor and Description |
---|
MustMenu(java.lang.String menuText,
MustMenu fatherMenu,
int subjectArea)
Constructs a new menu.
|
MustMenu(java.lang.String menuText,
MustMenu fatherMenu,
int subjectArea,
int minimumLevel)
Constructs a new menu.
|
Modifier and Type | Method and Description |
---|---|
void |
addMenu(MustMenu menu)
Adds a menu the current menu.
|
MustMenu |
getFatherMenu()
Returns the father menu.
|
int |
getMinimumLevel()
Returns the minimum level.
|
int |
getSubjectArea()
Returns the subject area.
|
boolean |
isAllowed(SessionData sessionData)
Returns true if the menu is allowed in the session's context.
|
getCreationTag, getCreationTag, getDescription, getToolTipText, getType, setDescription
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 MustMenu(java.lang.String menuText, MustMenu fatherMenu, int subjectArea)
menuText
- the menu textfatherMenu
- the father menu - null for root menusubjectArea
- the subject area as specified in EntitlementStd and its subclassesEntitlementStd
public MustMenu(java.lang.String menuText, MustMenu fatherMenu, int subjectArea, int minimumLevel)
menuText
- the menu textfatherMenu
- the father menu - null for root menusubjectArea
- the subject area as specified in EntitlementStd and its subclassesminimumLevel
- the minimum level assigned to the function - e.g. DataTableAdministrations always have minimum level LEVEL_CHANGEEntitlementStd
public MustMenu getFatherMenu()
public int getSubjectArea()
EntitlementStd
public int getMinimumLevel()
EntitlementStd
public void addMenu(MustMenu menu)
menu
- the menu to addpublic boolean isAllowed(SessionData sessionData)
isAllowed
in class MustMenuNode
sessionData
- the session's public dataCopyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de