Class 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<java.lang.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, java.lang.Iterable<com.google.gwt.user.client.ui.Widget>, I_CmsAutoHider

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

    • Method Detail

      • 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,
                                                                  java.lang.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<java.lang.String> event)
        Validates the form input.

        Specified by:
        onValueChange in interface com.google.gwt.event.logical.shared.ValueChangeHandler<java.lang.String>
        See Also:
        ValueChangeHandler.onValueChange(com.google.gwt.event.logical.shared.ValueChangeEvent)
      • 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,
                                    java.lang.String message)
        Enables or disables the OK button.

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