org.opennms.gwt.web.ui.asset.client.tools.fieldsets
Class FieldSetSuggestBox

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.opennms.gwt.web.ui.asset.client.tools.fieldsets.AbstractFieldSet
                  extended by org.opennms.gwt.web.ui.asset.client.tools.fieldsets.FieldSetSuggestBox
All Implemented Interfaces:
com.google.gwt.event.dom.client.ChangeHandler, com.google.gwt.event.dom.client.FocusHandler, com.google.gwt.event.dom.client.KeyUpHandler, com.google.gwt.event.dom.client.MouseUpHandler, com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.logical.shared.SelectionHandler<com.google.gwt.user.client.ui.SuggestOracle.Suggestion>, com.google.gwt.event.logical.shared.ValueChangeHandler<String>, com.google.gwt.event.shared.EventHandler, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.IsWidget, FieldSet

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

Author:
Markus Neumann
FieldSet for displaying and editing text. Additional a suggestion box will support the user.

Nested Class Summary
 
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 org.opennms.gwt.web.ui.asset.client.tools.fieldsets.AbstractFieldSet
changed, enabled, errorLabel, errorValidators, helpText, inititalValue, label, mainPanel, panel, popPanel, warningLabel, warningValidators
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
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)
           
 
Method Summary
 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.
 
Methods inherited from class org.opennms.gwt.web.ui.asset.client.tools.fieldsets.AbstractFieldSet
addErrorValidator, addWarningValidator, checkField, clearChanged, clearErrors, clearErrorValidators, clearWarnings, clearWarningValidators, getEnabled, getError, getErrorValidators, getLabel, getWarning, onChange, setError, setErrors, setErrorValidators, setLabel, setWarning, setWarnings, setWarningValidators, validate
 
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
 
Methods inherited from interface org.opennms.gwt.web.ui.asset.client.tools.fieldsets.FieldSet
clearChanged, clearErrors, clearWarnings, getEnabled, getError, getLabel, getWarning, setError, setLabel, setWarning
 
Methods inherited from interface com.google.gwt.event.dom.client.ChangeHandler
onChange
 

Constructor Detail

FieldSetSuggestBox

public FieldSetSuggestBox(String name,
                          String value,
                          String helpText)

FieldSetSuggestBox

public FieldSetSuggestBox(String name,
                          String value,
                          String helpText,
                          Collection<String> suggestions)

FieldSetSuggestBox

@UiConstructor
public FieldSetSuggestBox(String name,
                                        String value,
                                        String helpText,
                                        int maxLength)
Method Detail

getSuggestions

public Collection<String> getSuggestions()

getValue

public String getValue()
Specified by:
getValue in interface FieldSet
Returns:
actual value of FieldSet.

onFocus

public void onFocus(com.google.gwt.event.dom.client.FocusEvent event)
Specified by:
onFocus in interface com.google.gwt.event.dom.client.FocusHandler
Overrides:
onFocus in class AbstractFieldSet

onKeyUp

public void onKeyUp(com.google.gwt.event.dom.client.KeyUpEvent event)
Specified by:
onKeyUp in interface com.google.gwt.event.dom.client.KeyUpHandler

onMouseUp

public void onMouseUp(com.google.gwt.event.dom.client.MouseUpEvent event)
Specified by:
onMouseUp in interface com.google.gwt.event.dom.client.MouseUpHandler

onSelection

public void onSelection(com.google.gwt.event.logical.shared.SelectionEvent<com.google.gwt.user.client.ui.SuggestOracle.Suggestion> event)
Specified by:
onSelection in interface com.google.gwt.event.logical.shared.SelectionHandler<com.google.gwt.user.client.ui.SuggestOracle.Suggestion>

onValueChange

public void onValueChange(com.google.gwt.event.logical.shared.ValueChangeEvent<String> event)
Specified by:
onValueChange in interface com.google.gwt.event.logical.shared.ValueChangeHandler<String>

setEnabled

public void setEnabled(Boolean enabled)
Description copied from interface: FieldSet
Set the FieldSet into write/write-protected mode.

Specified by:
setEnabled in interface FieldSet
Parameters:
enabled - to get write-mode disable to get write-protected mode

setSuggestions

public void setSuggestions(Collection<String> suggestions)
Takes a Collection of Strings as suggestion model to support the uses.

Parameters:
suggestions -

setValue

public void setValue(String value)
Description copied from interface: FieldSet
Sets a value into the value/input of the FieldSet.

Specified by:
setValue in interface FieldSet


Copyright © 2011. All Rights Reserved.