Package org.zkoss.bind.impl
Class PropertyBindingImpl
- java.lang.Object
-
- org.zkoss.bind.impl.BindingImpl
-
- org.zkoss.bind.impl.PropertyBindingImpl
-
- All Implemented Interfaces:
java.io.Serializable,Binding,PropertyBinding
- Direct Known Subclasses:
InitPropertyBindingImpl,LoadPropertyBindingImpl,SavePropertyBindingImpl
public abstract class PropertyBindingImpl extends BindingImpl implements PropertyBinding
A base implementation ofPropertyBinding.- Since:
- 6.0.0
- Author:
- henrichen
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected AccessInfo_accessInfoprotected org.zkoss.xel.ExpressionX_fieldExpr
-
Constructor Summary
Constructors Modifier Constructor Description protectedPropertyBindingImpl(Binder binder, org.zkoss.zk.ui.Component comp, java.lang.String fieldName, java.lang.String fieldExpr, java.lang.String accessExpr, ConditionType conditionType, java.lang.String command, java.util.Map<java.lang.String,java.lang.Object> bindingArgs, java.lang.String converterExpr, java.util.Map<java.lang.String,java.lang.Object> converterArgs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetCommandName()Returns the associated command name of this binding; null if not speicified.ConditionTypegetConditionType()Returns the condition type of this bindingConvertergetConverter()Returns the associated _converter with this binding.java.util.Map<java.lang.String,java.lang.Object>getConverterArgs()Returns an argument<tags, object>pairs map for converter.java.lang.StringgetFieldName()Returns the field name of the source object.org.zkoss.xel.ExpressionXgetProperty()java.lang.StringgetPropertyString()Returns the property expression script of this binding.protected booleanignoreTracker()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
-
_fieldExpr
protected final org.zkoss.xel.ExpressionX _fieldExpr
-
_accessInfo
protected final AccessInfo _accessInfo
-
-
Constructor Detail
-
PropertyBindingImpl
protected PropertyBindingImpl(Binder binder, org.zkoss.zk.ui.Component comp, java.lang.String fieldName, java.lang.String fieldExpr, java.lang.String accessExpr, ConditionType conditionType, java.lang.String command, java.util.Map<java.lang.String,java.lang.Object> bindingArgs, java.lang.String converterExpr, java.util.Map<java.lang.String,java.lang.Object> converterArgs)
- Parameters:
binder-comp-fieldName- the name of component field (ex, style, value)fieldExpr- the EL expression to access component field (ex, self.style, self.value)accessExpr- the binding expression , to access the beanconditionType- the condition typecommand- the command, if the conditionType is not prompt, then command must not nullbindingArgs-converterExpr-converterArgs-
-
-
Method Detail
-
getConverterArgs
public java.util.Map<java.lang.String,java.lang.Object> getConverterArgs()
Description copied from interface:PropertyBindingReturns an argument<tags, object>pairs map for converter.- Specified by:
getConverterArgsin interfacePropertyBinding- Returns:
- an argument
<tags, object>pairs map for converter.
-
ignoreTracker
protected boolean ignoreTracker()
-
getConverter
public Converter getConverter()
Description copied from interface:PropertyBindingReturns the associated _converter with this binding.- Specified by:
getConverterin interfacePropertyBinding- Returns:
- the associated _converter with this binding.
-
getFieldName
public java.lang.String getFieldName()
Description copied from interface:PropertyBindingReturns the field name of the source object.- Specified by:
getFieldNamein interfacePropertyBinding- Returns:
- the field name of the source object.
-
getCommandName
public java.lang.String getCommandName()
Description copied from interface:PropertyBindingReturns the associated command name of this binding; null if not speicified.- Specified by:
getCommandNamein interfacePropertyBinding- Returns:
- the associated command name of this binding; null if not speicified.
-
getPropertyString
public java.lang.String getPropertyString()
Description copied from interface:PropertyBindingReturns the property expression script of this binding.- Specified by:
getPropertyStringin interfacePropertyBinding- Returns:
- the property expression script of this binding.
-
getConditionType
public ConditionType getConditionType()
Description copied from interface:PropertyBindingReturns the condition type of this binding- Specified by:
getConditionTypein interfacePropertyBinding
-
getProperty
public org.zkoss.xel.ExpressionX getProperty()
- Specified by:
getPropertyin interfacePropertyBinding- Returns:
- the property expression of binding
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-