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.String
ICON_FUNC_APPROVAL_ACTION_AVAILABLE
protected java.lang.String
ICON_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 void
doChangeStatus(TypedObject selectedItem, java.lang.String approvalStatusCode)
java.lang.String
getImageURI(ListViewAction.Context context)
Gets the image URI which represents the action button.java.lang.String
getMultiSelectImageURI(ListViewAction.Context context)
Gets the image URI for selection operation which represents the action button.org.zkoss.zul.Menupopup
getMultiSelectPopup(ListViewAction.Context context)
Gets the popup of the action button for selection operation.org.zkoss.zul.Menupopup
getPopup(ListViewAction.Context context)
Gets the popup of the action button.java.lang.String
getTooltip(ListViewAction.Context context)
Gets the tooltip of the action button.void
setModelHelper(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:ListViewAction
Gets the popup of the action button for selection operation.- Specified by:
getMultiSelectPopup
in interfaceListViewAction
- Overrides:
getMultiSelectPopup
in classApprovalStatus
- Returns:
- the popup which should appear when the user clicks the action button or
null
if no popup is available
-
getPopup
public org.zkoss.zul.Menupopup getPopup(ListViewAction.Context context)
Description copied from interface:ListViewAction
Gets the popup of the action button.- Specified by:
getPopup
in interfaceListViewAction
- Overrides:
getPopup
in classApprovalStatus
- Returns:
- the popup which should appear when the user clicks the action button or
null
if 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:ListViewAction
Gets the image URI which represents the action button.- Specified by:
getImageURI
in interfaceListViewAction
- Overrides:
getImageURI
in classApprovalStatus
- Returns:
- URI of the image to represent the action button
-
getMultiSelectImageURI
public java.lang.String getMultiSelectImageURI(ListViewAction.Context context)
Description copied from interface:ListViewAction
Gets the image URI for selection operation which represents the action button.- Specified by:
getMultiSelectImageURI
in interfaceListViewAction
- Overrides:
getMultiSelectImageURI
in 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:ListViewAction
Gets the tooltip of the action button.- Specified by:
getTooltip
in interfaceListViewAction
- Overrides:
getTooltip
in classApprovalStatus
- Returns:
- the tooltip string which should appear when the user hovers over the action button
-
setModelHelper
public void setModelHelper(ModelHelper modelHelper)
-
-