Class AddProductToExpressUdateAction
- 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.AddProductToExpressUdateAction
-
- All Implemented Interfaces:
AdvancedListViewAction
,ListViewAction
public class AddProductToExpressUdateAction extends AbstractProductAction
-
-
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
BUTTON_ICON
protected java.lang.String
BUTTON_ICON_INACTIVE
protected static java.lang.String
EXPRESS_UPDATE_CATALOG_VERSIONS
-
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 AddProductToExpressUdateAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doCreateContext(ListViewAction.Context context)
org.zkoss.zul.Menupopup
getContextPopup(ListViewAction.Context context)
Gets the context popup of the action button.org.zkoss.zk.ui.event.EventListener
getEventListener(ListViewAction.Context context)
Gets theEventListener
which is to be registered for theEvents.ON_CLICK
event.java.lang.String
getImageURI(ListViewAction.Context context)
Gets the image URI which represents the action button.org.zkoss.zk.ui.event.EventListener
getMultiSelectEventListener(ListViewAction.Context context)
Gets theEventListener
for selection operation which is to be registered for theEvents.ON_CLICK
event.java.lang.String
getMultiSelectImageURI(ListViewAction.Context context)
Gets the image URI for selection operation which represents the action button.org.zkoss.zul.Menupopup
getPopup(ListViewAction.Context context)
Gets the popup of the action button.org.springframework.messaging.MessageChannel
getProductExpressUpdateChannel()
java.lang.String
getTooltip(ListViewAction.Context context)
Gets the tooltip of the action button.protected boolean
isAddingToExpressUpdateEnabled(ListViewAction.Context context)
protected boolean
isMultiAddingToExpressUpdateEnabled(ListViewAction.Context context)
protected boolean
sendProductToChannel(ProductModel product)
void
setProductExpressUpdateChannel(org.springframework.messaging.MessageChannel productExpressUpdateChannel)
-
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, getMultiSelectPopup, getSelectedItems, getStatusCode, isAlwaysEnabled, sendEvent, sendUpdateItemsEvent, setAlwaysEnabled
-
-
-
-
Field Detail
-
EXPRESS_UPDATE_CATALOG_VERSIONS
protected static final java.lang.String EXPRESS_UPDATE_CATALOG_VERSIONS
- See Also:
- Constant Field Values
-
BUTTON_ICON
protected java.lang.String BUTTON_ICON
-
BUTTON_ICON_INACTIVE
protected java.lang.String BUTTON_ICON_INACTIVE
-
-
Method Detail
-
getTooltip
public java.lang.String getTooltip(ListViewAction.Context context)
Description copied from interface:ListViewAction
Gets the tooltip of the action button.- Returns:
- the tooltip string which should appear when the user hovers over the action button
-
getImageURI
public java.lang.String getImageURI(ListViewAction.Context context)
Description copied from interface:ListViewAction
Gets the image URI which represents the action button.- Returns:
- URI of the image to represent the action button
-
isAddingToExpressUpdateEnabled
protected boolean isAddingToExpressUpdateEnabled(ListViewAction.Context context)
-
getEventListener
public org.zkoss.zk.ui.event.EventListener getEventListener(ListViewAction.Context context)
Description copied from interface:ListViewAction
Gets theEventListener
which is to be registered for theEvents.ON_CLICK
event.- Returns:
- the event listener which should be called when user clicks the action button
-
sendProductToChannel
protected boolean sendProductToChannel(ProductModel product)
-
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 classAbstractListViewAction
- Returns:
- URI of the image to represent the action button or null, if action doesn't support multi select operation
-
isMultiAddingToExpressUpdateEnabled
protected boolean isMultiAddingToExpressUpdateEnabled(ListViewAction.Context context)
-
getMultiSelectEventListener
public org.zkoss.zk.ui.event.EventListener getMultiSelectEventListener(ListViewAction.Context context)
Description copied from interface:ListViewAction
Gets theEventListener
for selection operation which is to be registered for theEvents.ON_CLICK
event.- Specified by:
getMultiSelectEventListener
in interfaceListViewAction
- Overrides:
getMultiSelectEventListener
in classAbstractListViewAction
- Returns:
- the event listener which should be called when user clicks the action button
-
getPopup
public org.zkoss.zul.Menupopup getPopup(ListViewAction.Context context)
Description copied from interface:ListViewAction
Gets the popup of the action button.- Returns:
- the popup which should appear when the user clicks the action button or
null
if no popup is available
-
getContextPopup
public org.zkoss.zul.Menupopup getContextPopup(ListViewAction.Context context)
Description copied from interface:ListViewAction
Gets the context popup of the action button.- Returns:
- the popup which should appear when the user right-clicks the action button or
null
if no popup is available
-
doCreateContext
protected void doCreateContext(ListViewAction.Context context)
- Specified by:
doCreateContext
in classAbstractListViewAction
-
getProductExpressUpdateChannel
public org.springframework.messaging.MessageChannel getProductExpressUpdateChannel()
-
setProductExpressUpdateChannel
public void setProductExpressUpdateChannel(org.springframework.messaging.MessageChannel productExpressUpdateChannel)
-
-