Class ProductSynchronizationAction
- java.lang.Object
-
- de.hybris.platform.cockpit.components.listview.AbstractListViewAction
-
- de.hybris.platform.cockpit.components.listview.impl.AbstractSynchronizationAction
-
- de.hybris.platform.productcockpit.components.listview.impl.ProductSynchronizationStatus
-
- de.hybris.platform.productcockpit.components.listview.impl.ProductSynchronizationAction
-
- All Implemented Interfaces:
AdvancedListViewAction,ListViewAction
public class ProductSynchronizationAction extends ProductSynchronizationStatus
Provides synchronization functionality within Listview component
-
-
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_SYNC_ACTION_AVAILABLEprotected static java.lang.StringICON_SYNC_ACTION_UNAVAILABLE-
Fields inherited from class de.hybris.platform.productcockpit.components.listview.impl.ProductSynchronizationStatus
ICON_STATUS_IN_SYNC, ICON_STATUS_IN_SYNC_NOT, ICON_STATUS_SYNC_INITIAL
-
Fields inherited from class de.hybris.platform.cockpit.components.listview.impl.AbstractSynchronizationAction
CURRENT_STATUS_KEY, SOURCE_CATALOG_VERSION_KEY, SOURCE_ITEMS_KEY, SYNC_JOBS_KEY, syncService, typeService
-
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 ProductSynchronizationAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.zkoss.zk.ui.event.EventListenergetEventListener(ListViewAction.Context context)Gets theEventListenerwhich is to be registered for theEvents.ON_CLICKevent.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.protected java.lang.StringgetSyncInitImg()protected java.lang.StringgetSyncNotOKImg()protected java.lang.StringgetSyncOKImg()java.lang.StringgetTooltip(ListViewAction.Context context)Gets the tooltip of the action button.-
Methods inherited from class de.hybris.platform.productcockpit.components.listview.impl.ProductSynchronizationStatus
doCreateContext, getTypeRestriction
-
Methods inherited from class de.hybris.platform.cockpit.components.listview.impl.AbstractSynchronizationAction
containsBaseProduct, getContextPopup, getCurrentStatus, getImageURI, getPopup, getPossiblyAffectedObjects, getStatusCode, getSyncBusyImg, getSynchronizationService, getSyncJobs, getTypeService, sendItemChangeEvents
-
Methods inherited from class de.hybris.platform.cockpit.components.listview.AbstractListViewAction
createContext, createContext, getItem, getMultiSelectPopup, getSelectedItems, isAlwaysEnabled, sendEvent, sendUpdateItemsEvent, setAlwaysEnabled
-
-
-
-
Field Detail
-
ICON_SYNC_ACTION_AVAILABLE
protected static final java.lang.String ICON_SYNC_ACTION_AVAILABLE
- See Also:
- Constant Field Values
-
ICON_SYNC_ACTION_UNAVAILABLE
protected static final java.lang.String ICON_SYNC_ACTION_UNAVAILABLE
- See Also:
- Constant Field Values
-
-
Method Detail
-
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.- Specified by:
getEventListenerin interfaceListViewAction- Overrides:
getEventListenerin classProductSynchronizationStatus- Returns:
- the event listener which should be called when user clicks the action button
-
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- Overrides:
getMultiSelectEventListenerin classProductSynchronizationStatus- Returns:
- the event listener which should be called when user clicks the action button
-
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 classAbstractSynchronizationAction- Returns:
- the tooltip string which should appear when the user hovers over the action button
-
getSyncNotOKImg
protected java.lang.String getSyncNotOKImg()
- Overrides:
getSyncNotOKImgin classProductSynchronizationStatus
-
getSyncInitImg
protected java.lang.String getSyncInitImg()
- Overrides:
getSyncInitImgin classProductSynchronizationStatus
-
getSyncOKImg
protected java.lang.String getSyncOKImg()
- Overrides:
getSyncOKImgin classProductSynchronizationStatus
-
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 classProductSynchronizationStatus- Returns:
- URI of the image to represent the action button or null, if action doesn't support multi select operation
-
-