public abstract class AbstractFieldSet extends com.google.gwt.user.client.ui.Composite implements FieldSet
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
Validator
s, 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.Modifier and Type | Field and Description |
---|---|
protected Boolean |
changed |
protected Boolean |
enabled |
protected org.gwtbootstrap3.client.ui.FormLabel |
errorLabel |
protected List<Validator> |
errorValidators |
protected org.gwtbootstrap3.client.ui.Form |
form |
protected org.gwtbootstrap3.client.ui.FormGroup |
formGroup |
protected String |
helpText |
protected Object |
inititalValue |
protected org.gwtbootstrap3.client.ui.FormLabel |
label |
protected com.google.gwt.user.client.ui.FlowPanel |
panel |
protected org.gwtbootstrap3.client.ui.Tooltip |
tooltip |
protected org.gwtbootstrap3.client.ui.FormLabel |
warningLabel |
protected List<Validator> |
warningValidators |
Constructor and Description |
---|
AbstractFieldSet(String name,
String helpText) |
Modifier and Type | Method and Description |
---|---|
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 . |
List<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(List<String> errors) |
void |
setErrorValidators(List<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(List<String> warnings) |
void |
setWarningValidators(List<Validator> validators) |
protected void |
validate(Object object)
Validates FieldSet.
|
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
getValue, setEnabled, setValue
protected org.gwtbootstrap3.client.ui.Form form
protected com.google.gwt.user.client.ui.FlowPanel panel
protected org.gwtbootstrap3.client.ui.FormGroup formGroup
protected org.gwtbootstrap3.client.ui.Tooltip tooltip
protected org.gwtbootstrap3.client.ui.FormLabel label
protected Boolean enabled
protected Boolean changed
protected org.gwtbootstrap3.client.ui.FormLabel errorLabel
protected org.gwtbootstrap3.client.ui.FormLabel warningLabel
protected String helpText
protected Object inititalValue
public void addErrorValidator(Validator validator)
public void addWarningValidator(Validator validator)
public boolean checkField()
public void clearChanged()
FieldSet
FieldSet
.clearChanged
in interface FieldSet
public void clearErrors()
FieldSet
FieldSet
.clearErrors
in interface FieldSet
public void clearErrorValidators()
public void clearWarnings()
FieldSet
FieldSet
.clearWarnings
in interface FieldSet
public void clearWarningValidators()
public Boolean getEnabled()
getEnabled
in interface FieldSet
public String getError()
FieldSet
FieldSet
.public String getLabel()
FieldSet
FieldSet
.public String getWarning()
FieldSet
FieldSet
.getWarning
in interface FieldSet
public void onChange(com.google.gwt.event.dom.client.ChangeEvent event)
onChange
in interface com.google.gwt.event.dom.client.ChangeHandler
public void onFocus(com.google.gwt.event.dom.client.FocusEvent event)
onFocus
in interface com.google.gwt.event.dom.client.FocusHandler
public void setError(String error)
FieldSet
FieldSet
.public void setLabel(String lable)
FieldSet
FieldSet
.public void setWarning(String warning)
FieldSet
FieldSet
.setWarning
in interface FieldSet
protected void validate(Object object)
object
- Copyright © 2016. All rights reserved.