Interface ListViewAction
-
- All Known Subinterfaces:
AdvancedListViewAction
- All Known Implementing Classes:
AbstractCmscockpitListViewAction,AbstractCommentAction,AbstractListViewAction,AbstractMultiSelectOnlyAction,AbstractPerspectiveSwitchAction,AbstractProductAction,AbstractSynchronizationAction,ActivateItemAction,AddAttachmentCommentAction,AddItemCommentAction,AddMultiItemCommentAction,AddProductToExpressUdateAction,AnswerCommentAction,AnswerCommentFromCommenLayerAction,ApprovalAction,ApprovalPageStatusAction,ApprovalStatus,BaseProductAction,ClassificationAction,CloneContentElementAction,ClonesAction,CmsComponentIconAction,CmsCreatePersonalizedPageAction,CmsElementSyncAction,CmsListviewMoveItemAction,CmsMultiplePagesAction,CmsRestrictionAction,CompareAction,CoverageInfoAction,DecisionAction,DefaultExportEditorAreaAction,DefaultPerspectiveSwitchAction,DeleteAction,DeleteCommentAction,DeleteCommentFromCommentLayerAction,DuplicateAction,EditAction,EditCommentAction,EditCommentFromCommentLayerAction,EditContentElementAction,EditItemAction,EditPageBrowserAction,ElementLockedInfoAction,ExportCsvAction,ExportEditorArea2PdfAction,ExportEditorArea2XlsAction,MoveContentElementAction,NewItemAction,NewPageBrowserAction,OpenCommentAction,PageLockBrowserAction,PendingAction,ProductSynchronizationAction,ProductSynchronizationStatus,PullSynchronizationAction,RecalculateOrderAction,RemoveContentElementAction,RemoveContentSlotAction,RemoveContextItemAction,RemovePageBrowserAction,ShowSynchProductsAction,SitePreviewThumbnailAction,SplitterDummyAction,TaskStatusAction,VariantsAction,VariantsStatus,ZoomContentElementAction
public interface ListViewActionRepresents a list view action.- See Also:
ActionCellRenderer
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classListViewAction.Context
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringAFFECTED_ITEMS_KEY
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ListViewAction.ContextcreateContext(ListComponentModel listModel, TypedObject item)Initialize values only once to be used by following service methodsListViewAction.ContextcreateContext(TableModel model, TypedObject item, ColumnDescriptor column)Initialize values only once to be used by following service methodsorg.zkoss.zul.MenupopupgetContextPopup(ListViewAction.Context context)Gets the context popup of the action button.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.org.zkoss.zul.MenupopupgetMultiSelectPopup(ListViewAction.Context context)Gets the popup of the action button for selection operation.org.zkoss.zul.MenupopupgetPopup(ListViewAction.Context context)Gets the popup of the action button.java.lang.StringgetStatusCode(ListViewAction.Context context)Get a status code for this action.java.lang.StringgetTooltip(ListViewAction.Context context)Gets the tooltip of the action button.
-
-
-
Field Detail
-
AFFECTED_ITEMS_KEY
static final java.lang.String AFFECTED_ITEMS_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
createContext
ListViewAction.Context createContext(TableModel model, TypedObject item, ColumnDescriptor column)
Initialize values only once to be used by following service methods- Parameters:
model-item-column-- Returns:
- Context containing computed value for subsequent service calls
-
createContext
ListViewAction.Context createContext(ListComponentModel listModel, TypedObject item)
Initialize values only once to be used by following service methods- Parameters:
listModel-item-- Returns:
- Context containing computed value for subsequent service calls
-
getImageURI
java.lang.String getImageURI(ListViewAction.Context context)
Gets the image URI which represents the action button.- Returns:
- URI of the image to represent the action button
-
getEventListener
org.zkoss.zk.ui.event.EventListener getEventListener(ListViewAction.Context context)
Gets theEventListenerwhich is to be registered for theEvents.ON_CLICKevent.- Returns:
- the event listener which should be called when user clicks the action button
-
getPopup
org.zkoss.zul.Menupopup getPopup(ListViewAction.Context context)
Gets the popup of the action button.- Returns:
- the popup which should appear when the user clicks the action button or
nullif no popup is available
-
getContextPopup
org.zkoss.zul.Menupopup getContextPopup(ListViewAction.Context context)
Gets the context popup of the action button.- Returns:
- the popup which should appear when the user right-clicks the action button or
nullif no popup is available
-
getTooltip
java.lang.String getTooltip(ListViewAction.Context context)
Gets the tooltip of the action button.- Returns:
- the tooltip string which should appear when the user hovers over the action button
-
getMultiSelectImageURI
java.lang.String getMultiSelectImageURI(ListViewAction.Context context)
Gets the image URI for selection operation which represents the action button.- Returns:
- URI of the image to represent the action button or null, if action doesn't support multi select operation
-
getMultiSelectEventListener
org.zkoss.zk.ui.event.EventListener getMultiSelectEventListener(ListViewAction.Context context)
Gets theEventListenerfor selection operation which is to be registered for theEvents.ON_CLICKevent.- Returns:
- the event listener which should be called when user clicks the action button
-
getMultiSelectPopup
org.zkoss.zul.Menupopup getMultiSelectPopup(ListViewAction.Context context)
Gets the popup of the action button for selection operation.- Returns:
- the popup which should appear when the user clicks the action button or
nullif no popup is available
-
getStatusCode
java.lang.String getStatusCode(ListViewAction.Context context)
Get a status code for this action. This is used e.g. by the id generator.- Parameters:
context- the Context- Returns:
- a custom string defined by the instance of listviewaction
-
-