Class A_CmsListItemSelectDialog<INFO extends org.opencms.gwt.shared.CmsListInfoBean>

  • Type Parameters:
    INFO - the type of list info bean which should be used as select options
    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:
    CmsModelSelectDialog, CmsSubSitemapMenuEntry.SitemapTypeDialog

    public abstract class A_CmsListItemSelectDialog<INFO extends org.opencms.gwt.shared.CmsListInfoBean>
    extends CmsPopup
    Dialog to select a resource model for a new resource.

    Since:
    8.0.3
    • Constructor Detail

      • A_CmsListItemSelectDialog

        public A_CmsListItemSelectDialog​(java.util.List<INFO> itemInfos,
                                         java.lang.String title,
                                         java.lang.String message)
        Constructor.

        Parameters:
        itemInfos - the list info beans for the possible select options
        title - the title for the model selection dialog
        message - the message to display in the model selection dialog
    • Method Detail

      • ensureChecked

        protected void ensureChecked​(org.opencms.util.CmsUUID structureId)
        Makes sure the item with the given structure id is checked.

        Parameters:
        structureId - the structure id
      • handleSelection

        protected abstract void handleSelection​(INFO info)
        The method that will be called with the selected item when the user clicks on OK.

        Parameters:
        info - the selected item
      • onClickOk

        protected void onClickOk()
        Creates the new element with selected model resource.