Class AbstractListViewAction
- java.lang.Object
-
- de.hybris.platform.cockpit.components.listview.AbstractListViewAction
-
- All Implemented Interfaces:
AdvancedListViewAction,ListViewAction
- Direct Known Subclasses:
AbstractCommentAction,AbstractJobListViewAction,AbstractMultiSelectOnlyAction,AbstractPerspectiveSwitchAction,AbstractProductAction,AbstractSynchronizationAction,ActivateItemAction,ClassificationAction,ClonesAction,CoverageInfoAction,DecisionAction,DefaultExportEditorAreaAction,DeleteAction,DuplicateAction,EditItemAction,NewItemAction,PendingAction,RecalculateOrderAction,SplitterDummyAction,TaskStatusAction
public abstract class AbstractListViewAction extends java.lang.Object implements AdvancedListViewAction
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface de.hybris.platform.cockpit.components.listview.ListViewAction
ListViewAction.Context
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanalwaysEnabledprotected java.lang.StringIN_EDITOR_AREA_SECTION_PANEL-
Fields inherited from interface de.hybris.platform.cockpit.components.listview.ListViewAction
AFFECTED_ITEMS_KEY
-
-
Constructor Summary
Constructors Constructor Description AbstractListViewAction()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description ListViewAction.ContextcreateContext(ListComponentModel listModel, TypedObject item)Initialize values only once to be used by following service methodsListViewAction.ContextcreateContext(TableModel model, TypedObject item, ColumnDescriptor column)Initialize values only once to be used by following service methodsprotected abstract voiddoCreateContext(ListViewAction.Context context)protected TypedObjectgetItem(ListViewAction.Context context)org.zkoss.zk.ui.event.EventListenergetMultiSelectEventListener(ListViewAction.Context context)Gets theEventListenerfor selection operation which is to be registered for theEvents.ON_CLICKevent.java.lang.StringgetMultiSelectImageURI(ListViewAction.Context context)Gets the image URI for selection operation which represents the action button.org.zkoss.zul.MenupopupgetMultiSelectPopup(ListViewAction.Context context)Gets the popup of the action button for selection operation.java.util.List<TypedObject>getSelectedItems(ListViewAction.Context context)java.lang.StringgetStatusCode(ListViewAction.Context context)Get a status code for this action.booleanisAlwaysEnabled()Specifies whether this action should be enabled even though the component (where this action is used) is marked as non-editable.voidsendEvent(java.lang.String event, ContextAreaValueContainer cavc, ListViewAction.Context context)protected voidsendUpdateItemsEvent(ListViewAction.Context context)voidsetAlwaysEnabled(boolean alwaysEnabled)Sets whether this action is always enabled or not.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.hybris.platform.cockpit.components.listview.ListViewAction
getContextPopup, getEventListener, getImageURI, getPopup, getTooltip
-
-
-
-
Method Detail
-
isAlwaysEnabled
public boolean isAlwaysEnabled()
Description copied from interface:AdvancedListViewActionSpecifies whether this action should be enabled even though the component (where this action is used) is marked as non-editable.- Specified by:
isAlwaysEnabledin interfaceAdvancedListViewAction- Returns:
trueif this action is always enabled,falseotherwise
-
setAlwaysEnabled
public void setAlwaysEnabled(boolean alwaysEnabled)
Description copied from interface:AdvancedListViewActionSets whether this action is always enabled or not.- Specified by:
setAlwaysEnabledin interfaceAdvancedListViewAction- Parameters:
alwaysEnabled-truemeans this action will always be enabled even though the component is marked as non-editable
-
createContext
public ListViewAction.Context createContext(TableModel model, TypedObject item, ColumnDescriptor column)
Description copied from interface:ListViewActionInitialize values only once to be used by following service methods- Specified by:
createContextin interfaceListViewAction- Returns:
- Context containing computed value for subsequent service calls
-
createContext
public ListViewAction.Context createContext(ListComponentModel listModel, TypedObject item)
Description copied from interface:ListViewActionInitialize values only once to be used by following service methods- Specified by:
createContextin interfaceListViewAction- Returns:
- Context containing computed value for subsequent service calls
-
sendEvent
public void sendEvent(java.lang.String event, ContextAreaValueContainer cavc, ListViewAction.Context context)
-
sendUpdateItemsEvent
protected void sendUpdateItemsEvent(ListViewAction.Context context)
-
doCreateContext
protected abstract void doCreateContext(ListViewAction.Context context)
-
getStatusCode
public java.lang.String getStatusCode(ListViewAction.Context context)
Description copied from interface:ListViewActionGet a status code for this action. This is used e.g. by the id generator.- Specified by:
getStatusCodein interfaceListViewAction- Parameters:
context- the Context- Returns:
- a custom string defined by the instance of listviewaction
-
getMultiSelectImageURI
public java.lang.String getMultiSelectImageURI(ListViewAction.Context context)
Description copied from interface:ListViewActionGets the image URI for selection operation which represents the action button.- Specified by:
getMultiSelectImageURIin interfaceListViewAction- Returns:
- URI of the image to represent the action button or null, if action doesn't support multi select operation
-
getMultiSelectEventListener
public org.zkoss.zk.ui.event.EventListener getMultiSelectEventListener(ListViewAction.Context context)
Description copied from interface:ListViewActionGets theEventListenerfor selection operation which is to be registered for theEvents.ON_CLICKevent.- Specified by:
getMultiSelectEventListenerin interfaceListViewAction- Returns:
- the event listener which should be called when user clicks the action button
-
getMultiSelectPopup
public org.zkoss.zul.Menupopup getMultiSelectPopup(ListViewAction.Context context)
Description copied from interface:ListViewActionGets the popup of the action button for selection operation.- Specified by:
getMultiSelectPopupin interfaceListViewAction- Returns:
- the popup which should appear when the user clicks the action button or
nullif no popup is available
-
getSelectedItems
public java.util.List<TypedObject> getSelectedItems(ListViewAction.Context context)
-
getItem
protected TypedObject getItem(ListViewAction.Context context)
-
-