org.gcube.portlets.user.searchportlet.client
Class AdvancedSearchPanel

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.google.gwt.user.client.ui.Composite
              extended by org.gcube.portlets.user.searchportlet.client.AdvancedSearchPanel
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 AdvancedSearchPanel
extends com.google.gwt.user.client.ui.Composite

This panel provides the functionality to search across multiple collections without the need of metadata schema selection


Nested Class Summary
protected  class AdvancedSearchPanel.SearchField
          This class wraps the three fields for a row in the Abstract Search ListBox for the Type to search TextBox for what to search ListBox
 
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
 com.google.gwt.user.client.ui.RadioButton and
           
protected  String cType
           
 com.google.gwt.user.client.ui.FlowPanel fPanel
           
 com.google.gwt.user.client.ui.RadioButton or
           
protected  SearchButtons searchButtons
           
protected  int searchFieldActiveNo
           
protected  int searchFieldNo
           
 SearchableFieldBean[] searchFields
           
 com.google.gwt.user.client.ui.VerticalPanel searchFieldVerticalPanel
           
protected  boolean searchPerCollection
           
static AdvancedSearchPanel singleton
           
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
AdvancedSearchPanel(SearchAvailabilityType searchStatus)
           
 
Method Summary
 void addSearchField()
          Adds a new searchField to the SearchField panel and update the information to the server.
 void adjustSize(int width, int height)
           
static AdvancedSearchPanel get()
           
 int getSearchFieldNo()
           
protected  com.google.gwt.user.client.ui.VerticalPanel getSearchFieldPanel()
           
 void init()
           
 void removeSearchField(int id)
          Removes the search field with 'id'.
 void setSearchFieldNo(int searchFieldNo)
           
 
Methods inherited from class com.google.gwt.user.client.ui.Composite
getWidget, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, performDetachedInitialization, render, render, resolvePotentialElement, setWidget, wrapElement
 
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
 
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, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

searchButtons

protected SearchButtons searchButtons

searchPerCollection

protected boolean searchPerCollection

cType

protected String cType

and

public com.google.gwt.user.client.ui.RadioButton and

or

public com.google.gwt.user.client.ui.RadioButton or

fPanel

public com.google.gwt.user.client.ui.FlowPanel fPanel

searchFieldVerticalPanel

public com.google.gwt.user.client.ui.VerticalPanel searchFieldVerticalPanel

searchFields

public SearchableFieldBean[] searchFields

singleton

public static AdvancedSearchPanel singleton

searchFieldNo

protected int searchFieldNo

searchFieldActiveNo

protected int searchFieldActiveNo
Constructor Detail

AdvancedSearchPanel

public AdvancedSearchPanel(SearchAvailabilityType searchStatus)
Method Detail

get

public static AdvancedSearchPanel get()

init

public void init()

addSearchField

public void addSearchField()
Adds a new searchField to the SearchField panel and update the information to the server. The first time we create a new SearchField with index 0.


removeSearchField

public void removeSearchField(int id)
Removes the search field with 'id'.

Parameters:
id - The index of the search field to delete

getSearchFieldPanel

protected com.google.gwt.user.client.ui.VerticalPanel getSearchFieldPanel()

adjustSize

public void adjustSize(int width,
                       int height)

getSearchFieldNo

public int getSearchFieldNo()

setSearchFieldNo

public void setSearchFieldNo(int searchFieldNo)


Copyright © 2013. All Rights Reserved.