Class ApprovalAction
- java.lang.Object
-
- de.hybris.platform.cockpit.components.listview.AbstractListViewAction
-
- de.hybris.platform.productcockpit.components.listview.impl.AbstractProductAction
-
- de.hybris.platform.productcockpit.components.listview.impl.ApprovalStatus
-
- de.hybris.platform.productcockpit.components.listview.impl.ApprovalAction
-
- All Implemented Interfaces:
AdvancedListViewAction,ListViewAction
public class ApprovalAction extends ApprovalStatus
-
-
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 java.lang.StringICON_FUNC_APPROVAL_ACTION_AVAILABLEprotected java.lang.StringICON_FUNC_APPROVAL_ACTION_UNAVAILABLE-
Fields inherited from class de.hybris.platform.productcockpit.components.listview.impl.ApprovalStatus
APPROVED_STATE_ICON, UNAPPROVED_STATE_ICON, UNKNOWN_STATE_ICON
-
Fields inherited from class de.hybris.platform.cockpit.components.listview.AbstractListViewAction
alwaysEnabled, IN_EDITOR_AREA_SECTION_PANEL
-
Fields inherited from interface de.hybris.platform.cockpit.components.listview.ListViewAction
AFFECTED_ITEMS_KEY
-
-
Constructor Summary
Constructors Constructor Description ApprovalAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoChangeStatus(TypedObject selectedItem, java.lang.String approvalStatusCode)java.lang.StringgetImageURI(ListViewAction.Context context)Gets the image URI which represents the action button.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.org.zkoss.zul.MenupopupgetPopup(ListViewAction.Context context)Gets the popup of the action button.java.lang.StringgetTooltip(ListViewAction.Context context)Gets the tooltip of the action button.voidsetModelHelper(ModelHelper modelHelper)-
Methods inherited from class de.hybris.platform.productcockpit.components.listview.impl.ApprovalStatus
doCreateContext, getContextPopup, getEventListener, getStatusCode, getTypeService
-
Methods inherited from class de.hybris.platform.productcockpit.components.listview.impl.AbstractProductAction
getProductCockpitProductService
-
Methods inherited from class de.hybris.platform.cockpit.components.listview.AbstractListViewAction
createContext, createContext, getItem, getMultiSelectEventListener, getSelectedItems, isAlwaysEnabled, sendEvent, sendUpdateItemsEvent, setAlwaysEnabled
-
-
-
-
Method Detail
-
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- Overrides:
getMultiSelectPopupin classApprovalStatus- Returns:
- the popup which should appear when the user clicks the action button or
nullif no popup is available
-
getPopup
public org.zkoss.zul.Menupopup getPopup(ListViewAction.Context context)
Description copied from interface:ListViewActionGets the popup of the action button.- Specified by:
getPopupin interfaceListViewAction- Overrides:
getPopupin classApprovalStatus- Returns:
- the popup which should appear when the user clicks the action button or
nullif no popup is available
-
doChangeStatus
protected void doChangeStatus(TypedObject selectedItem, java.lang.String approvalStatusCode)
-
getImageURI
public java.lang.String getImageURI(ListViewAction.Context context)
Description copied from interface:ListViewActionGets the image URI which represents the action button.- Specified by:
getImageURIin interfaceListViewAction- Overrides:
getImageURIin classApprovalStatus- Returns:
- URI of the image to represent the action button
-
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- Overrides:
getMultiSelectImageURIin classApprovalStatus- Returns:
- URI of the image to represent the action button or null, if action doesn't support multi select operation
-
getTooltip
public java.lang.String getTooltip(ListViewAction.Context context)
Description copied from interface:ListViewActionGets the tooltip of the action button.- Specified by:
getTooltipin interfaceListViewAction- Overrides:
getTooltipin classApprovalStatus- Returns:
- the tooltip string which should appear when the user hovers over the action button
-
setModelHelper
public void setModelHelper(ModelHelper modelHelper)
-
-