Class CmsSearchTab

java.lang.Object
com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Composite
org.opencms.ade.galleries.client.ui.A_CmsTab
org.opencms.ade.galleries.client.ui.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 enum 
    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
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected CmsPushButton
    The button to clear the tab input.
    protected String
    The current locale.
    protected CmsDateBox
    The date box for the created until date.
    protected com.google.gwt.user.client.ui.Label
    The label for the created until date.
    protected CmsDateBox
    The date box for the created since date.
    protected com.google.gwt.user.client.ui.Label
    The label for the created since date.
    protected CmsDateBox
    The date box for the modified until date.
    protected com.google.gwt.user.client.ui.Label
    The label for the modified until date.
    protected CmsDateBox
    The date box for the modified since date.
    protected com.google.gwt.user.client.ui.Label
    The label for the modified since date.
    protected CmsCheckBox
    The include expired resources check-box.
    protected com.google.gwt.user.client.ui.Label
    The label for the language selection.
    protected com.google.gwt.user.client.ui.HTMLPanel
    The row for the language selection.
    protected CmsSelectBox
    The select box for the language selection.

    Fields inherited from class org.opencms.ade.galleries.client.ui.A_CmsTab

    m_tabTextAccessor

    Fields inherited from class com.google.gwt.user.client.ui.UIObject

    DEBUG_ID_PREFIX
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    void
    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.
    getParamPanels(org.opencms.ade.galleries.shared.CmsGallerySearchBean searchObj)
    Returns the search parameters to display within the result tab.
    int
    Returns the height required by this tab.
    Returns the tab handler.
    protected void
    onDateCreatedEndChange(com.google.gwt.event.logical.shared.ValueChangeEvent<Date> event)
    Handles changes of date created range end box.
    protected void
    onDateCreatedStartChange(com.google.gwt.event.logical.shared.ValueChangeEvent<Date> event)
    Handles changes of date created range start box.
    protected void
    onDateModifiedEndChange(com.google.gwt.event.logical.shared.ValueChangeEvent<Date> event)
    Handles changes of date modified range end box.
    protected void
    onDateModifiedStartChange(com.google.gwt.event.logical.shared.ValueChangeEvent<Date> event)
    Handles changes of date modified range start box.
    protected void
    onIncludeExpiredChange(com.google.gwt.event.logical.shared.ValueChangeEvent<Boolean> event)
    Handles changes of the include expired check box.
    protected void
    onLocaleChange(com.google.gwt.event.logical.shared.ValueChangeEvent<String> event)
    Handles the change event of the locale select box.
    void
    Removes the given parameter type.

    Methods inherited from class org.opencms.ade.galleries.client.ui.A_CmsTab

    clearParams, getTabId, isSelected, onDeselection, onResize, onSelection, removeParam, setTabTextAccessor

    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
  • Field Details

  • Constructor Details

    • CmsSearchTab

      public CmsSearchTab(CmsSearchTabHandler tabHandler, I_CmsAutoHider autoHideParent, String currentLocale, Map<String,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 Details

    • 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
    • getParamPanels

      public List<CmsSearchParamPanel> getParamPanels(org.opencms.ade.galleries.shared.CmsGallerySearchBean searchObj)
      Description copied from class: A_CmsTab
      Returns the search parameters to display within the result tab.

      Specified by:
      getParamPanels in class A_CmsTab
      Parameters:
      searchObj - the current search object
      Returns:
      the parameter panel
      See Also:
    • getRequiredHeight

      public int getRequiredHeight()
      Description copied from class: A_CmsTab
      Returns the height required by this tab.

      Specified by:
      getRequiredHeight in class A_CmsTab
      Returns:
      the height
      See Also:
    • getTabHandler

      Description copied from class: A_CmsTab
      Returns the tab handler.

      Specified by:
      getTabHandler in class A_CmsTab
      Returns:
      the tab handler
      See Also:
    • removeParameter

      Removes the given parameter type.

      Parameters:
      type - the parameter type
    • 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<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<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<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<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<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<String> event)
      Handles the change event of the locale select box.

      Parameters:
      event - the change event