Class DefaultExportEditorAreaAction

java.lang.Object
de.hybris.platform.cockpit.components.listview.AbstractListViewAction
de.hybris.platform.cockpit.components.editorarea.export.DefaultExportEditorAreaAction
All Implemented Interfaces:
AdvancedListViewAction, ListViewAction
Direct Known Subclasses:
ExportEditorArea2PdfAction, ExportEditorArea2XlsAction

public class DefaultExportEditorAreaAction extends AbstractListViewAction
Creates action which generates pdf (or any other) preview of underling item. Preview is defined by editor area configuration.
  • Constructor Details

    • DefaultExportEditorAreaAction

      public DefaultExportEditorAreaAction()
  • Method Details

    • doCreateContext

      protected void doCreateContext(ListViewAction.Context context)
      Specified by:
      doCreateContext in class AbstractListViewAction
    • 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 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
    • getFileName

      protected String getFileName(TypedObject item)
      Returns:
      the desired file name
    • 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
    • setImageURI

      public void setImageURI(String imageURI)
    • 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 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
    • setEditorAreaExporter

      public void setEditorAreaExporter(EditorAreaExporter editorAreaExporter)
    • getConfiguration

      public EditorConfiguration getConfiguration(String typecode)
    • setuIConfigurationService

      public void setuIConfigurationService(UIConfigurationService uIConfigurationService)
    • getEditorAreaExporter

      protected EditorAreaExporter getEditorAreaExporter()
    • getFileName

      protected String getFileName()
    • setFileName

      public void setFileName(String fileName)
    • setTooltip

      public void setTooltip(String tooltip)
      Parameters:
      tooltip - the tooltip to set