Class CmsEditExternalLinkDialog

java.lang.Object
com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Panel
com.google.gwt.user.client.ui.SimplePanel
com.google.gwt.user.client.ui.PopupPanel
org.opencms.gwt.client.ui.CmsPopup
org.opencms.gwt.client.ui.externallink.CmsEditExternalLinkDialog
All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.logical.shared.HasCloseHandlers<com.google.gwt.user.client.ui.PopupPanel>, com.google.gwt.event.logical.shared.ValueChangeHandler<String>, com.google.gwt.event.shared.EventHandler, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.EventPreview, com.google.gwt.user.client.ui.AcceptsOneWidget, com.google.gwt.user.client.ui.HasAnimation, com.google.gwt.user.client.ui.HasOneWidget, com.google.gwt.user.client.ui.HasVisibility, com.google.gwt.user.client.ui.HasWidgets, com.google.gwt.user.client.ui.HasWidgets.ForIsWidget, com.google.gwt.user.client.ui.IsWidget, com.google.gwt.user.client.ui.SourcesPopupEvents, Iterable<com.google.gwt.user.client.ui.Widget>, I_CmsAutoHider

public final class CmsEditExternalLinkDialog extends CmsPopup implements com.google.gwt.event.logical.shared.ValueChangeHandler<String>
Dialog to create and edit external link resources.

  • Field Details

  • Method Details

    • loadAndShowDialog

      public static CmsEditExternalLinkDialog loadAndShowDialog(org.opencms.util.CmsUUID structureId)
      Loads the link info and shows the edit dialog.

      Parameters:
      structureId - the structure id
      Returns:
      the dialog object
    • showNewLinkDialog

      public static CmsEditExternalLinkDialog showNewLinkDialog(org.opencms.gwt.shared.CmsListInfoBean typeInfo, String parentFolderPath)
      Shows the create new link dialog.

      Parameters:
      typeInfo - the 'pointer' type info
      parentFolderPath - the parent folder site path
      Returns:
      the dialog object
    • onValueChange

      public void onValueChange(com.google.gwt.event.logical.shared.ValueChangeEvent<String> event)
      Validates the form input.

      Specified by:
      onValueChange in interface com.google.gwt.event.logical.shared.ValueChangeHandler<String>
      See Also:
      • ValueChangeHandler.onValueChange(com.google.gwt.event.logical.shared.ValueChangeEvent)
    • setContextMenuHandler

      public void setContextMenuHandler(I_CmsContextMenuHandler contextMenuHandler)
      Sets the context menu handler.

      Parameters:
      contextMenuHandler - the context menu handler to set
    • initContent

      protected void initContent(org.opencms.gwt.shared.CmsExternalLinkInfoBean linkInfo)
      Initializes the dialog content.

      Parameters:
      linkInfo - the link info bean
    • onOk

      protected void onOk()
      Called on dialog OK.

    • setOkEnabled

      protected void setOkEnabled(boolean enabled, String message)
      Enables or disables the OK button.

      Parameters:
      enabled - true to enable the button
      message - the disabled reason