public class DefaultFormTableBinding extends AbstractFormBinding implements FormTableBinding
| Constructor and Description |
|---|
DefaultFormTableBinding(FormTableBinder binder,
BindingMember[] parents,
BindingMember member,
int mColumn,
String columnOptions)
Creates a binding.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
determineValidators() |
void |
fireToView(Object parent,
Object modelValue) |
FormTableBinder |
getBinder() |
FormTableRowObject |
getBoundRootObject()
Gets the row object.
|
int |
getColumn()
Gets the model column.
|
Character |
getConvert()
Gets the binding option for UC/LC-conversion.
|
Integer |
getMaxColumns()
Gets the binding option for maxcolumns.
|
Integer |
getScale()
Gets the binding option for the scale.
|
protected Class<?> |
getViewType()
Determines the component's type.
This is an estimation derived from the getter and setter methods, usually setViewValue and getViewValue. |
Object |
getViewValue() |
Boolean |
isAutoSelect()
Gets the binding option for autoselect.
|
boolean |
isChangeable() |
boolean |
isMandatory() |
protected boolean |
isValidationRequired() |
protected boolean |
processOption(String option)
Processes an option for a table binding.
|
protected void |
processOptions(String columnOptions)
Process the component options.
|
void |
setBoundRootObject(FormTableRowObject rowObject)
Sets the row object.
|
void |
setChangeable(boolean changeable) |
void |
setMandatory(boolean mandatory) |
protected void |
updateView(Object value) |
protected void |
updateView(Object parent,
Object value,
boolean honourResyncByVetoException) |
protected String |
viewComponentToString() |
verifyTypeaddToModelListener, addToViewListener, addValidationListener, addValidator, createBindingEvent, createValidationContext, createValidationEvent, fireToModel, fireValidated, getMember, getModelValue, getModelValue, getParentObject, getParents, getToModelListeners, getToViewListeners, getValidationListeners, getValidators, removeToModelListener, removeToViewListener, removeValidationListener, removeValidator, setModelValue, setModelValue, setViewValue, toString, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetModelValueaddToModelListener, addToViewListener, addValidationListener, addValidator, createBindingEvent, createValidationContext, createValidationEvent, fireToModel, fireValidated, getMember, getParentObject, getParents, getToModelListeners, getToViewListeners, getValidationListeners, getValidators, removeToModelListener, removeToViewListener, removeValidationListener, removeValidator, setModelValue, setViewValue, validatepublic DefaultFormTableBinding(FormTableBinder binder, BindingMember[] parents, BindingMember member, int mColumn, String columnOptions)
binder - the binder managing this bindingmColumn - the model columncolumnOptions - the column optionsparents - the members building the declaration chain to this member, null if this binding's member is in containermember - the member field to bindpublic FormTableBinder getBinder()
getBinder in interface BindinggetBinder in interface FormTableBindinggetBinder in class AbstractBindingprotected Class<?> getViewType()
getViewType in class AbstractBindingprotected void determineValidators()
determineValidators in class AbstractBindingprotected void processOptions(String columnOptions)
columnOptions - the options from the annotationprotected boolean processOption(String option)
option - the optionpublic void setMandatory(boolean mandatory)
setMandatory in interface Bindingpublic boolean isMandatory()
isMandatory in interface Bindingpublic void setChangeable(boolean changeable)
setChangeable in interface Bindingpublic boolean isChangeable()
isChangeable in interface Bindingpublic FormTableRowObject getBoundRootObject()
FormTableBindinggetBoundRootObject in interface FormTableBindinggetBoundRootObject in class AbstractBindingpublic void fireToView(Object parent, Object modelValue) throws BindingVetoException
fireToView in interface BindingfireToView in class AbstractBindingBindingVetoExceptionprotected void updateView(Object parent, Object value, boolean honourResyncByVetoException)
updateView in class AbstractBindingpublic void setBoundRootObject(FormTableRowObject rowObject)
FormTableBindingsetBoundRootObject in interface FormTableBindingrowObject - the row object for this bindingprotected boolean isValidationRequired()
isValidationRequired in class AbstractBindingprotected String viewComponentToString()
viewComponentToString in class AbstractBindingpublic Object getViewValue()
getViewValue in interface Bindingpublic int getColumn()
FormTableBindinggetColumn in interface FormTableBindingprotected void updateView(Object value)
updateView in class AbstractBindingpublic Character getConvert()
FormTableBindinggetConvert in interface FormTableBindingFormFieldComponent.CONVERT_??, null if not definedpublic Boolean isAutoSelect()
FormTableBindingisAutoSelect in interface FormTableBindingpublic Integer getMaxColumns()
FormTableBindinggetMaxColumns in interface FormTableBindingpublic Integer getScale()
FormTableBindinggetScale in interface FormTableBindingTentackle - a domain driven enterprise framework