public class UiDataBindingFactoryImpl extends AbstractUiDataBindingFactory
UiDataBindingFactory
.Modifier and Type | Field and Description |
---|---|
private MathUtilLimited |
mathUtil |
private javax.validation.Validator |
validator |
CDI_NAME
Constructor and Description |
---|
UiDataBindingFactoryImpl()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
protected <VALUE> UiDataBinding<VALUE> |
createDataBinding(AbstractUiContext context,
AbstractUiWidget<VALUE> widget,
Class<VALUE> valueType) |
<VALUE> UiDataBinding<VALUE> |
createDataBinding(AbstractUiContext context,
Class<VALUE> valueType)
|
<VALUE> UiDataBinding<VALUE> |
createDataBinding(AbstractUiWidget<VALUE> widget,
Class<VALUE> valueType)
|
protected void |
doInitialize()
This method performs the actual
initialization . |
protected MathUtilLimited |
getMathUtil() |
protected javax.validation.Validator |
getValidator() |
void |
setMathUtil(MathUtilLimited mathUtil) |
void |
setValidator(javax.validation.Validator validator) |
createLogger, getLogger
doInitialized, getInitializationState, initialize
private javax.validation.Validator validator
getValidator()
private MathUtilLimited mathUtil
getMathUtil()
protected javax.validation.Validator getValidator()
Validator
instance.public void setValidator(javax.validation.Validator validator)
validator
- is the validator to setprotected MathUtilLimited getMathUtil()
MathUtilLimited
.@Inject public void setMathUtil(MathUtilLimited mathUtil)
mathUtil
- is the instance of MathUtilLimited
to Inject
.protected void doInitialize()
initialization
. It is called when AbstractComponent.initialize()
is
invoked for the first time. super.
AbstractComponent.doInitialize()
.doInitialize
in class AbstractLoggableComponent
public <VALUE> UiDataBinding<VALUE> createDataBinding(AbstractUiContext context, Class<VALUE> valueType)
UiDataBinding
for the given valueType
and
context
. It should only be used for very specific cases.VALUE
- is the generic type of the valueType
.context
- is the AbstractUiContext
.valueType
- is the Class
reflecting the type of the value.UiDataBinding
.public <VALUE> UiDataBinding<VALUE> createDataBinding(AbstractUiWidget<VALUE> widget, Class<VALUE> valueType)
VALUE
- is the generic type of the valueType
.widget
- is the widget the UiDataBinding
is associated with.valueType
- is the Class
reflecting the type of the value.UiDataBinding
.protected <VALUE> UiDataBinding<VALUE> createDataBinding(AbstractUiContext context, AbstractUiWidget<VALUE> widget, Class<VALUE> valueType)
VALUE
- is the generic type of the valueType
.context
- is the AbstractUiContext
.widget
- is the widget the UiDataBinding
is associated with. May be null
if
called from createDataBinding(AbstractUiWidget, Class)
.valueType
- is the Class
reflecting the type of the value.UiDataBinding
.createDataBinding(AbstractUiWidget, Class)
Copyright © 2001–2016 mmm-Team. All rights reserved.