public abstract class AbstractListViewAction extends java.lang.Object implements AdvancedListViewAction
ListViewAction.Context| Modifier and Type | Field and Description |
|---|---|
protected boolean |
alwaysEnabled |
protected java.lang.String |
IN_EDITOR_AREA_SECTION_PANEL |
AFFECTED_ITEMS_KEY| Constructor and Description |
|---|
AbstractListViewAction() |
| Modifier and Type | Method and Description |
|---|---|
ListViewAction.Context |
createContext(ListComponentModel listModel,
TypedObject item)
Initialize values only once to be used by following service methods
|
ListViewAction.Context |
createContext(TableModel model,
TypedObject item,
ColumnDescriptor column)
Initialize values only once to be used by following service methods
|
protected abstract void |
doCreateContext(ListViewAction.Context context) |
protected TypedObject |
getItem(ListViewAction.Context context) |
EventListener |
getMultiSelectEventListener(ListViewAction.Context context)
Gets the
EventListener for selection operation which is to be registered for the Events#ON_CLICK event. |
java.lang.String |
getMultiSelectImageURI(ListViewAction.Context context)
Gets the image URI for selection operation which represents the action button.
|
Menupopup |
getMultiSelectPopup(ListViewAction.Context context)
Gets the popup of the action button for selection operation.
|
java.util.List<TypedObject> |
getSelectedItems(ListViewAction.Context context) |
java.lang.String |
getStatusCode(ListViewAction.Context context)
Get a status code for this action.
|
boolean |
isAlwaysEnabled()
Specifies whether this action should be enabled even though the component (where this action is used) is marked as
non-editable.
|
void |
sendEvent(java.lang.String event,
ContextAreaValueContainer cavc,
ListViewAction.Context context) |
protected void |
sendUpdateItemsEvent(ListViewAction.Context context) |
void |
setAlwaysEnabled(boolean alwaysEnabled)
Sets whether this action is always enabled or not.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetContextPopup, getEventListener, getImageURI, getPopup, getTooltipprotected boolean alwaysEnabled
protected java.lang.String IN_EDITOR_AREA_SECTION_PANEL
public boolean isAlwaysEnabled()
AdvancedListViewActionisAlwaysEnabled in interface AdvancedListViewActiontrue if this action is always enabled, false otherwisepublic void setAlwaysEnabled(boolean alwaysEnabled)
AdvancedListViewActionsetAlwaysEnabled in interface AdvancedListViewActionalwaysEnabled - true means this action will always be enabled even though the component is marked as
non-editablepublic ListViewAction.Context createContext(TableModel model, TypedObject item, ColumnDescriptor column)
ListViewActioncreateContext in interface ListViewActionpublic ListViewAction.Context createContext(ListComponentModel listModel, TypedObject item)
ListViewActioncreateContext in interface ListViewActionpublic void sendEvent(java.lang.String event,
ContextAreaValueContainer cavc,
ListViewAction.Context context)
protected void sendUpdateItemsEvent(ListViewAction.Context context)
protected abstract void doCreateContext(ListViewAction.Context context)
public java.lang.String getStatusCode(ListViewAction.Context context)
ListViewActiongetStatusCode in interface ListViewActioncontext - the Contextpublic java.lang.String getMultiSelectImageURI(ListViewAction.Context context)
ListViewActiongetMultiSelectImageURI in interface ListViewActionpublic EventListener getMultiSelectEventListener(ListViewAction.Context context)
ListViewActionEventListener for selection operation which is to be registered for the Events#ON_CLICK event.getMultiSelectEventListener in interface ListViewActionpublic Menupopup getMultiSelectPopup(ListViewAction.Context context)
ListViewActiongetMultiSelectPopup in interface ListViewActionnull if no popup is availablepublic java.util.List<TypedObject> getSelectedItems(ListViewAction.Context context)
protected TypedObject getItem(ListViewAction.Context context)
Copyright © 2018 SAP SE. All Rights Reserved.