org.kuali.student.common.ui.client.widgets.suggestbox
Class KSSuggestBox
java.lang.Object
com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Composite
com.google.gwt.user.client.ui.SuggestBox
org.kuali.student.common.ui.client.widgets.suggestbox.KSSuggestBox
- All Implemented Interfaces:
- 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.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.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.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 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 |
Fields inherited from class com.google.gwt.user.client.ui.UIObject |
DEBUG_ID_PREFIX |
Methods inherited from class com.google.gwt.user.client.ui.SuggestBox |
addChangeListener, addClickListener, addEventHandler, addFocusListener, addKeyboardListener, addKeyDownHandler, addKeyPressHandler, addKeyUpHandler, addSelectionHandler, addValueChangeHandler, getLimit, 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 |
addDomHandler, addHandler, 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, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, toString, unsinkEvents |
Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
fireEvent |
currentSuggestion
private IdableSuggestOracle.IdableSuggestion currentSuggestion
oracle
private IdableSuggestOracle oracle
currentId
private String currentId
KSSuggestBox
public KSSuggestBox(IdableSuggestOracle oracle)
KSSuggestBox
public KSSuggestBox(IdableSuggestOracle oracle,
boolean enabled)
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.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.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 © 2007-2011 The Kuali Foundation. All Rights Reserved.