org.kuali.student.common.ui.client.widgets.search
Class SearchPanel

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.kuali.student.common.ui.client.widgets.search.SearchPanel
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.IsWidget

public class SearchPanel
extends com.google.gwt.user.client.ui.Composite


Nested Class Summary
private  class SearchPanel.AdvancedSearch
           
private  class SearchPanel.CustomizedSearch
           
private static class SearchPanel.CustomLine
           
private static interface SearchPanel.HasSearchParam
           
private static class SearchPanel.ParamListItems
           
private  class SearchPanel.SearchField
           
(package private) static interface SearchPanel.SearchParametersWidget
           
static class SearchPanel.SearchStyle
           
 
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
private  ActionCancelGroup actionCancelButtons
           
private  Callback<ButtonEnumerations.ButtonEnum> actionCancelCallback
           
private  List<Callback<Boolean>> actionCompletedCallbacks
           
private  String actionLabel
           
private  SearchPanel.SearchParametersWidget activeSearchParametersWidget
           
private  String criteriaInstructions
           
private  KSLabel enteredCriteriaHeading
           
private  HorizontalBlockFlowPanel enteredCriteriaString
           
private  boolean hasSearchParams
           
private  boolean isMultiSelect
           
private  VerticalFlowPanel layout
           
private  List<Callback<LookupMetadata>> lookupChangedCallbacks
           
private  List<LookupMetadata> lookups
           
private  CollapsablePanel modifySearchPanel
           
private  boolean multiSelect
           
private  boolean resultsSelected
           
private  boolean resultsShown
           
private  VerticalFlowPanel resultsTablePanel
           
private  List<SearchPanel.SearchField> searchFields
           
private  Map<String,SearchPanel.SearchParametersWidget> searchParameterWidgetMap
           
private  com.google.gwt.user.client.ui.SimplePanel searchSelectorPanel
           
private  List<Callback<List<SelectedResults>>> selectedCompleteCallbacks
           
private  String selectedLookupName
           
protected  SearchResultsTable table
           
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
SearchPanel(List<LookupMetadata> metas)
           
SearchPanel(LookupMetadata meta)
           
 
Method Summary
 void addActionCompleteCallback(Callback<Boolean> callback)
           
 void addLookupChangedCallback(Callback<LookupMetadata> callback)
           
 void addSelectionCompleteCallback(Callback<List<SelectedResults>> callback)
           
private  com.google.gwt.user.client.ui.Widget createSearchParamPanel(LookupMetadata meta)
           
 Callback<Boolean> getActionCompleteCallback()
           
 String getActionLabel()
           
 ButtonGroup getButtons()
           
private  String getMessage(String msgKey)
           
private static SearchParam getSearchParam(com.google.gwt.user.client.ui.Widget widget, String key)
           
 SearchRequest getSearchRequest()
           
private static String getSearchText(com.google.gwt.user.client.ui.Widget widget)
           
 List<String> getSelectedIds()
           
 String getSelectedLookupName()
           
 List<SelectedResults> getSelectedValues()
           
 boolean isMultiSelect()
           
 void setActionCancelButtonGroup(ActionCancelGroup actionCancelButtons)
           
 void setActionLabel(String actionLabel)
           
 void setMultiSelect(boolean multiSelect)
           
 void setMutipleSelect(boolean isMultiSelect)
           
 void setSelectedLookupName(String selectedLookupName)
           
 void setupButtons()
           
 void setupSearch()
           
private  void showCriteriaChosen(List<SearchPanel.HasSearchParam> fields)
           
 
Methods inherited from class com.google.gwt.user.client.ui.Composite
getWidget, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, 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
 
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

layout

private VerticalFlowPanel layout

searchSelectorPanel

private com.google.gwt.user.client.ui.SimplePanel searchSelectorPanel

resultsTablePanel

private VerticalFlowPanel resultsTablePanel

enteredCriteriaString

private HorizontalBlockFlowPanel enteredCriteriaString

modifySearchPanel

private CollapsablePanel modifySearchPanel

criteriaInstructions

private String criteriaInstructions

enteredCriteriaHeading

private KSLabel enteredCriteriaHeading

table

protected SearchResultsTable table

isMultiSelect

private boolean isMultiSelect

actionCancelButtons

private ActionCancelGroup actionCancelButtons

actionLabel

private String actionLabel

resultsSelected

private boolean resultsSelected

hasSearchParams

private boolean hasSearchParams

lookups

private List<LookupMetadata> lookups

multiSelect

private boolean multiSelect

resultsShown

private boolean resultsShown

activeSearchParametersWidget

private SearchPanel.SearchParametersWidget activeSearchParametersWidget

searchParameterWidgetMap

private Map<String,SearchPanel.SearchParametersWidget> searchParameterWidgetMap

searchFields

private List<SearchPanel.SearchField> searchFields

lookupChangedCallbacks

private List<Callback<LookupMetadata>> lookupChangedCallbacks

selectedLookupName

private String selectedLookupName

selectedCompleteCallbacks

private List<Callback<List<SelectedResults>>> selectedCompleteCallbacks

actionCompletedCallbacks

private List<Callback<Boolean>> actionCompletedCallbacks

actionCancelCallback

private Callback<ButtonEnumerations.ButtonEnum> actionCancelCallback
Constructor Detail

SearchPanel

public SearchPanel(LookupMetadata meta)

SearchPanel

public SearchPanel(List<LookupMetadata> metas)
Method Detail

getButtons

public ButtonGroup getButtons()

setMutipleSelect

public void setMutipleSelect(boolean isMultiSelect)

setupButtons

public void setupButtons()

setupSearch

public void setupSearch()

createSearchParamPanel

private com.google.gwt.user.client.ui.Widget createSearchParamPanel(LookupMetadata meta)

getSearchParam

private static SearchParam getSearchParam(com.google.gwt.user.client.ui.Widget widget,
                                          String key)

getSearchText

private static String getSearchText(com.google.gwt.user.client.ui.Widget widget)

showCriteriaChosen

private void showCriteriaChosen(List<SearchPanel.HasSearchParam> fields)

getSelectedIds

public List<String> getSelectedIds()

getSelectedValues

public List<SelectedResults> getSelectedValues()

isMultiSelect

public boolean isMultiSelect()

setMultiSelect

public void setMultiSelect(boolean multiSelect)

getMessage

private String getMessage(String msgKey)

addLookupChangedCallback

public void addLookupChangedCallback(Callback<LookupMetadata> callback)

getActionCompleteCallback

public Callback<Boolean> getActionCompleteCallback()

getSearchRequest

public SearchRequest getSearchRequest()

setActionCancelButtonGroup

public void setActionCancelButtonGroup(ActionCancelGroup actionCancelButtons)

getSelectedLookupName

public String getSelectedLookupName()

setSelectedLookupName

public void setSelectedLookupName(String selectedLookupName)

addSelectionCompleteCallback

public void addSelectionCompleteCallback(Callback<List<SelectedResults>> callback)

addActionCompleteCallback

public void addActionCompleteCallback(Callback<Boolean> callback)

getActionLabel

public String getActionLabel()

setActionLabel

public void setActionLabel(String actionLabel)


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.