Class CmsResultsTab.SearchBar
- 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.CmsResultsTab.SearchBar
-
- 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
- Enclosing class:
- CmsResultsTab
public class CmsResultsTab.SearchBar extends com.google.gwt.user.client.ui.Composite
Bar containing the search scope selection and a text search field.
-
-
Field Summary
Fields Modifier and Type Field Description protected CmsSelectBox
m_scopeSelection
The select box for the search scope selection.protected CmsTextBox
m_searchInput
The field for the text search.protected CmsPushButton
m_textSearchButton
The search button.
-
Constructor Summary
Constructors Constructor Description SearchBar()
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CmsSelectBox
getScopeSelection()
Gets the scope selection widget.CmsPushButton
getSearchButton()
Gets the search button.CmsTextBox
getSearchInput()
Gets the search input field.protected void
onScopeChange(com.google.gwt.event.logical.shared.ValueChangeEvent<java.lang.String> event)
Handles the change event on the search scope select box.-
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 Detail
-
m_searchInput
@UiField protected CmsTextBox m_searchInput
The field for the text search.
-
m_textSearchButton
@UiField protected CmsPushButton m_textSearchButton
The search button.
-
m_scopeSelection
@UiField protected CmsSelectBox m_scopeSelection
The select box for the search scope selection.
-
-
Constructor Detail
-
SearchBar
public SearchBar()
Creates a new instance.
-
-
Method Detail
-
getScopeSelection
public CmsSelectBox getScopeSelection()
Gets the scope selection widget.- Returns:
- the scope selection widget
-
getSearchButton
public CmsPushButton getSearchButton()
Gets the search button.- Returns:
- the search button
-
getSearchInput
public CmsTextBox getSearchInput()
Gets the search input field.- Returns:
- the search input field
-
onScopeChange
@UiHandler("m_scopeSelection") protected void onScopeChange(com.google.gwt.event.logical.shared.ValueChangeEvent<java.lang.String> event)
Handles the change event on the search scope select box.- Parameters:
event
- the change event
-
-