Class AbstractPerspectiveSwitchAction
- java.lang.Object
-
- de.hybris.platform.cockpit.components.listview.AbstractListViewAction
-
- de.hybris.platform.cockpit.components.listview.AbstractPerspectiveSwitchAction
-
- All Implemented Interfaces:
AdvancedListViewAction,ListViewAction
- Direct Known Subclasses:
DefaultPerspectiveSwitchAction
public abstract class AbstractPerspectiveSwitchAction extends AbstractListViewAction
A perspective switch action is alist view actionwhich offers the functionality of switching to another perspective.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface de.hybris.platform.cockpit.components.listview.ListViewAction
ListViewAction.Context
-
-
Field Summary
-
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 AbstractPerspectiveSwitchAction()
-
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.java.lang.StringgetTargetPerspectiveUid()booleanisAlwaysEnabled()Specifies whether this action should be enabled even though the component (where this action is used) is marked as non-editable.voidsetTargetPerspectiveUid(java.lang.String targetUID)-
Methods inherited from class de.hybris.platform.cockpit.components.listview.AbstractListViewAction
createContext, createContext, doCreateContext, getItem, getMultiSelectEventListener, getMultiSelectImageURI, getMultiSelectPopup, getSelectedItems, getStatusCode, sendEvent, sendUpdateItemsEvent, setAlwaysEnabled
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.hybris.platform.cockpit.components.listview.ListViewAction
getContextPopup, getImageURI, getPopup, getTooltip
-
-
-
-
Method Detail
-
isAlwaysEnabled
public boolean isAlwaysEnabled()
Description copied from interface:AdvancedListViewActionSpecifies whether this action should be enabled even though the component (where this action is used) is marked as non-editable.- Specified by:
isAlwaysEnabledin interfaceAdvancedListViewAction- Overrides:
isAlwaysEnabledin classAbstractListViewAction- Returns:
trueif this action is always enabled,falseotherwise
-
setTargetPerspectiveUid
public void setTargetPerspectiveUid(java.lang.String targetUID)
-
getTargetPerspectiveUid
public java.lang.String getTargetPerspectiveUid()
-
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
-
-