org.kuali.student.common.ui.client.widgets.suggestbox
Class KSSuggestBox

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 com.google.gwt.user.client.ui.SuggestBox
                  extended by org.kuali.student.common.ui.client.widgets.suggestbox.KSSuggestBox
All Implemented Interfaces:
com.google.gwt.editor.client.IsEditor<com.google.gwt.editor.client.LeafValueEditor<String>>, com.google.gwt.event.dom.client.HasAllKeyHandlers, com.google.gwt.event.dom.client.HasKeyDownHandlers, com.google.gwt.event.dom.client.HasKeyPressHandlers, com.google.gwt.event.dom.client.HasKeyUpHandlers, com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.logical.shared.HasSelectionHandlers<com.google.gwt.user.client.ui.SuggestOracle.Suggestion>, com.google.gwt.event.logical.shared.HasValueChangeHandlers<String>, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.TakesValue<String>, com.google.gwt.user.client.ui.FiresSuggestionEvents, com.google.gwt.user.client.ui.Focusable, com.google.gwt.user.client.ui.HasAnimation, com.google.gwt.user.client.ui.HasFocus, com.google.gwt.user.client.ui.HasText, com.google.gwt.user.client.ui.HasValue<String>, com.google.gwt.user.client.ui.IsWidget, com.google.gwt.user.client.ui.SourcesChangeEvents, com.google.gwt.user.client.ui.SourcesClickEvents, com.google.gwt.user.client.ui.SourcesFocusEvents, com.google.gwt.user.client.ui.SourcesKeyboardEvents, TranslatableValueWidget, HasWatermark, HasSelectionChangeHandlers

public class KSSuggestBox
extends com.google.gwt.user.client.ui.SuggestBox
implements HasSelectionChangeHandlers, TranslatableValueWidget, HasWatermark


Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.SuggestBox
com.google.gwt.user.client.ui.SuggestBox.DefaultSuggestionDisplay, com.google.gwt.user.client.ui.SuggestBox.SuggestionCallback, com.google.gwt.user.client.ui.SuggestBox.SuggestionDisplay
 
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 inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
KSSuggestBox(IdableSuggestOracle oracle)
           
KSSuggestBox(IdableSuggestOracle oracle, boolean enabled)
           
 
Method Summary
 com.google.gwt.event.shared.HandlerRegistration addSelectionChangeHandler(SelectionChangeHandler handler)
           
 IdableSuggestOracle.IdableSuggestion getCurrentSuggestion()
           
 IdableSuggestOracle getOracle()
           
 String getSelectedId()
           
 IdableSuggestOracle.IdableSuggestion getSelectedSuggestion()
           
 String getValue()
           
 boolean hasWatermark()
           
 void reset()
           
 void setValue(IdableSuggestOracle.IdableSuggestion theSuggestion)
           
 void setValue(Map<String,String> translations)
           
 void setValue(String id)
           
 void setValue(String id, boolean fireEvents)
           
 void setValue(String id, Callback<IdableSuggestOracle.IdableSuggestion> callback)
           
 void setValue(String id, String translation)
           
 void setWatermarkText(String text)
           
 boolean watermarkShowing()
           
 
Methods inherited from class com.google.gwt.user.client.ui.SuggestBox
addChangeListener, addClickListener, addEventHandler, addFocusListener, addKeyboardListener, addKeyDownHandler, addKeyPressHandler, addKeyUpHandler, addSelectionHandler, addValueChangeHandler, asEditor, getLimit, getSuggestionDisplay, getSuggestOracle, getTabIndex, getText, getTextBox, hideSuggestionList, isAnimationEnabled, isAutoSelectEnabled, isSuggestionListShowing, onEnsureDebugId, removeChangeListener, removeClickListener, removeEventHandler, removeFocusListener, removeKeyboardListener, setAccessKey, setAnimationEnabled, setAutoSelectEnabled, setFocus, setLimit, setPopupStyleName, setTabIndex, setText, showSuggestionList, wrap
 
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, 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
 
Methods inherited from interface com.google.gwt.event.shared.HasHandlers
fireEvent
 

Constructor Detail

KSSuggestBox

public KSSuggestBox(IdableSuggestOracle oracle)

KSSuggestBox

public KSSuggestBox(IdableSuggestOracle oracle,
                    boolean enabled)
Method Detail

reset

public void reset()

getSelectedSuggestion

public IdableSuggestOracle.IdableSuggestion getSelectedSuggestion()

getSelectedId

public String getSelectedId()

getOracle

public IdableSuggestOracle getOracle()

getValue

public String getValue()
Specified by:
getValue in interface com.google.gwt.user.client.TakesValue<String>
Specified by:
getValue in interface com.google.gwt.user.client.ui.HasValue<String>
Overrides:
getValue in class com.google.gwt.user.client.ui.SuggestBox

setValue

public void setValue(String id)
Specified by:
setValue in interface com.google.gwt.user.client.TakesValue<String>
Specified by:
setValue in interface com.google.gwt.user.client.ui.HasValue<String>
Overrides:
setValue in class com.google.gwt.user.client.ui.SuggestBox

setValue

public void setValue(String id,
                     Callback<IdableSuggestOracle.IdableSuggestion> callback)

setValue

public void setValue(String id,
                     String translation)
Specified by:
setValue in interface TranslatableValueWidget

setValue

public void setValue(String id,
                     boolean fireEvents)
Specified by:
setValue in interface com.google.gwt.user.client.ui.HasValue<String>
Overrides:
setValue in class com.google.gwt.user.client.ui.SuggestBox

setValue

public void setValue(IdableSuggestOracle.IdableSuggestion theSuggestion)

addSelectionChangeHandler

public com.google.gwt.event.shared.HandlerRegistration addSelectionChangeHandler(SelectionChangeHandler handler)
Specified by:
addSelectionChangeHandler in interface HasSelectionChangeHandlers

getCurrentSuggestion

public IdableSuggestOracle.IdableSuggestion getCurrentSuggestion()

setValue

public void setValue(Map<String,String> translations)
Specified by:
setValue in interface TranslatableValueWidget

setWatermarkText

public void setWatermarkText(String text)
Specified by:
setWatermarkText in interface HasWatermark

hasWatermark

public boolean hasWatermark()
Specified by:
hasWatermark in interface HasWatermark

watermarkShowing

public boolean watermarkShowing()
Specified by:
watermarkShowing in interface HasWatermark


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