public abstract class AbstractToolbarActionChip extends AbstractChip implements EventCheckingChip
ToolbarActionChips| Modifier and Type | Class and Description |
|---|---|
static interface |
AbstractToolbarActionChip.ToolbarActionListener
Interface for offering a notification mechanism of toolbar actions.
|
| Modifier and Type | Field and Description |
|---|---|
protected Set |
accepted |
static int |
ALIGN_LEFT |
static int |
ALIGN_RIGHT |
static String |
PERFORM |
CHIP_KEY, FALSE, FRAME_KEY, SHOW_JSP_COMMENTS, TRUE, USE_SOCKET_NAMINGDISPLAY_EVENT, FILTERED_PREFIX| Constructor and Description |
|---|
AbstractToolbarActionChip(AbstractToolbarChip parent,
String label,
String event) |
AbstractToolbarActionChip(AbstractToolbarChip parent,
String label,
String event,
String javascript) |
AbstractToolbarActionChip(DisplayState displayState,
AbstractToolbarChip parent,
String label,
String event) |
AbstractToolbarActionChip(DisplayState displayState,
AbstractToolbarChip parent,
String label,
String event,
String javascript) |
| Modifier and Type | Method and Description |
|---|---|
void |
addActionListener(AbstractToolbarActionChip.ToolbarActionListener listener) |
Set |
getAcceptedEvents() |
char |
getAccessKey() |
int |
getAlignment()
Gets the preferred alignment of this toolbar action chip.
|
String |
getConfirmationMessage() |
String |
getEvent() |
String |
getJavaScript() |
abstract String |
getJSPURI()
Returns the URI of the JSP that this chip wants to use.
|
String |
getLabel() |
protected String |
getProposedUniqueName() |
int |
getToolbarType() |
String |
getTooltip() |
String |
getWidth()
Get the preferred width of this chip.
|
boolean |
isEnabled() |
boolean |
isPartOf() |
boolean |
isVisible() |
protected void |
notifyActionPerformed(List values) |
protected void |
perform() |
void |
processEvents(Map<String,List<String>> events)
Handles all incoming requests for this chip.
|
void |
removeActionListener(AbstractToolbarActionChip.ToolbarActionListener listener) |
void |
setAccessKey(char accessKey) |
void |
setAlignment(int alignment)
Sets the alignment of this toolbar action chip.
|
void |
setConfirmationMessage(String confirmationMessage) |
void |
setEnabled(boolean enabled) |
void |
setEvent(String event) |
void |
setJavaScript(String string) |
void |
setLabel(String string) |
void |
setShowLabel(boolean showLabel) |
void |
setTooltip(String tooltip) |
void |
setVisible(boolean visible) |
void |
setWidth(String string)
Set the intended width for this toolbaraction.
|
boolean |
showLabel() |
addEventListener, 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 static final String PERFORM
public static final int ALIGN_LEFT
public static final int ALIGN_RIGHT
protected Set accepted
public AbstractToolbarActionChip(DisplayState displayState, AbstractToolbarChip parent, String label, String event)
public AbstractToolbarActionChip(DisplayState displayState, AbstractToolbarChip parent, String label, String event, String javascript)
public AbstractToolbarActionChip(AbstractToolbarChip parent, String label, String event, String javascript)
public AbstractToolbarActionChip(AbstractToolbarChip parent, String label, String event)
public Set getAcceptedEvents()
getAcceptedEvents in interface EventCheckingChippublic void processEvents(Map<String,List<String>> events)
ChipprocessEvents in interface Chipprotected void notifyActionPerformed(List values)
public void addActionListener(AbstractToolbarActionChip.ToolbarActionListener listener)
public void removeActionListener(AbstractToolbarActionChip.ToolbarActionListener listener)
protected void perform()
public boolean isVisible()
public void setVisible(boolean visible)
public boolean isEnabled()
public void setEnabled(boolean enabled)
public abstract String getJSPURI()
Chippublic String getJavaScript()
public String getLabel()
public void setJavaScript(String string)
public void setLabel(String string)
public String getEvent()
public void setEvent(String event)
public boolean isPartOf()
public String getWidth()
public void setWidth(String string)
string - a String containing the preferred width for this chip (in css syntax, e.g. "50px") or public int getAlignment()
public void setAlignment(int alignment)
alignment - int containing the alignment constant (public boolean showLabel()
public void setShowLabel(boolean showLabel)
public int getToolbarType()
public String getTooltip()
public void setTooltip(String tooltip)
public char getAccessKey()
public void setAccessKey(char accessKey)
public String getConfirmationMessage()
public void setConfirmationMessage(String confirmationMessage)
protected String getProposedUniqueName()
getProposedUniqueName in class AbstractChipCopyright © 2017 SAP SE. All Rights Reserved.