org.opennms.gwt.web.ui.asset.client.tools.fieldsets
Interface FieldSet

All Superinterfaces:
com.google.gwt.event.dom.client.ChangeHandler, com.google.gwt.event.shared.EventHandler, com.google.gwt.event.dom.client.FocusHandler
All Known Implementing Classes:
AbstractFieldSet, FieldSetDateBox, FieldSetListBox, FieldSetPasswordBox, FieldSetSuggestBox, FieldSetTextArea, FieldSetTextBox, FieldSetTextDisplay

public interface FieldSet
extends com.google.gwt.event.dom.client.FocusHandler, com.google.gwt.event.dom.client.ChangeHandler

Author:
Markus Neumann A FieldSet is a pair of a describing label/name and a value/input. It's intended to make data-input and data-maintenance pages easier. It's string based.

Method Summary
 void clearChanged()
          Clears the status changed from a FieldSet.
 void clearErrors()
          clears all error strings from a FieldSet.
 void clearWarnings()
          clears all warning strings from a FieldSet.
 Boolean getEnabled()
           
 String getError()
          Get the complete error string for the FieldSet.
 String getLabel()
          Get the description/label text of the FieldSet.
 String getValue()
           
 String getWarning()
          Get the complete warning string for the FieldSet.
 void setEnabled(Boolean enabled)
          Set the FieldSet into write/write-protected mode.
 void setError(String error)
          Set a error string to the FieldSet.
 void setLabel(String label)
          Sets a text into the description/label of the FieldSet.
 void setValue(String value)
          Sets a value into the value/input of the FieldSet.
 void setWarning(String warning)
          Set a warning string to the FieldSet.
 
Methods inherited from interface com.google.gwt.event.dom.client.FocusHandler
onFocus
 
Methods inherited from interface com.google.gwt.event.dom.client.ChangeHandler
onChange
 

Method Detail

clearChanged

void clearChanged()
Clears the status changed from a FieldSet.


clearErrors

void clearErrors()
clears all error strings from a FieldSet.


clearWarnings

void clearWarnings()
clears all warning strings from a FieldSet.


getEnabled

Boolean getEnabled()
Returns:
boolean enabled if writing/changes are allowed/active.

getError

String getError()
Get the complete error string for the FieldSet.

Returns:
String error

getLabel

String getLabel()
Get the description/label text of the FieldSet.

Returns:
String label

getValue

String getValue()
Returns:
actual value of FieldSet.

getWarning

String getWarning()
Get the complete warning string for the FieldSet.

Returns:
String warning

setEnabled

void setEnabled(Boolean enabled)
Set the FieldSet into write/write-protected mode.

Parameters:
enabled - to get write-mode disable to get write-protected mode

setError

void setError(String error)
Set a error string to the FieldSet.

Parameters:
error -

setLabel

void setLabel(String label)
Sets a text into the description/label of the FieldSet.

Parameters:
label -

setValue

void setValue(String value)
Sets a value into the value/input of the FieldSet.

Parameters:
value -

setWarning

void setWarning(String warning)
Set a warning string to the FieldSet.

Parameters:
warning -


Copyright © 2011. All Rights Reserved.