public class TextLabelToolbarActionChip extends AbstractToolbarActionChip
AbstractSelectToolbarActionChip for displaying a label at a toolbar.
You can decide to use an localized label with/without arguments or an unlocalized one to display.AbstractToolbarActionChip.ToolbarActionListeneraccepted, ALIGN_LEFT, ALIGN_RIGHT, PERFORMCHIP_KEY, FALSE, FRAME_KEY, SHOW_JSP_COMMENTS, TRUE, USE_SOCKET_NAMINGDISPLAY_EVENT, FILTERED_PREFIX| Constructor and Description |
|---|
TextLabelToolbarActionChip(DisplayState displayState,
AbstractToolbarChip parent,
String label)
Creates a new toolbar chip with given label without arguments for localization.
|
TextLabelToolbarActionChip(DisplayState displayState,
AbstractToolbarChip parent,
String label,
Object[] labelArguments)
Creates a new toolbar chip with given label and arguments for localization.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getJSPURI()
Returns the URI of the JSP that this chip wants to use.
|
String |
getLabel() |
Object[] |
getLabelArguments()
Gets the arguments used for localization.
|
void |
setLabel(String text,
Object[] arguments)
Sets the label and the arguments used for localization.
|
void |
setLocalized(boolean localized)
Sets whether the label will be localized (current label text is only a localization key) or not (label text will
be shown as it is).
|
addActionListener, getAcceptedEvents, getAccessKey, getAlignment, getConfirmationMessage, getEvent, getJavaScript, getProposedUniqueName, getToolbarType, getTooltip, getWidth, isEnabled, isPartOf, isVisible, notifyActionPerformed, perform, processEvents, removeActionListener, setAccessKey, setAlignment, setConfirmationMessage, setEnabled, setEvent, setJavaScript, setLabel, setShowLabel, setTooltip, setVisible, setWidth, showLabeladdEventListener, checkValid, clearInfoMessages, clone, containsDisplayEvent, createMenuEntriesForJS, dispose, errorQueueEmpty, getClipboard, getCommandID, getDisplayParameters, getDisplayState, getEventID, getEventURL, getEventValue, getFrame, getID, getInfoMessages, getJaloSession, getLocalizedString, getLocalizedString, getLogger, getMenuEntries, getNameSpace, getNameSpaceFor, getParent, getProposedUniqueNameFor, getRequestFocus, getSessionIdentifier, getStringValue, getUniqueName, getWindow, goFullScreen, hasVisibleContextMenuEntries, isButtonPushed, isButtonPushed, isErrorQueueEmpty, isValid, leaveFullScreen, notifyEventListeners, notifyEventListeners, postErrorMessage, postInfoMessage, postWindowEvent, refresh, refreshChild, registerUniqueName, removeEventListener, removeInfoMessage, render, render, setClipboard, setParent, setRequestFocus, setValid, setWindowStatus, translateFormFieldToEventName, translateFormFieldToEventValueequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddEventListener, checkValid, dispose, getCommandID, getDisplayParameters, getDisplayState, getEventID, getEventURL, getEventValue, getID, getJaloSession, getMenuEntries, getParent, getUniqueName, goFullScreen, isValid, leaveFullScreen, registerUniqueName, removeEventListener, render, translateFormFieldToEventName, translateFormFieldToEventValuepublic TextLabelToolbarActionChip(DisplayState displayState, AbstractToolbarChip parent, String label)
setLocalized(boolean).displayState - display stateparent - parent chiplabel - label to showpublic TextLabelToolbarActionChip(DisplayState displayState, AbstractToolbarChip parent, String label, Object[] labelArguments)
setLocalized(boolean).displayState - display stateparent - parent chiplabel - label to showlabelArguments - arguments for localizationpublic String getJSPURI()
ChipgetJSPURI in interface ChipgetJSPURI in class AbstractToolbarActionChippublic void setLabel(String text, Object[] arguments)
text - label text to display (or localization key)arguments - arguments for localizationpublic Object[] getLabelArguments()
public String getLabel()
getLabel in class AbstractToolbarActionChippublic void setLocalized(boolean localized)
localized - true for enable localization, otherwise falseCopyright © 2017 SAP SE. All Rights Reserved.