public abstract class AbstractEnableDisableAction extends AbstractListViewAction
ListViewAction.Context| Modifier and Type | Field and Description |
|---|---|
protected static String |
APPROVED_STATE_ICON |
protected static String |
ICON_FUNC_APPROVAL_ACTION_AVAILABLE |
protected static String |
ICON_FUNC_APPROVAL_ACTION_UNAVAILABLE |
protected static String |
ITEM_ACTIVE |
protected static String |
UNAPPROVED_STATE_ICON |
protected static String |
UNKNOWN_STATE_ICON |
alwaysEnabled, IN_EDITOR_AREA_SECTION_PANELAFFECTED_ITEMS_KEY| Constructor and Description |
|---|
AbstractEnableDisableAction() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doCreateContext(ListViewAction.Context context) |
Menupopup |
getContextPopup(ListViewAction.Context context)
Gets the context popup of the action button.
|
EventListener |
getEventListener(ListViewAction.Context context)
Gets the
EventListener which is to be registered for the Events#ON_CLICK event. |
String |
getImageURI(ListViewAction.Context context)
Gets the image URI which represents the action button.
|
String |
getMultiSelectImageURI(ListViewAction.Context context)
Gets the image URI for selection operation which represents the action button.
|
Menupopup |
getPopup(ListViewAction.Context context)
Gets the popup of the action button.
|
String |
getStatusLabel(boolean enabled) |
String |
getTooltip(ListViewAction.Context context)
Gets the tooltip of the action button.
|
TypeService |
getTypeService() |
void |
setTypeService(TypeService typeService) |
createContext, createContext, getItem, getMultiSelectEventListener, getMultiSelectPopup, getSelectedItems, getStatusCode, isAlwaysEnabled, sendEvent, sendUpdateItemsEvent, setAlwaysEnabledprotected static final String UNKNOWN_STATE_ICON
protected static final String UNAPPROVED_STATE_ICON
protected static final String APPROVED_STATE_ICON
protected static final String ICON_FUNC_APPROVAL_ACTION_AVAILABLE
protected static final String ICON_FUNC_APPROVAL_ACTION_UNAVAILABLE
protected static final String ITEM_ACTIVE
public TypeService getTypeService()
public void setTypeService(TypeService typeService)
typeService - the typeService to setpublic String getStatusLabel(boolean enabled)
public String getImageURI(ListViewAction.Context context)
ListViewActionpublic String getMultiSelectImageURI(ListViewAction.Context context)
ListViewActiongetMultiSelectImageURI in interface ListViewActiongetMultiSelectImageURI in class AbstractListViewActionpublic String getTooltip(ListViewAction.Context context)
ListViewActionpublic EventListener getEventListener(ListViewAction.Context context)
ListViewActionEventListener which is to be registered for the Events#ON_CLICK event.public Menupopup getPopup(ListViewAction.Context context)
ListViewActionnull if no popup is availablepublic Menupopup getContextPopup(ListViewAction.Context context)
ListViewActionnull if no popup is
availableprotected void doCreateContext(ListViewAction.Context context)
doCreateContext in class AbstractListViewActionCopyright © 2017 SAP SE. All Rights Reserved.