public abstract class MustToolBar
extends java.lang.Object
Constructor and Description |
---|
MustToolBar(SessionData sessionData)
Constructs a new tool bar.
|
Modifier and Type | Method and Description |
---|---|
protected abstract void |
addIndividualItems()
Adds individual items to the tool bar.
|
void |
addItem(java.lang.String label,
java.lang.Class<? extends Invokable> invokeable)
Adds an item to the tool bar using text.
|
void |
addItem(java.lang.String label,
java.lang.Class<Invokable> invokeable,
java.lang.String toolTipText)
Adds an item to the tool bar using text.
|
void |
addItem(ToolBarIcon toolBarIcon,
java.lang.Class<? extends Invokable> invokeable)
Adds an item to the tool bar using an icon.
|
void |
addItem(ToolBarIcon toolBarIcon,
java.lang.Class<? extends Invokable> invokeable,
java.lang.String toolTipText)
Adds an item to the tool bar using an icon.
|
void |
addItem(ToolbarText toolTextButton,
java.lang.Class<? extends Invokable> invokeable) |
java.lang.Class<? extends Invokable> |
getActionClass(GeneralizedRequest request)
Checks if the request is caused by choosing a toolbar options and returns
the action class if so.
|
MustMenu |
getItems()
Returns the toolbar's items.
|
protected java.lang.String |
getResourceString(java.lang.String resourceKey)
Returns the individual application resource of the specified key, which has to be a string.
|
boolean |
isEntitled(MustMenuItem menuItem)
Returns true if the current user is entitled to use the specified item.
|
public MustToolBar(SessionData sessionData)
sessionData
- the session's public dataprotected abstract void addIndividualItems()
protected java.lang.String getResourceString(java.lang.String resourceKey)
resourceKey
- the key of the resource to retrievepublic void addItem(ToolBarIcon toolBarIcon, java.lang.Class<? extends Invokable> invokeable)
toolBarIcon
- the tool bar's iconinvokeable
- the invokeable to be associated with the iconpublic void addItem(ToolBarIcon toolBarIcon, java.lang.Class<? extends Invokable> invokeable, java.lang.String toolTipText)
toolBarIcon
- the tool bar's iconinvokeable
- the invokeable to be associated with the buttontoolTipText
- the tool tip text of the buttonpublic void addItem(ToolbarText toolTextButton, java.lang.Class<? extends Invokable> invokeable)
public void addItem(java.lang.String label, java.lang.Class<? extends Invokable> invokeable)
label
- the information to showinvokeable
- the invokeable to be associated with the buttonpublic void addItem(java.lang.String label, java.lang.Class<Invokable> invokeable, java.lang.String toolTipText)
label
- the label of the button to useinvokeable
- the invokeable to be associated with the buttontoolTipText
- the tool tip text of the buttonpublic MustMenu getItems()
public boolean isEntitled(MustMenuItem menuItem)
menuItem
- the menu item to checkpublic java.lang.Class<? extends Invokable> getActionClass(GeneralizedRequest request)
request
- the request to checkCopyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de