Class CmsCreateModeSelectionDialog

  • 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.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
    Direct Known Subclasses:
    CmsDroppedElementModeSelectionDialog

    public class CmsCreateModeSelectionDialog
    extends CmsPopup
    A dialog used to select the create mode for new contents created from a collector list.

    • Constructor Detail

      • CmsCreateModeSelectionDialog

        public CmsCreateModeSelectionDialog​(org.opencms.gwt.shared.CmsListInfoBean info,
                                            com.google.gwt.user.client.rpc.AsyncCallback<java.lang.String> createModeCallback)
        Creates a new dialog instance.

        Parameters:
        info - the resource information for the selected collector list entry
        createModeCallback - the callback to call with the result
    • Method Detail

      • showDialog

        public static void showDialog​(org.opencms.util.CmsUUID referenceId,
                                      com.google.gwt.user.client.rpc.AsyncCallback<java.lang.String> createModeCallback)
        Shows the dialog for the given collector list entry.

        Parameters:
        referenceId - the structure id of the collector list entry
        createModeCallback - the callback which should be called with the selected create mode
      • messageAskMode

        public java.lang.String messageAskMode()
        Message accessor.

        Returns:
        the message
      • messageCaption

        public java.lang.String messageCaption()
        Message accessor.

        Returns:
        the message
      • messageCopy

        public java.lang.String messageCopy()
        Message accessor.

        Returns:
        the message
      • messageNew

        public java.lang.String messageNew()
        Message accessor.

        Returns:
        the message
      • addButtons

        protected void addButtons()
        Adds the dialog buttons.

      • createButton

        protected CmsPushButton createButton​(java.lang.String text,
                                             I_CmsButton.ButtonColor color,
                                             java.lang.String result)
        Creates a button used to select a create mode.

        Parameters:
        text - the button text
        color - the button color
        result - the create mode selected by the button
        Returns:
        the newly created button