public class FieldSetSuggestBox extends AbstractFieldSet implements FieldSet, com.google.gwt.event.logical.shared.ValueChangeHandler<String>, com.google.gwt.event.logical.shared.SelectionHandler<com.google.gwt.user.client.ui.SuggestOracle.Suggestion>, com.google.gwt.event.dom.client.KeyUpHandler, com.google.gwt.event.dom.client.MouseUpHandler
FieldSet
for displaying and editing text.
Additional a suggestion box will support the user.changed, enabled, errorLabel, errorValidators, form, formGroup, helpText, inititalValue, label, panel, tooltip, warningLabel, warningValidators
Constructor and Description |
---|
FieldSetSuggestBox(String name,
String value,
String helpText) |
FieldSetSuggestBox(String name,
String value,
String helpText,
Collection<String> suggestions) |
FieldSetSuggestBox(String name,
String value,
String helpText,
int maxLength) |
Modifier and Type | Method and Description |
---|---|
Collection<String> |
getSuggestions() |
String |
getValue() |
void |
onFocus(com.google.gwt.event.dom.client.FocusEvent event) |
void |
onKeyUp(com.google.gwt.event.dom.client.KeyUpEvent event) |
void |
onMouseUp(com.google.gwt.event.dom.client.MouseUpEvent event) |
void |
onSelection(com.google.gwt.event.logical.shared.SelectionEvent<com.google.gwt.user.client.ui.SuggestOracle.Suggestion> event) |
void |
onValueChange(com.google.gwt.event.logical.shared.ValueChangeEvent<String> event) |
void |
setEnabled(Boolean enabled)
Set the
FieldSet into write/write-protected mode. |
void |
setSuggestions(Collection<String> suggestions)
Takes a Collection of Strings as suggestion model to support the uses.
|
void |
setValue(String value)
Sets a value into the value/input of the
FieldSet . |
addErrorValidator, addWarningValidator, checkField, clearChanged, clearErrors, clearErrorValidators, clearWarnings, clearWarningValidators, getEnabled, getError, getErrorValidators, getLabel, getWarning, onChange, setError, setErrors, setErrorValidators, setLabel, setWarning, setWarnings, setWarningValidators, validate
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
clearChanged, clearErrors, clearWarnings, getEnabled, getError, getLabel, getWarning, setError, setLabel, setWarning
public FieldSetSuggestBox(String name, String value, String helpText, Collection<String> suggestions)
public Collection<String> getSuggestions()
public String getValue()
public void onFocus(com.google.gwt.event.dom.client.FocusEvent event)
onFocus
in interface com.google.gwt.event.dom.client.FocusHandler
onFocus
in class AbstractFieldSet
public void onKeyUp(com.google.gwt.event.dom.client.KeyUpEvent event)
onKeyUp
in interface com.google.gwt.event.dom.client.KeyUpHandler
public void onMouseUp(com.google.gwt.event.dom.client.MouseUpEvent event)
onMouseUp
in interface com.google.gwt.event.dom.client.MouseUpHandler
public void onSelection(com.google.gwt.event.logical.shared.SelectionEvent<com.google.gwt.user.client.ui.SuggestOracle.Suggestion> event)
onSelection
in interface com.google.gwt.event.logical.shared.SelectionHandler<com.google.gwt.user.client.ui.SuggestOracle.Suggestion>
public void onValueChange(com.google.gwt.event.logical.shared.ValueChangeEvent<String> event)
onValueChange
in interface com.google.gwt.event.logical.shared.ValueChangeHandler<String>
public void setEnabled(Boolean enabled)
FieldSet
FieldSet
into write/write-protected mode.setEnabled
in interface FieldSet
enabled
- to get write-mode disable to get write-protected modepublic void setSuggestions(Collection<String> suggestions)
suggestions
- Copyright © 2016. All rights reserved.