java.lang.Object
org.tentackle.bind.AbstractBinding
org.tentackle.fx.bind.DefaultFxTableBinding<S,T>
- Type Parameters:
S- type of the objects contained within the table's items listT- type of the content in all cells in this column
- All Implemented Interfaces:
Binding,FxTableBinding<S,T>
Implementation of a table binding.
- Author:
- harald
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultFxTableBinding(FxTableBinder<S> binder, BindingMember[] parents, BindingMember member, TableColumnConfiguration<S, T> columnConfiguration, String columnOptions) Creates a binding. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidApplies the model's type to the component.protected voidvoidfireToView(Object parent, Object modelValue) Gets the row object.Gets the column configuration.protected Class<?>booleanbooleanprotected booleanvoidsetBoundRootObject(S rowObject) Sets the row object.voidsetChangeable(boolean changeable) voidsetMandatory(boolean mandatory) protected voidupdateView(Object value) protected StringMethods inherited from class org.tentackle.bind.AbstractBinding
addToModelListener, addToViewListener, addValidationListener, addValidator, createBindingEvent, createValidationEvent, fireToModel, fireValidated, getMember, getModelValue, getParentObject, getParentObject, getParents, getToModelListeners, getToViewListeners, getValidationListeners, getValidators, removeToModelListener, removeToViewListener, removeValidationListener, removeValidator, setModelValue, setModelValue, setViewValue, toString, updateView, validateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.tentackle.bind.Binding
addToModelListener, addToViewListener, addValidationListener, addValidator, createBindingEvent, createValidationEvent, fireToModel, fireValidated, getMember, getParentObject, getParents, getToModelListeners, getToViewListeners, getValidationListeners, getValidators, removeToModelListener, removeToViewListener, removeValidationListener, removeValidator, setModelValue, setViewValue, validate
-
Constructor Details
-
DefaultFxTableBinding
public DefaultFxTableBinding(FxTableBinder<S> binder, BindingMember[] parents, BindingMember member, TableColumnConfiguration<S, T> columnConfiguration, String columnOptions) Creates a binding.- Parameters:
binder- the binder managing this bindingcolumnOptions- the column optionsparents- the members building the declaration chain to this member, null if this binding's member is in containercolumnConfiguration- the column configurationmember- the member field to bind
-
-
Method Details
-
getBinder
- Specified by:
getBinderin interfaceBinding- Specified by:
getBinderin interfaceFxTableBinding<S,T> - Overrides:
getBinderin classAbstractBinding
-
getModelValue
- Specified by:
getModelValuein interfaceBinding- Specified by:
getModelValuein interfaceFxTableBinding<S,T> - Overrides:
getModelValuein classAbstractBinding
-
applyType
protected void applyType()Applies the model's type to the component.- Throws:
BindingException- if component does not accept type
-
getViewType
- Specified by:
getViewTypein classAbstractBinding
-
determineValidators
protected void determineValidators()- Overrides:
determineValidatorsin classAbstractBinding
-
setMandatory
public void setMandatory(boolean mandatory) - Specified by:
setMandatoryin interfaceBinding
-
isMandatory
public boolean isMandatory()- Specified by:
isMandatoryin interfaceBinding
-
setChangeable
public void setChangeable(boolean changeable) - Specified by:
setChangeablein interfaceBinding
-
isChangeable
public boolean isChangeable()- Specified by:
isChangeablein interfaceBinding
-
fireToView
- Specified by:
fireToViewin interfaceBinding- Overrides:
fireToViewin classAbstractBinding- Throws:
BindingVetoException
-
isValidationRequired
protected boolean isValidationRequired()- Specified by:
isValidationRequiredin classAbstractBinding
-
viewComponentToString
- Specified by:
viewComponentToStringin classAbstractBinding
-
getViewValue
- Specified by:
getViewValuein interfaceBinding
-
updateView
- Specified by:
updateViewin classAbstractBinding
-
setBoundRootObject
Description copied from interface:FxTableBindingSets the row object.- Specified by:
setBoundRootObjectin interfaceFxTableBinding<S,T> - Parameters:
rowObject- the row object for this binding
-
getBoundRootObject
Description copied from interface:FxTableBindingGets the row object.- Specified by:
getBoundRootObjectin interfaceFxTableBinding<S,T> - Specified by:
getBoundRootObjectin classAbstractBinding- Returns:
- the row object for this binding
-
getConfiguration
Description copied from interface:FxTableBindingGets the column configuration.- Specified by:
getConfigurationin interfaceFxTableBinding<S,T> - Returns:
- the config
-