Package org.zkoss.bind.impl
Class FormBindingImpl
- java.lang.Object
-
- org.zkoss.bind.impl.BindingImpl
-
- org.zkoss.bind.impl.FormBindingImpl
-
- All Implemented Interfaces:
java.io.Serializable
,Binding
,FormBinding
- Direct Known Subclasses:
InitFormBindingImpl
,LoadFormBindingImpl
,SaveFormBindingImpl
public class FormBindingImpl extends BindingImpl implements FormBinding
Base implementation ofFormBinding
.- Since:
- 6.0.0
- Author:
- henrichen
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected AccessInfo
_accessInfo
protected java.lang.String
_formId
-
Constructor Summary
Constructors Modifier Constructor Description protected
FormBindingImpl(Binder binder, Component comp, java.lang.String formId, java.lang.String accessExpr, ConditionType conditionType, java.lang.String command, java.util.Map<java.lang.String,java.lang.Object> bindingArgs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExpressionX
getBaseExpression(BindEvaluatorX eval)
java.lang.String
getCommandName()
Returns the associated command name of this binding; null if not specified.ConditionType
getConditionType()
Returns the condition type of this bindingExpressionX
getFieldExpression(BindEvaluatorX eval, java.lang.String field)
Returns the field expression from the given field.Form
getFormBean()
Returns the implicit form associated with this form binding.ExpressionX
getFormExpression(BindEvaluatorX eval, java.lang.String field)
Returns the form expression from the given field.java.lang.String
getFormId()
Returns the associated form id of this Binding.java.lang.String
getPropertyString()
Returns the property expression script of this binding.protected boolean
ignoreTracker()
<T> Form
initFormBean(java.lang.Object bean, java.lang.Class<java.lang.Object> class1, BindContext bindContext)
java.lang.String
toString()
-
Methods inherited from class org.zkoss.bind.impl.BindingImpl
containsAttribute, getArgs, getAttribute, getBinder, getComponent, setAttribute
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.zkoss.bind.sys.Binding
getArgs, getBinder, getComponent
-
-
-
-
Field Detail
-
_formId
protected final java.lang.String _formId
-
_accessInfo
protected final AccessInfo _accessInfo
-
-
Constructor Detail
-
FormBindingImpl
protected FormBindingImpl(Binder binder, Component comp, java.lang.String formId, java.lang.String accessExpr, ConditionType conditionType, java.lang.String command, java.util.Map<java.lang.String,java.lang.Object> bindingArgs)
-
-
Method Detail
-
ignoreTracker
protected boolean ignoreTracker()
-
getFormBean
public Form getFormBean()
Description copied from interface:FormBinding
Returns the implicit form associated with this form binding.- Specified by:
getFormBean
in interfaceFormBinding
- Returns:
- the implicit form associated with this form binding.
-
initFormBean
public <T> Form initFormBean(java.lang.Object bean, java.lang.Class<java.lang.Object> class1, BindContext bindContext)
-
getFormId
public java.lang.String getFormId()
Description copied from interface:FormBinding
Returns the associated form id of this Binding.- Specified by:
getFormId
in interfaceFormBinding
- Returns:
- the associated attribute name of this component.
-
getPropertyString
public java.lang.String getPropertyString()
Description copied from interface:FormBinding
Returns the property expression script of this binding.- Specified by:
getPropertyString
in interfaceFormBinding
- Returns:
- the property expression script of this binding.
-
getConditionType
public ConditionType getConditionType()
Description copied from interface:FormBinding
Returns the condition type of this binding- Specified by:
getConditionType
in interfaceFormBinding
-
getCommandName
public java.lang.String getCommandName()
Description copied from interface:FormBinding
Returns the associated command name of this binding; null if not specified.- Specified by:
getCommandName
in interfaceFormBinding
- Returns:
- the associated command name of this binding; null if not specified.
-
getFieldExpression
public ExpressionX getFieldExpression(BindEvaluatorX eval, java.lang.String field)
Description copied from interface:FormBinding
Returns the field expression from the given field.- Specified by:
getFieldExpression
in interfaceFormBinding
-
getFormExpression
public ExpressionX getFormExpression(BindEvaluatorX eval, java.lang.String field)
Description copied from interface:FormBinding
Returns the form expression from the given field.- Specified by:
getFormExpression
in interfaceFormBinding
-
getBaseExpression
public ExpressionX getBaseExpression(BindEvaluatorX eval)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-