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

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.FieldSetListBox
All Implemented Interfaces:
com.google.gwt.event.dom.client.ChangeHandler, com.google.gwt.event.dom.client.FocusHandler, com.google.gwt.event.logical.shared.HasAttachHandlers, 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 FieldSetListBox
extends AbstractFieldSet
implements FieldSet

Author:
Markus Neumann
FieldSet for displaying and selection values from a list.

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
FieldSetListBox(String name, String value, String helpText)
           
FieldSetListBox(String name, String value, String helpText, ArrayList<String> options)
           
 
Method Summary
 String getValue()
           
 void setEnabled(Boolean enabled)
          Set the FieldSet into write/write-protected mode.
 void setOptions(ArrayList<String> options)
          Takes a ArraList of Strings as options.
 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, onFocus, 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.FocusHandler
onFocus
 
Methods inherited from interface com.google.gwt.event.dom.client.ChangeHandler
onChange
 

Constructor Detail

FieldSetListBox

@UiConstructor
public FieldSetListBox(String name,
                                     String value,
                                     String helpText)

FieldSetListBox

public FieldSetListBox(String name,
                       String value,
                       String helpText,
                       ArrayList<String> options)
Method Detail

getValue

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

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

setOptions

public void setOptions(ArrayList<String> options)
Takes a ArraList of Strings as options. Options will be shown at the list.

Parameters:
ArrayList - options

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.