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:,<>,,,,,,,,,,,, java.lang.Iterable<>, 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.

    • Constructor Detail

      • A_CmsListItemSelectDialog

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

        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.

        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.

        info - the selected item
      • onClickOk

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