|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Composite
org.opennms.gwt.web.ui.asset.client.tools.fieldsets.AbstractFieldSet
public abstract class AbstractFieldSet
FieldSet that creats an GWT
Composite and Panel based FieldSet. The
abstract implementation contains no field for value or value-input.
Just extensions of abstract FieldSet will support values. The
FieldSet contains label, help text, warning mechanism, error
mechanism, change mechanism. Warning- and errors-mechanism contains
Validators, results will be displayed and marked up by css.
Change-mechanism will markup fields by css if the value was changed
by the user and is differed then original value.| 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 | |
|---|---|
protected Boolean |
changed
|
protected Boolean |
enabled
|
protected com.google.gwt.user.client.ui.Label |
errorLabel
|
protected ArrayList<Validator> |
errorValidators
|
protected String |
helpText
|
protected Object |
inititalValue
|
protected com.google.gwt.user.client.ui.Label |
label
|
protected com.google.gwt.user.client.ui.VerticalPanel |
mainPanel
|
protected com.google.gwt.user.client.ui.HorizontalPanel |
panel
|
protected com.google.gwt.user.client.ui.DecoratedPopupPanel |
popPanel
|
protected com.google.gwt.user.client.ui.Label |
warningLabel
|
protected ArrayList<Validator> |
warningValidators
|
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
AbstractFieldSet(String name,
String helpText)
|
|
| Method Summary | |
|---|---|
void |
addErrorValidator(Validator validator)
|
void |
addWarningValidator(Validator validator)
|
boolean |
checkField()
checks if the value of fieldset has changed and starts validation if necessary. |
void |
clearChanged()
Clears the status changed from a FieldSet. |
void |
clearErrors()
clears all error strings from a FieldSet. |
void |
clearErrorValidators()
|
void |
clearWarnings()
clears all warning strings from a FieldSet. |
void |
clearWarningValidators()
|
Boolean |
getEnabled()
|
String |
getError()
Get the complete error string for the FieldSet. |
ArrayList<Validator> |
getErrorValidators()
|
String |
getLabel()
Get the description/label text of the FieldSet. |
String |
getWarning()
Get the complete warning string for the FieldSet. |
void |
onChange(com.google.gwt.event.dom.client.ChangeEvent event)
|
void |
onFocus(com.google.gwt.event.dom.client.FocusEvent event)
|
void |
setError(String error)
Set a error string to the FieldSet. |
void |
setErrors(ArrayList<String> errors)
|
void |
setErrorValidators(ArrayList<Validator> validators)
|
void |
setLabel(String lable)
Sets a text into the description/label of the FieldSet. |
void |
setWarning(String warning)
Set a warning string to the FieldSet. |
void |
setWarnings(ArrayList<String> warnings)
|
void |
setWarningValidators(ArrayList<Validator> validators)
|
protected void |
validate(Object object)
Validates FieldSet. |
| 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 |
|---|
getValue, setEnabled, setValue |
| Field Detail |
|---|
protected com.google.gwt.user.client.ui.VerticalPanel mainPanel
protected com.google.gwt.user.client.ui.HorizontalPanel panel
protected com.google.gwt.user.client.ui.Label label
protected Boolean enabled
protected Boolean changed
protected com.google.gwt.user.client.ui.Label errorLabel
protected com.google.gwt.user.client.ui.Label warningLabel
protected String helpText
protected com.google.gwt.user.client.ui.DecoratedPopupPanel popPanel
protected ArrayList<Validator> errorValidators
protected ArrayList<Validator> warningValidators
protected Object inititalValue
| Constructor Detail |
|---|
public AbstractFieldSet(String name,
String helpText)
| Method Detail |
|---|
public void addErrorValidator(Validator validator)
public void addWarningValidator(Validator validator)
public boolean checkField()
public void clearChanged()
FieldSetFieldSet.
clearChanged in interface FieldSetpublic void clearErrors()
FieldSetFieldSet.
clearErrors in interface FieldSetpublic void clearErrorValidators()
public void clearWarnings()
FieldSetFieldSet.
clearWarnings in interface FieldSetpublic void clearWarningValidators()
public Boolean getEnabled()
getEnabled in interface FieldSetpublic String getError()
FieldSetFieldSet.
getError in interface FieldSetpublic ArrayList<Validator> getErrorValidators()
public String getLabel()
FieldSetFieldSet.
getLabel in interface FieldSetpublic String getWarning()
FieldSetFieldSet.
getWarning in interface FieldSetpublic void onChange(com.google.gwt.event.dom.client.ChangeEvent event)
onChange in interface com.google.gwt.event.dom.client.ChangeHandlerpublic void onFocus(com.google.gwt.event.dom.client.FocusEvent event)
onFocus in interface com.google.gwt.event.dom.client.FocusHandlerpublic void setError(String error)
FieldSetFieldSet.
setError in interface FieldSetpublic void setErrors(ArrayList<String> errors)
public void setErrorValidators(ArrayList<Validator> validators)
public void setLabel(String lable)
FieldSetFieldSet.
setLabel in interface FieldSetpublic void setWarning(String warning)
FieldSetFieldSet.
setWarning in interface FieldSetpublic void setWarnings(ArrayList<String> warnings)
public void setWarningValidators(ArrayList<Validator> validators)
protected void validate(Object object)
object -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||