public abstract class MustMenuBar extends java.lang.Object implements Remotable
Modifier and Type | Field and Description |
---|---|
protected MustMenuBar |
menuBar |
protected SessionData |
sessionData |
Constructor and Description |
---|
MustMenuBar(SessionData sessionData)
Constructs a new menu bar.
|
Modifier and Type | Method and Description |
---|---|
void |
addMenu(java.lang.String menuText) |
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,
boolean dialogBeforeAction,
int subjectArea,
Callback callback)
Adds a menu item to the menu.
|
void |
addMenuItem(java.lang.String menuText,
int subjectArea,
boolean ownThread,
Callback callback)
Adds a menu item to the menu.
|
void |
addMenuItem(java.lang.String menuText,
int subjectArea,
Callback callback)
Adds a menu item to the menu.
|
void |
addMenuItem(java.lang.String menuText,
int subjectArea,
int keyEvent,
boolean ownThread,
Callback callback)
Adds a menu item to the menu.
|
void |
addMenuItem(java.lang.String menuText,
int subjectArea,
int keyEvent,
Callback callback)
Adds a menu item to the menu.
|
void |
addMenuItem(java.lang.String menuText,
int subjectArea,
int keyEvent,
int keyControlEvent,
boolean ownThread,
Callback callback)
Adds a menu item to the menu.
|
void |
addMenuItem(java.lang.String menuText,
int subjectArea,
int keyEvent,
int keyControlEvent,
Callback callback)
Adds a menu item to the menu.
|
void |
addMenuItem(java.lang.String iconName,
java.lang.String menuText,
boolean dialogBeforeAction,
int subjectArea,
Callback callback)
Adds a menu item to the menu.
|
void |
addMenuItem(java.lang.String iconName,
java.lang.String menuText,
int subjectArea,
Callback callback)
Adds a menu item to the menu.
|
void |
addMenuItem(java.lang.String iconName,
java.lang.String menuText,
int subjectArea,
int keyEvent,
int keyControlEvent,
boolean ownThread,
Callback callback)
Adds a menu item to the menu.
|
void |
addMenuItem(java.lang.String iconName,
java.lang.String menuText,
int subjectArea,
int keyEvent,
int keyControlEvent,
Callback callback)
Adds a menu item to the menu.
|
void |
addSeparator() |
void |
beginSubMenu(java.lang.String menuText,
int subjectArea)
Creates a new menu one level below the current menu.
|
void |
buildRemoteView(ToAppletWriter out)
Build remote view.
|
void |
closeSubMenu()
Closes the current menu and allows to continue in the menu one level above.
|
void |
destroy()
Don't wait until garbage collector removed weak reference.
|
void |
fetchValuesFromRequest(GeneralizedRequest request) |
void |
newMenu(java.lang.String menuText,
int subjectArea)
Creates a new top first level menu and adds it to the menu bar,
former sub menus are implicitly closed.
|
void |
setToolTipText(java.lang.String newToolTipText)
Sets the component's tool tip text.
|
protected SessionData sessionData
protected MustMenuBar menuBar
public MustMenuBar(SessionData sessionData)
sessionData
- the session's public datapublic void addMenu(java.lang.String menuText)
public void newMenu(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 beginSubMenu(java.lang.String menuText, int subjectArea)
menuText
- the menu textsubjectArea
- the subject area as to be defined in subclasses of EntitlementStdEntitlementStd
public void addMenuItem(java.lang.String menuText, boolean dialogBeforeAction, int subjectArea, Callback callback)
menuText
- the label text of the menu itemdialogBeforeAction
- whether or not a dialog will be shown before action performssubjectArea
- the subject area / context of this itemcallback
- the action to perform if user chooses this menu itempublic void addMenuItem(java.lang.String iconName, java.lang.String menuText, boolean dialogBeforeAction, int subjectArea, Callback callback)
iconName
- the name of the icon to be used.menuText
- the label text of the menu itemdialogBeforeAction
- whether or not a dialog will be shown before action performssubjectArea
- the subject area / context of this itemcallback
- the action to perform if user chooses this menu itempublic void addMenuItem(java.lang.String menuText, int subjectArea, Callback callback)
menuText
- the label text of the menu itemsubjectArea
- the subject area / context of this itemcallback
- the action to perform if user chooses this menu itempublic void addMenuItem(java.lang.String menuText, int subjectArea, boolean ownThread, Callback callback)
menuText
- the label text of the menu itemsubjectArea
- the subject area / context of this itemownThread
- whether or not the client should callback in an own threadcallback
- the action to perform if user chooses this menu itempublic void addMenuItem(java.lang.String menuText, int subjectArea, int keyEvent, Callback callback)
menuText
- the label text of the menu itemsubjectArea
- the subject area / context of this itemkeyEvent
- the key event of the shortcut to call the menu itemcallback
- the action to perform if user chooses this menu itempublic void addMenuItem(java.lang.String menuText, int subjectArea, int keyEvent, boolean ownThread, Callback callback)
menuText
- the label text of the menu itemsubjectArea
- the subject area / context of this itemkeyEvent
- the key event of the shortcut to call the menu itemownThread
- whether or not the client should callback in an own threadcallback
- the action to perform if user chooses this menu itempublic void addMenuItem(java.lang.String menuText, int subjectArea, int keyEvent, int keyControlEvent, Callback callback)
menuText
- the label text of the menu itemsubjectArea
- the subject area / context of this itemkeyEvent
- the key event of the shortcut to call the menu itemkeyControlEvent
- the key control event of the shortcut to call the menu itemcallback
- the action to perform if user chooses this menu itempublic void addMenuItem(java.lang.String menuText, int subjectArea, int keyEvent, int keyControlEvent, boolean ownThread, Callback callback)
menuText
- the label text of the menu itemsubjectArea
- the subject area / context of this itemkeyEvent
- the key event of the shortcut to call the menu itemkeyControlEvent
- the key control event of the shortcut to call the menu itemownThread
- whether or not the client should callback in an own threadcallback
- the action to perform if user chooses this menu itempublic void addMenuItem(java.lang.String iconName, java.lang.String menuText, int subjectArea, Callback callback)
iconName
- the name of the icon to be used.menuText
- the label text of the menu itemsubjectArea
- the subject area / context of this itemcallback
- the action to perform if user chooses this menu itempublic void addMenuItem(java.lang.String iconName, java.lang.String menuText, int subjectArea, int keyEvent, int keyControlEvent, Callback callback)
iconName
- the name of the icon to be used.menuText
- the label text of the menu itemsubjectArea
- the subject area / context of this itemkeyEvent
- the key event of the shortcut to call the menu itemkeyControlEvent
- the key control event of the shortcut to call the menu itemcallback
- the action to perform if user chooses this menu itempublic void addMenuItem(java.lang.String iconName, java.lang.String menuText, int subjectArea, int keyEvent, int keyControlEvent, boolean ownThread, Callback callback)
iconName
- the name of the icon to be used.menuText
- the label text of the menu itemsubjectArea
- the subject area / context of this itemkeyEvent
- the key event of the shortcut to call the menu itemkeyControlEvent
- the key control event of the shortcut to call the menu itemownThread
- whether or not the client should callback in an own threadcallback
- the action to perform if user chooses this menu itempublic void addSeparator()
public void closeSubMenu()
public void buildRemoteView(ToAppletWriter out)
AppletTalker
buildRemoteView
in interface AppletTalker
out
- the writer which will be read by the appletpublic void setToolTipText(java.lang.String newToolTipText)
Remotable
setToolTipText
in interface Remotable
newToolTipText
- the component's tool tip textpublic void fetchValuesFromRequest(GeneralizedRequest request)
fetchValuesFromRequest
in interface Remotable
Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de