Modifier and Type | Field and Description |
---|---|
protected boolean |
wantToBeFinalized |
additionalButtons, backButton, cancelButton, NAME_FOR_BACK_ACTION, NAME_FOR_CANCEL_ACTION, NAME_FOR_CLOSE_ACTION, NAME_FOR_DIALOG_NBR, NAME_FOR_HELP_ACTION, NAME_FOR_LIST_ACTION, NAME_FOR_NEW_ENTRY_ACTION, NAME_FOR_OK_ACTION, okButton, processComplete, sessionData, stackMovement
Constructor and Description |
---|
MustMenuBar(SessionData sessionData)
Constructs a new menu bar.
|
Modifier and Type | Method and Description |
---|---|
void |
addMenu(java.lang.String menuText,
int subjectArea)
Creates a new top first level menu and adds it to the menu bar,
former submenus are implicitly closed.
|
void |
addMenu(java.lang.String menuText,
int subjectArea,
int minimumLevel)
Creates a new top first level menu and adds it to the menu bar,
former submenus are implicitly closed.
|
void |
addMenuItem(java.lang.String menuText,
java.lang.Class<? extends Invokable> invokeable)
Creates a new menu item and adds it to the current menu.
|
void |
addMenuItem(java.lang.String menuText,
java.lang.Class<? extends Invokable> invokeable,
java.lang.String toolTipText)
Creates a new menu item and adds it to the current menu.
|
void |
addMenuItem(java.lang.String menuText,
FreeAction freeAction)
Creates a new menu item and adds it to the current menu to execute things liberal.
|
void |
addMenuItem(java.lang.String menuText,
FreeAction freeAction,
java.lang.String toolTipText)
Creates a new menu item and adds it to the current menu to execute things liberal.
|
void |
addMenuItem(java.lang.String menuText,
Href href)
Creates a new menu item and adds it to the current menu to execute things liberal.
|
void |
addMenuItem(java.lang.String menuText,
Href href,
java.lang.String toolTipText)
Creates a new menu item and adds it to the current menu to execute things liberal.
|
void |
addSubMenu(java.lang.String menuText,
int subjectArea)
Creates a new menu one level below the current menu.
|
void |
closeMenu()
Closes the current menu and allows to continue in the menu one level above.
|
void |
fetchValuesFromRequest(GeneralizedRequest request)
Causes the invokable to delegate this function to all embedded markupables
to fetch their current value as edited by the user from the request.
|
java.lang.String |
getCurrentMenuAddress()
Returns the address of the current menu.
|
MustMenuNode |
getCurrentMenuNode()
Returns the current menu node.
|
java.lang.String |
getPreviousMenuAddress()
Returns the address of the menu above the current menu.
|
MustMenuNode |
getRootNode()
Returns the root node of the menu bar.
|
Submission |
getSubmission()
Informs the next invokable in stack about the submission details.
|
java.lang.String |
getTagSequence()
Returns the default tag sequence (as HTML).
|
void |
init()
Initializes the invokable in order to reuse the component without garbage
from the previous use.
|
boolean |
isBackAble(SessionData sessionData)
Returns true if the menu bar allows a back function to a previous menu or another dialog step in stack.
|
boolean |
isSuitableDialog(GeneralizedRequest request)
Indicates whether the request fits to this dialog.
|
void |
process(GeneralizedRequest request)
Allows the invokable to react to the request.
|
void |
setRootMenuDescription(java.lang.String menuDescription)
Sets the root menu's descripton
|
void |
setSubmitter(Invokable submitter)
Informs this invokable, from which previous invokable it is submitted.
|
boolean |
wantToBeFinalized()
Indicates whether the reusage of the invokable is not to be supported.
|
afterOutput, appendAdditionalButton, beforeOutput, destroy, finalize, free, getAdditionalButtons, getBackButtonTagSequence, getCancelButtonTagSequence, getFooter, getHeader, getHelpContext, getInvokableInAdvance, getOkButtonTagSequence, getScriptToExecute, getScriptToExecuteSequence, getStackMovement, getSubTitle, getTitle, isCancelable, isPost, setHelpContext, setHelpContext, setMessageToKeep, setMessageToKeepIfNotAlreadySet, setScriptToExecute, setStackMovement, setSubTitle, setTitle
public MustMenuBar(SessionData sessionData)
sessionData
- the session's public datapublic void setSubmitter(Invokable submitter)
submitter
- the invokable that submitted this invokablepublic void setRootMenuDescription(java.lang.String menuDescription)
MenuDescription
- the description of the root menupublic void addMenu(java.lang.String menuText, int subjectArea)
menuText
- the menu textsubjectArea
- the subject area as to be defined in subclasses of EntitlementStdEntitlementStd
public void addMenu(java.lang.String menuText, int subjectArea, int minimumLevel)
menuText
- the menu textsubjectArea
- the subject area as to be defined in subclasses of EntitlementStdminimumLevel
- the minimum access level a user must gain that he may
access the menu at allEntitlementStd
public void addSubMenu(java.lang.String menuText, int subjectArea)
menuText
- the menu textsubjectArea
- the subject area as to be defined in subclasses of EntitlementStdEntitlementStd
public void closeMenu()
public void addMenuItem(java.lang.String menuText, java.lang.Class<? extends Invokable> invokeable)
menuText
- the text of the menu iteminvokeable
- the invokable to be invoked when the menu item is choosen.public void addMenuItem(java.lang.String menuText, java.lang.Class<? extends Invokable> invokeable, java.lang.String toolTipText)
menuText
- the text of the menu iteminvokeable
- the invokable to be invoked when the menu item is choosen.toolTipText
- the tool tip text for the menu item to showpublic void addMenuItem(java.lang.String menuText, FreeAction freeAction)
menuText
- the text of the menu itemfreeAction
- a free action, e.g. a JavaScript fragment to execute.public void addMenuItem(java.lang.String menuText, FreeAction freeAction, java.lang.String toolTipText)
menuText
- the text of the menu itemfreeAction
- a free action, e.g. a JavaScript fragment to execute.toolTipText
- the tool tip text for the menu item to showpublic void addMenuItem(java.lang.String menuText, Href href)
menuText
- the text of the menu itemhref
- the hyper referencepublic void addMenuItem(java.lang.String menuText, Href href, java.lang.String toolTipText)
menuText
- the text of the menu itemhref
- the hyper referencetoolTipText
- the tool tip text for the menu item to showpublic MustMenuNode getRootNode()
public void init()
public boolean isBackAble(SessionData sessionData)
sessionData
- the session's public datapublic java.lang.String getTagSequence()
Layout
public void fetchValuesFromRequest(GeneralizedRequest request)
fetchValuesFromRequest
in interface Invokable
fetchValuesFromRequest
in class Dialog
request
- the request from where the values are to be fetchedMarkupable#fetchYourValueFromRequest
public boolean isSuitableDialog(GeneralizedRequest request)
isSuitableDialog
in interface Invokable
isSuitableDialog
in class Dialog
request
- the request to checkpublic void process(GeneralizedRequest request)
public java.lang.String getPreviousMenuAddress()
public java.lang.String getCurrentMenuAddress()
public MustMenuNode getCurrentMenuNode()
public Submission getSubmission()
public boolean wantToBeFinalized()
Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de