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_accessInfoprotected java.lang.String_formId
-
Constructor Summary
Constructors Modifier Constructor Description protectedFormBindingImpl(Binder binder, org.zkoss.zk.ui.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 org.zkoss.xel.ExpressionXgetBaseExpression(BindEvaluatorX eval)java.lang.StringgetCommandName()Returns the associated command name of this binding; null if not specified.ConditionTypegetConditionType()Returns the condition type of this bindingorg.zkoss.xel.ExpressionXgetFieldExpression(BindEvaluatorX eval, java.lang.String field)Returns the field expression from the given field.FormgetFormBean()Returns the implicit form associated with this form binding.org.zkoss.xel.ExpressionXgetFormExpression(BindEvaluatorX eval, java.lang.String field)Returns the form expression from the given field.java.lang.StringgetFormId()Returns the associated form id of this Binding.java.lang.StringgetPropertyString()Returns the property expression script of this binding.protected booleanignoreTracker()<T> ForminitFormBean(java.lang.Object bean, java.lang.Class<java.lang.Object> class1, BindContext bindContext)java.lang.StringtoString()-
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, org.zkoss.zk.ui.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:FormBindingReturns the implicit form associated with this form binding.- Specified by:
getFormBeanin 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:FormBindingReturns the associated form id of this Binding.- Specified by:
getFormIdin interfaceFormBinding- Returns:
- the associated attribute name of this component.
-
getPropertyString
public java.lang.String getPropertyString()
Description copied from interface:FormBindingReturns the property expression script of this binding.- Specified by:
getPropertyStringin interfaceFormBinding- Returns:
- the property expression script of this binding.
-
getConditionType
public ConditionType getConditionType()
Description copied from interface:FormBindingReturns the condition type of this binding- Specified by:
getConditionTypein interfaceFormBinding
-
getCommandName
public java.lang.String getCommandName()
Description copied from interface:FormBindingReturns the associated command name of this binding; null if not specified.- Specified by:
getCommandNamein interfaceFormBinding- Returns:
- the associated command name of this binding; null if not specified.
-
getFieldExpression
public org.zkoss.xel.ExpressionX getFieldExpression(BindEvaluatorX eval, java.lang.String field)
Description copied from interface:FormBindingReturns the field expression from the given field.- Specified by:
getFieldExpressionin interfaceFormBinding
-
getFormExpression
public org.zkoss.xel.ExpressionX getFormExpression(BindEvaluatorX eval, java.lang.String field)
Description copied from interface:FormBindingReturns the form expression from the given field.- Specified by:
getFormExpressionin interfaceFormBinding
-
getBaseExpression
public org.zkoss.xel.ExpressionX getBaseExpression(BindEvaluatorX eval)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-