Interface I_CmsContextMenuCommand

All Known Subinterfaces:
I_CmsValidatingContextMenuCommand
All Known Implementing Classes:
CmsAbout, CmsAliasDialog, CmsCategories, CmsContextMenuDialog, CmsDeleteResource, CmsEditExternalLink, CmsEditFile, CmsEditUserSettings, CmsEmbeddedAction, CmsGoToParentAction, CmsHistory, CmsLockReport, CmsOpenSeoDialog, CmsPreview, CmsRefreshAction, CmsRename, CmsResourceInfo, CmsRestore, CmsShowPage, CmsSitemapAttributeEditor, CmsUndelete

public interface I_CmsContextMenuCommand
Interface for context menu commands.

Since:
version 8.0.1
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    execute(org.opencms.util.CmsUUID structureId, I_CmsContextMenuHandler handler, org.opencms.gwt.shared.CmsContextMenuEntryBean bean)
    Executed on context menu item click.
    getItemWidget(org.opencms.util.CmsUUID structureId, I_CmsContextMenuHandler handler, org.opencms.gwt.shared.CmsContextMenuEntryBean bean)
    Returns the special menu item widget for this command.
    boolean
    Returns if this command provides it's own menu item widget.
  • Method Details

    • execute

      void execute(org.opencms.util.CmsUUID structureId, I_CmsContextMenuHandler handler, org.opencms.gwt.shared.CmsContextMenuEntryBean bean)
      Executed on context menu item click.

      Parameters:
      structureId - the structure id of the resource
      handler - the context menu handler
      bean - the context menu entry bean
    • getItemWidget

      A_CmsContextMenuItem getItemWidget(org.opencms.util.CmsUUID structureId, I_CmsContextMenuHandler handler, org.opencms.gwt.shared.CmsContextMenuEntryBean bean)
      Returns the special menu item widget for this command.

      Parameters:
      structureId - the structure id of the resource
      handler - the context menu handler
      bean - the context menu entry bean
      Returns:
      the special menu item widget for this command
    • hasItemWidget

      boolean hasItemWidget()
      Returns if this command provides it's own menu item widget.

      Returns:
      true if this command provides it's own menu item widget