public class CustomComponentProvider extends java.lang.Object implements FormFieldProviderHook
Constructor and Description |
---|
CustomComponentProvider() |
Modifier and Type | Method and Description |
---|---|
void |
addFieldBindings(java.lang.Object model,
ValueProvider vp,
Widget field) |
HandlerRegistration |
addValueChangeHandler(ValueChangeHandler handler) |
boolean |
consumes(java.lang.Class<?> type,
SimpleFormFieldConfiguration... configs) |
boolean |
consumes(java.lang.String type,
SimpleFormFieldJson config)
Used to construct fields from a text based (e.g., json) config.
|
Widget |
createFormField() |
void |
fireEvent(<any> event) |
Widget |
getCustomComponent() |
java.lang.String |
getStringValue(Widget field) |
java.lang.Object |
getValue(Widget field) |
void |
init(java.lang.String name,
SimpleForm form) |
void |
installBlankValidation(Widget field) |
boolean |
isDecorateable() |
Widget |
reload(Widget field) |
void |
removeFieldBindings(java.lang.Object model,
Widget field) |
void |
setValue(Widget field,
java.lang.Object value) |
public boolean consumes(java.lang.Class<?> type, SimpleFormFieldConfiguration... configs)
consumes
in interface FormFieldProviderHook
public boolean consumes(java.lang.String type, SimpleFormFieldJson config)
FormFieldProviderHook
consumes
in interface FormFieldProviderHook
public void init(java.lang.String name, SimpleForm form)
init
in interface FormFieldProviderHook
public Widget createFormField()
createFormField
in interface FormFieldProviderHook
public Widget getCustomComponent()
public void addFieldBindings(java.lang.Object model, ValueProvider vp, Widget field)
addFieldBindings
in interface FormFieldProviderHook
public void removeFieldBindings(java.lang.Object model, Widget field)
removeFieldBindings
in interface FormFieldProviderHook
public HandlerRegistration addValueChangeHandler(ValueChangeHandler handler)
public void fireEvent(<any> event)
public java.lang.Object getValue(Widget field)
getValue
in interface FormFieldProviderHook
public java.lang.String getStringValue(Widget field)
getStringValue
in interface FormFieldProviderHook
public void setValue(Widget field, java.lang.Object value)
setValue
in interface FormFieldProviderHook
public Widget reload(Widget field)
reload
in interface FormFieldProviderHook
public boolean isDecorateable()
isDecorateable
in interface FormFieldProviderHook
public void installBlankValidation(Widget field)
installBlankValidation
in interface FormFieldProviderHook