Package org.zkoss.bind.impl
Class PropertyBindingImpl
java.lang.Object
org.zkoss.bind.impl.BindingImpl
org.zkoss.bind.impl.PropertyBindingImpl
- All Implemented Interfaces:
Serializable,Binding,PropertyBinding
- Direct Known Subclasses:
InitPropertyBindingImpl,LoadPropertyBindingImpl,SavePropertyBindingImpl
A base implementation of
PropertyBinding.- Since:
- 6.0.0
- Author:
- henrichen
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final AccessInfoprotected final org.zkoss.xel.ExpressionX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the associated command name of this binding; null if not speicified.Returns the condition type of this bindingReturns the associated _converter with this binding.Returns an argument<tags, object>pairs map for converter.Returns the field name of the source object.org.zkoss.xel.ExpressionXReturns the property expression script of this binding.protected booleantoString()Methods inherited from class org.zkoss.bind.impl.BindingImpl
containsAttribute, getArgs, getAttribute, getBinder, getComponent, setAttributeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.zkoss.bind.sys.Binding
getArgs, getBinder, getComponent
-
Field Details
-
_fieldExpr
protected final org.zkoss.xel.ExpressionX _fieldExpr -
_accessInfo
-
-
Constructor Details
-
PropertyBindingImpl
protected PropertyBindingImpl(Binder binder, org.zkoss.zk.ui.Component comp, String fieldName, String fieldExpr, String accessExpr, ConditionType conditionType, String command, Map<String, Object> bindingArgs, String converterExpr, Map<String, 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 Details
-
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
Description copied from interface:PropertyBindingReturns the associated _converter with this binding.- Specified by:
getConverterin interfacePropertyBinding- Returns:
- the associated _converter with this binding.
-
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
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
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
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
-