org.zkoss.bind.impl
Class FormBindingImpl

java.lang.Object
  extended by org.zkoss.bind.impl.BindingImpl
      extended by 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 of FormBinding.

Since:
6.0.0
Author:
henrichen
See Also:
Serialized Form

Field Summary
protected  AccessInfo _accessInfo
           
protected  java.lang.String _formId
           
 
Constructor Summary
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
protected  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 binding
protected  ExpressionX getFieldExpression(BindEvaluatorX eval, java.lang.String field)
           
 Form getFormBean()
          Returns the implicit form associated with this form binding.
protected  ExpressionX getFormExpression(BindEvaluatorX eval, java.lang.String 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()
           
 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 interface FormBinding
Returns:
the implicit form associated with this form binding.

getFormId

public java.lang.String getFormId()
Description copied from interface: FormBinding
Returns the associated form id of this Binding.

Specified by:
getFormId in interface FormBinding
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 interface FormBinding
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 interface FormBinding

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 interface FormBinding
Returns:
the associated command name of this binding; null if not specified.

getFieldExpression

protected ExpressionX getFieldExpression(BindEvaluatorX eval,
                                         java.lang.String field)

getFormExpression

protected ExpressionX getFormExpression(BindEvaluatorX eval,
                                        java.lang.String field)

getBaseExpression

protected ExpressionX getBaseExpression(BindEvaluatorX eval)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2005-2011 Potix Corporation. All Rights Reserved. SourceForge.net Logo