Class CmsSearchTab

  • All Implemented Interfaces:
    com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.HasVisibility, com.google.gwt.user.client.ui.IsRenderable, com.google.gwt.user.client.ui.IsWidget

    public class CmsSearchTab
    extends A_CmsTab
    Provides the widget for the full text search tab.

    Since:
    8.0.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  CmsSearchTab.ParamType
      The parameter types of this tab.
      • Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject

        com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
    • Constructor Summary

      Constructors 
      Constructor Description
      CmsSearchTab​(CmsSearchTabHandler tabHandler, I_CmsAutoHider autoHideParent, java.lang.String currentLocale, java.util.Map<java.lang.String,​java.lang.String> availableLocales, boolean defaultIncludeExpired)
      Constructor for the search tab.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void clearInput()
      Clears the search tab input.
      protected void clearInput​(com.google.gwt.event.dom.client.ClickEvent event)
      Clears the search tab input.
      void fillParams​(org.opencms.ade.galleries.shared.CmsGallerySearchBean search)
      Sets the form fields to the values from the stored gallery search.
      java.util.List<CmsSearchParamPanel> getParamPanels​(org.opencms.ade.galleries.shared.CmsGallerySearchBean searchObj)
      Returns the search parameters to display within the result tab.
      int getRequiredHeight()
      Returns the height required by this tab.
      CmsSearchTabHandler getTabHandler()
      Returns the tab handler.
      protected void onDateCreatedEndChange​(com.google.gwt.event.logical.shared.ValueChangeEvent<java.util.Date> event)
      Handles changes of date created range end box.
      protected void onDateCreatedStartChange​(com.google.gwt.event.logical.shared.ValueChangeEvent<java.util.Date> event)
      Handles changes of date created range start box.
      protected void onDateModifiedEndChange​(com.google.gwt.event.logical.shared.ValueChangeEvent<java.util.Date> event)
      Handles changes of date modified range end box.
      protected void onDateModifiedStartChange​(com.google.gwt.event.logical.shared.ValueChangeEvent<java.util.Date> event)
      Handles changes of date modified range start box.
      protected void onIncludeExpiredChange​(com.google.gwt.event.logical.shared.ValueChangeEvent<java.lang.Boolean> event)
      Handles changes of the include expired check box.
      protected void onLocaleChange​(com.google.gwt.event.logical.shared.ValueChangeEvent<java.lang.String> event)
      Handles the change event of the locale select box.
      void removeParameter​(CmsSearchTab.ParamType type)
      Removes the given parameter type.
      • Methods inherited from class com.google.gwt.user.client.ui.Composite

        claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidget
      • Methods inherited from class com.google.gwt.user.client.ui.Widget

        addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
      • Methods inherited from class com.google.gwt.user.client.ui.UIObject

        addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • CmsSearchTab

        public CmsSearchTab​(CmsSearchTabHandler tabHandler,
                            I_CmsAutoHider autoHideParent,
                            java.lang.String currentLocale,
                            java.util.Map<java.lang.String,​java.lang.String> availableLocales,
                            boolean defaultIncludeExpired)
        Constructor for the search tab.

        Parameters:
        tabHandler - the tab handler
        autoHideParent - the auto-hide parent to this dialog if present
        currentLocale - the current content locale
        availableLocales - the available locales
        defaultIncludeExpired - true if 'show expired' should be enabled by default
    • Method Detail

      • clearInput

        public void clearInput()
        Clears the search tab input.

      • fillParams

        public void fillParams​(org.opencms.ade.galleries.shared.CmsGallerySearchBean search)
        Sets the form fields to the values from the stored gallery search.

        Parameters:
        search - a previously stored gallery search
      • clearInput

        @UiHandler("m_clearButton")
        protected void clearInput​(com.google.gwt.event.dom.client.ClickEvent event)
        Clears the search tab input.

        Parameters:
        event - the click event
      • onDateCreatedEndChange

        @UiHandler("m_dateCreatedEndDateBox")
        protected void onDateCreatedEndChange​(com.google.gwt.event.logical.shared.ValueChangeEvent<java.util.Date> event)
        Handles changes of date created range end box.

        Parameters:
        event - the change event
      • onDateCreatedStartChange

        @UiHandler("m_dateCreatedStartDateBox")
        protected void onDateCreatedStartChange​(com.google.gwt.event.logical.shared.ValueChangeEvent<java.util.Date> event)
        Handles changes of date created range start box.

        Parameters:
        event - the change event
      • onDateModifiedEndChange

        @UiHandler("m_dateModifiedEndDateBox")
        protected void onDateModifiedEndChange​(com.google.gwt.event.logical.shared.ValueChangeEvent<java.util.Date> event)
        Handles changes of date modified range end box.

        Parameters:
        event - the change event
      • onDateModifiedStartChange

        @UiHandler("m_dateModifiedStartDateBox")
        protected void onDateModifiedStartChange​(com.google.gwt.event.logical.shared.ValueChangeEvent<java.util.Date> event)
        Handles changes of date modified range start box.

        Parameters:
        event - the change event
      • onIncludeExpiredChange

        @UiHandler("m_includeExpiredCheckBox")
        protected void onIncludeExpiredChange​(com.google.gwt.event.logical.shared.ValueChangeEvent<java.lang.Boolean> event)
        Handles changes of the include expired check box.

        Parameters:
        event - the change event
      • onLocaleChange

        @UiHandler("m_localeSelection")
        protected void onLocaleChange​(com.google.gwt.event.logical.shared.ValueChangeEvent<java.lang.String> event)
        Handles the change event of the locale select box.

        Parameters:
        event - the change event