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

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.A_CmsListItemSelectDialog<INFO>
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, 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 Details

    • A_CmsListItemSelectDialog

      public A_CmsListItemSelectDialog(List<INFO> itemInfos, String title, 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 Details

    • center

      public void center()
      Overrides:
      center in class CmsPopup
      See Also:
    • show

      public void show()
      Overrides:
      show in class CmsPopup
      See Also:
    • 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.