public abstract class AbstractActionChip<T extends HMCAction> extends AbstractChip
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_ACTION_DISABLED_ICON |
static String |
DEFAULT_ACTION_ICON |
static String |
PERFORM |
CHIP_KEY, FALSE, FRAME_KEY, SHOW_JSP_COMMENTS, TRUE, USE_SOCKET_NAMINGDISPLAY_EVENT, FILTERED_PREFIX| Constructor and Description |
|---|
AbstractActionChip(DisplayState displayState,
Chip parent,
String name,
T action)
Creates a new instance of AbstractActionChip
|
AbstractActionChip(DisplayState displayState,
Chip parent,
String name,
T action,
String icon,
String disabledIcon)
Creates a new instance of AbstractActionChip
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract ActionEvent |
createActionEvent()
Provides a action event for the next execution.
|
T |
getAction() |
String |
getConfirmationMessage() |
String |
getDisabledIcon() |
String |
getIcon() |
String |
getName() |
String |
getPerformCommandID() |
String |
getTooltip() |
boolean |
isActive() |
boolean |
needsConfirmation() |
ActionResult |
performAction()
Executes the actual action by calling
HMCAction.perform(ActionEvent). |
void |
processEvents(Map<String,List<String>> events)
Handles all incoming requests for this chip.
|
protected void |
refresh(ActionResult result)
Does nothing right now.
|
void |
setName(String name) |
void |
setTooltip(String tooltip) |
protected void |
showActionResult(ActionResult result) |
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, getProposedUniqueName, 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, translateFormFieldToEventValuepublic static final String PERFORM
public static final String DEFAULT_ACTION_ICON
public static final String DEFAULT_ACTION_DISABLED_ICON
public AbstractActionChip(DisplayState displayState, Chip parent, String name, T action)
public T getAction()
public void processEvents(Map<String,List<String>> events)
public String getPerformCommandID()
protected abstract ActionEvent createActionEvent()
protected void refresh(ActionResult result)
result - the current action resultpublic ActionResult performAction()
HMCAction.perform(ActionEvent).public boolean isActive()
public void setName(String name)
public boolean needsConfirmation()
public String getConfirmationMessage()
public String getName()
public String getIcon()
public String getDisabledIcon()
public String getTooltip()
public void setTooltip(String tooltip)
protected void showActionResult(ActionResult result)
Copyright © 2017 SAP SE. All Rights Reserved.