Class AddMultiItemCommentAction
- java.lang.Object
-
- de.hybris.platform.cockpit.components.listview.AbstractListViewAction
-
- de.hybris.platform.cockpit.components.listview.impl.AbstractCommentAction
-
- de.hybris.platform.cockpit.components.listview.impl.AddMultiItemCommentAction
-
- All Implemented Interfaces:
AdvancedListViewAction,ListViewAction
public class AddMultiItemCommentAction extends AbstractCommentAction
Action that adds comment to selected items.
-
-
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.impl.AbstractCommentAction
AREA, BROWSER_AREA, EDITOR_AREA, PARENT, UPDATELISTENER
-
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 AddMultiItemCommentAction()AddMultiItemCommentAction(java.util.List<TypedObject> selectedItems)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoCreateContext(ListViewAction.Context context)java.lang.StringgetCommentTypeCode()org.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.MenupopupgetPopup(ListViewAction.Context context)Gets the popup of the action button.java.lang.StringgetTooltip(ListViewAction.Context context)Gets the tooltip of the action button.TypeServicegetTypeService()voidsetCommentTypeCode(java.lang.String commentTypeCode)-
Methods inherited from class de.hybris.platform.cockpit.components.listview.impl.AbstractCommentAction
getCockpitCommentService, getCommentService, getCommentType, getComponent, getDomain, setCommentType, setComponent, setDomain
-
Methods inherited from class de.hybris.platform.cockpit.components.listview.AbstractListViewAction
createContext, createContext, getItem, getMultiSelectPopup, getSelectedItems, getStatusCode, isAlwaysEnabled, sendEvent, sendUpdateItemsEvent, setAlwaysEnabled
-
-
-
-
Constructor Detail
-
AddMultiItemCommentAction
public AddMultiItemCommentAction()
-
AddMultiItemCommentAction
public AddMultiItemCommentAction(java.util.List<TypedObject> selectedItems)
-
-
Method Detail
-
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
-
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
-
getPopup
public org.zkoss.zul.Menupopup getPopup(ListViewAction.Context context)
Description copied from interface:ListViewActionGets 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
public org.zkoss.zul.Menupopup getContextPopup(ListViewAction.Context context)
Description copied from interface:ListViewActionGets 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
-
doCreateContext
protected void doCreateContext(ListViewAction.Context context)
- Specified by:
doCreateContextin classAbstractListViewAction
-
getTooltip
public java.lang.String getTooltip(ListViewAction.Context context)
Description copied from interface:ListViewActionGets the tooltip of the action button.- Returns:
- the tooltip string which should appear when the user hovers over the action button
-
getImageURI
public java.lang.String getImageURI(ListViewAction.Context context)
Description copied from interface:ListViewActionGets the image URI which represents the action button.- Returns:
- URI of the image to represent 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
-
getTypeService
public TypeService getTypeService()
-
getCommentTypeCode
public java.lang.String getCommentTypeCode()
- Returns:
- the commentTypeCode
-
setCommentTypeCode
public void setCommentTypeCode(java.lang.String commentTypeCode)
- Parameters:
commentTypeCode- the commentTypeCode to set
-
-