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
Provides the widget for the full text search tab.
- Since:
- 8.0.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic 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
Modifier and TypeFieldDescriptionprotected 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
ConstructorDescriptionCmsSearchTab
(CmsSearchTabHandler tabHandler, I_CmsAutoHider autoHideParent, String currentLocale, Map<String, String> availableLocales, boolean defaultIncludeExpired) Constructor for the search tab. -
Method Summary
Modifier and TypeMethodDescriptionvoid
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
-
Field Details
-
m_clearButton
The button to clear the tab input. -
m_currentLocale
The current locale. -
m_dateCreatedEndDateBox
The date box for the created until date. -
m_dateCreatedEndLabel
The label for the created until date. -
m_dateCreatedStartDateBox
The date box for the created since date. -
m_dateCreatedStartLabel
The label for the created since date. -
m_dateModifiedEndDateBox
The date box for the modified until date. -
m_dateModifiedEndLabel
The label for the modified until date. -
m_dateModifiedStartDateBox
The date box for the modified since date. -
m_dateModifiedStartLabel
The label for the modified since date. -
m_includeExpiredCheckBox
The include expired resources check-box. -
m_localeLabel
The label for the language selection. -
m_localeRow
The row for the language selection. -
m_localeSelection
The select box for the language selection.
-
-
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 handlerautoHideParent
- the auto-hide parent to this dialog if presentcurrentLocale
- the current content localeavailableLocales
- the available localesdefaultIncludeExpired
- true if 'show expired' should be enabled by default
-
-
Method Details
-
clearInput
Clears the search tab input. -
getRequiredHeight
Description copied from class:A_CmsTab
Returns the height required by this tab.- Specified by:
getRequiredHeight
in classA_CmsTab
- Returns:
- the height
- See Also:
-
getTabHandler
Description copied from class:A_CmsTab
Returns the tab handler.- Specified by:
getTabHandler
in classA_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
-