All Implemented Interfaces:
AdvancedListViewAction, ListViewAction

public class EditAction extends AbstractProductAction
  • Field Details

    • ICON_FUNC_EDIT_ACTION_AVAILABLE

      protected String ICON_FUNC_EDIT_ACTION_AVAILABLE
    • ICON_FUNC_EDIT_ACTION_UNAVAILABLE

      protected String ICON_FUNC_EDIT_ACTION_UNAVAILABLE
  • Constructor Details

    • EditAction

      public EditAction()
  • Method Details

    • getImageURI

      public 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
    • getEventListener

      public org.zkoss.zk.ui.event.EventListener getEventListener(ListViewAction.Context context)
      Description copied from interface: ListViewAction
      Gets the EventListener which is to be registered for the Events.ON_CLICK event.
      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: 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
    • 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
    • getTooltip

      public 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
    • doCreateContext

      protected void doCreateContext(ListViewAction.Context context)
      Specified by:
      doCreateContext in class AbstractListViewAction
    • getMultiSelectEventListener

      public org.zkoss.zk.ui.event.EventListener getMultiSelectEventListener(ListViewAction.Context context)
      Description copied from interface: ListViewAction
      Gets the EventListener for selection operation which is to be registered for the Events.ON_CLICK event.
      Specified by:
      getMultiSelectEventListener in interface ListViewAction
      Overrides:
      getMultiSelectEventListener in class AbstractListViewAction
      Returns:
      the event listener which should be called when user clicks the action button
    • getMultiSelectImageURI

      public String getMultiSelectImageURI(ListViewAction.Context context)
      Description copied from interface: ListViewAction
      Gets the image URI for selection operation which represents the action button.
      Specified by:
      getMultiSelectImageURI in interface ListViewAction
      Overrides:
      getMultiSelectImageURI in class AbstractListViewAction
      Returns:
      URI of the image to represent the action button or null, if action doesn't support multi select operation