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 action
which 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.EventListener
getEventListener(ListViewAction.Context context)
Gets theEventListener
which is to be registered for theEvents.ON_CLICK
event.java.lang.String
getTargetPerspectiveUid()
boolean
isAlwaysEnabled()
Specifies whether this action should be enabled even though the component (where this action is used) is marked as non-editable.void
setTargetPerspectiveUid(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:AdvancedListViewAction
Specifies whether this action should be enabled even though the component (where this action is used) is marked as non-editable.- Specified by:
isAlwaysEnabled
in interfaceAdvancedListViewAction
- Overrides:
isAlwaysEnabled
in classAbstractListViewAction
- Returns:
true
if this action is always enabled,false
otherwise
-
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:ListViewAction
Gets theEventListener
which is to be registered for theEvents.ON_CLICK
event.- Returns:
- the event listener which should be called when user clicks the action button
-
-