Class ProductSynchronizationStatus
- 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
-
- All Implemented Interfaces:
AdvancedListViewAction,ListViewAction
- Direct Known Subclasses:
ProductSynchronizationAction
public class ProductSynchronizationStatus extends AbstractSynchronizationAction
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_STATUS_IN_SYNCprotected static java.lang.StringICON_STATUS_IN_SYNC_NOTprotected static java.lang.StringICON_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 ProductSynchronizationStatus()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoCreateContext(ListViewAction.Context context)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()protected java.lang.StringgetTypeRestriction()-
Methods inherited from class de.hybris.platform.cockpit.components.listview.impl.AbstractSynchronizationAction
containsBaseProduct, getContextPopup, getCurrentStatus, getImageURI, getPopup, getPossiblyAffectedObjects, getStatusCode, getSyncBusyImg, getSynchronizationService, getSyncJobs, getTooltip, 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_STATUS_IN_SYNC
protected static final java.lang.String ICON_STATUS_IN_SYNC
- See Also:
- Constant Field Values
-
ICON_STATUS_IN_SYNC_NOT
protected static final java.lang.String ICON_STATUS_IN_SYNC_NOT
- See Also:
- Constant Field Values
-
ICON_STATUS_SYNC_INITIAL
protected static final java.lang.String ICON_STATUS_SYNC_INITIAL
- See Also:
- Constant Field Values
-
-
Method Detail
-
getTypeRestriction
protected java.lang.String getTypeRestriction()
- Overrides:
getTypeRestrictionin classAbstractSynchronizationAction
-
doCreateContext
protected void doCreateContext(ListViewAction.Context context)
- Specified by:
doCreateContextin classAbstractSynchronizationAction- Parameters:
context-
-
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
-
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 classAbstractListViewAction- Returns:
- the event listener which should be called when user clicks 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
-
getSyncInitImg
protected java.lang.String getSyncInitImg()
- Specified by:
getSyncInitImgin classAbstractSynchronizationAction
-
getSyncNotOKImg
protected java.lang.String getSyncNotOKImg()
- Specified by:
getSyncNotOKImgin classAbstractSynchronizationAction
-
getSyncOKImg
protected java.lang.String getSyncOKImg()
- Specified by:
getSyncOKImgin classAbstractSynchronizationAction
-
-