Class ShowSynchProductsAction
- 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.ShowSynchProductsAction
-
- All Implemented Interfaces:
AdvancedListViewAction,ListViewAction
public class ShowSynchProductsAction extends AbstractProductAction
This product action class is responsible for creating action for searching synchronization sources or targets on given product.- See Also:
SynchronizationService
-
-
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 static java.lang.StringICON_SHOW_SYNC_PRODUCTS_ACTION_AVAILABLEprotected static java.lang.StringICON_SHOW_SYNC_PRODUCTS_ACTION_UNAVAILABLE-
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 ShowSynchProductsAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddSearchEventListener(org.zkoss.zk.ui.Component component, org.zkoss.zk.ui.event.EventListener listener)Adds the search event listener component.protected voiddoCreateContext(ListViewAction.Context context)org.zkoss.zul.MenupopupgetContextPopup(ListViewAction.Context context)Gets the context popup of the action button.org.zkoss.zk.ui.event.EventListenergetEventListener(ListViewAction.Context context)Gets theEventListenerwhich is to be registered for theEvents.ON_CLICKevent.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.SynchronizationServicegetSynchronizationService()Gets the synchronization service.java.lang.StringgetTooltip(ListViewAction.Context context)Gets the tooltip of the action button.protected TypeServicegetTypeService()Gets the type service.-
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, getStatusCode, isAlwaysEnabled, sendEvent, sendUpdateItemsEvent, setAlwaysEnabled
-
-
-
-
Field Detail
-
ICON_SHOW_SYNC_PRODUCTS_ACTION_AVAILABLE
protected static final java.lang.String ICON_SHOW_SYNC_PRODUCTS_ACTION_AVAILABLE
- See Also:
- Constant Field Values
-
ICON_SHOW_SYNC_PRODUCTS_ACTION_UNAVAILABLE
protected static final java.lang.String ICON_SHOW_SYNC_PRODUCTS_ACTION_UNAVAILABLE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getContextPopup
public org.zkoss.zul.Menupopup getContextPopup(ListViewAction.Context context)
Description copied from interface:ListViewActionGets the context popup of the action button.- Returns:
- the popup which should appear when the user right-clicks the action button or
nullif no popup is available
-
getEventListener
public org.zkoss.zk.ui.event.EventListener getEventListener(ListViewAction.Context context)
Description copied from interface:ListViewActionGets theEventListenerwhich is to be registered for theEvents.ON_CLICKevent.- Returns:
- the event listener which should be called when user clicks the action button
-
getImageURI
public java.lang.String getImageURI(ListViewAction.Context context)
Description copied from interface:ListViewActionGets the image URI which represents the action button.- 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 classAbstractListViewAction- Returns:
- URI of the image to represent the action button or null, if action doesn't support multi select operation
-
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 classAbstractListViewAction- 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.- Returns:
- the popup which should appear when the user clicks the action button or
nullif no popup is available
-
getSynchronizationService
public SynchronizationService getSynchronizationService()
Gets the synchronization service.- Returns:
- the synchronization service
-
getTooltip
public java.lang.String getTooltip(ListViewAction.Context context)
Description copied from interface:ListViewActionGets the tooltip of the action button.- Returns:
- the tooltip string which should appear when the user hovers over the action button
-
addSearchEventListener
protected void addSearchEventListener(org.zkoss.zk.ui.Component component, org.zkoss.zk.ui.event.EventListener listener)Adds the search event listener component.- Parameters:
component- the component on which event should be addedlistener- the listener
-
doCreateContext
protected void doCreateContext(ListViewAction.Context context)
- Specified by:
doCreateContextin classAbstractListViewAction
-
getTypeService
protected TypeService getTypeService()
Gets the type service.- Returns:
- the type service
-
-