Class PullSynchronizationAction
- 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.PullSynchronizationAction
-
- All Implemented Interfaces:
AdvancedListViewAction,ListViewAction
public class PullSynchronizationAction extends AbstractSynchronizationAction
-
-
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_PULL_SYNC_ACTION_AVAILABLEprotected static java.lang.StringICON_PULL_SYNC_ACTION_UNAVAILABLE-
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 PullSynchronizationAction()
-
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.java.lang.StringgetImageURI(ListViewAction.Context context)Gets the image URI which represents the action button.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.cockpit.components.listview.impl.AbstractSynchronizationAction
containsBaseProduct, getContextPopup, getCurrentStatus, getPopup, getPossiblyAffectedObjects, getStatusCode, getSyncBusyImg, getSynchronizationService, getSyncJobs, getTypeRestriction, 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_PULL_SYNC_ACTION_AVAILABLE
protected static final java.lang.String ICON_PULL_SYNC_ACTION_AVAILABLE
- See Also:
- Constant Field Values
-
ICON_PULL_SYNC_ACTION_UNAVAILABLE
protected static final java.lang.String ICON_PULL_SYNC_ACTION_UNAVAILABLE
- See Also:
- Constant Field Values
-
-
Method Detail
-
doCreateContext
protected void doCreateContext(ListViewAction.Context context)
- Specified by:
doCreateContextin classAbstractSynchronizationAction
-
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
-
getImageURI
public java.lang.String getImageURI(ListViewAction.Context context)
Description copied from interface:ListViewActionGets the image URI which represents the action button.- Specified by:
getImageURIin interfaceListViewAction- Overrides:
getImageURIin classAbstractSynchronizationAction- Returns:
- URI of the image to represent the action button
-
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
-
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
-
-