Class AddItemCommentAction
- 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.AddItemCommentAction
-
- All Implemented Interfaces:
AdvancedListViewAction
,ListViewAction
public class AddItemCommentAction extends AbstractCommentAction
-
-
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 AddItemCommentAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doCreateContext(ListViewAction.Context context)
java.lang.String
getCommentTypeCode()
org.zkoss.zul.Menupopup
getContextPopup(ListViewAction.Context context)
Gets the context popup of the action button.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
getImageURI(ListViewAction.Context context)
Gets the image URI which represents the action button.org.zkoss.zul.Menupopup
getPopup(ListViewAction.Context context)
Gets the popup of the action button.java.lang.String
getTooltip(ListViewAction.Context context)
Gets the tooltip of the action button.TypeService
getTypeService()
void
setCommentTypeCode(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, getMultiSelectEventListener, getMultiSelectImageURI, getMultiSelectPopup, getSelectedItems, getStatusCode, isAlwaysEnabled, sendEvent, sendUpdateItemsEvent, setAlwaysEnabled
-
-
-
-
Method Detail
-
doCreateContext
protected void doCreateContext(ListViewAction.Context context)
- Specified by:
doCreateContext
in classAbstractListViewAction
-
getContextPopup
public org.zkoss.zul.Menupopup getContextPopup(ListViewAction.Context context)
Description copied from interface:ListViewAction
Gets the context popup of the action button.- Returns:
- the popup which should appear when the user right-clicks the action button or
null
if no popup is available
-
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
-
getImageURI
public java.lang.String getImageURI(ListViewAction.Context context)
Description copied from interface:ListViewAction
Gets the image URI which represents the action button.- Returns:
- URI of the image to represent the action button
-
getPopup
public org.zkoss.zul.Menupopup getPopup(ListViewAction.Context context)
Description copied from interface:ListViewAction
Gets the popup of the action button.- Returns:
- the popup which should appear when the user clicks the action button or
null
if no popup is available
-
getTooltip
public java.lang.String getTooltip(ListViewAction.Context context)
Description copied from interface:ListViewAction
Gets the tooltip of the action button.- Returns:
- the tooltip string which should appear when the user hovers over the action button
-
getCommentTypeCode
public java.lang.String getCommentTypeCode()
- Returns:
- the commentTypeCode
-
setCommentTypeCode
public void setCommentTypeCode(java.lang.String commentTypeCode)
- Parameters:
commentTypeCode
- the commentTypeCode to set
-
getTypeService
public TypeService getTypeService()
- Returns:
- the typeService
-
-