Package com.jformdesigner.model
Class FormBinding
- java.lang.Object
-
- com.jformdesigner.model.FormObject
-
- com.jformdesigner.model.FormBinding
-
public class FormBinding extends FormObject
A form binding represents a single binding in the form model. Usually aBinding.- Since:
- 5.0
-
-
Field Summary
Fields Modifier and Type Field Description static StringPROP_SOURCEstatic StringPROP_SOURCE_PATHstatic StringPROP_TARGETstatic StringPROP_TARGET_PATH-
Fields inherited from class com.jformdesigner.model.FormObject
NULL_VALUE
-
-
Constructor Summary
Constructors Constructor Description FormBinding()FormBinding(String source, String sourcePath, String target, String targetPath)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccept(FormBindingVisitor visitor)Accepts the given visitor.Objectclone()Clones this form binding.static FormBinding[]clone(FormBinding[] bindings)FormBindingGroupgetBindingGroup()Returns the form binding group of this form binding.StringgetSource()StringgetSourcePath()StringgetTarget()StringgetTargetPath()StringtoString()Returns a string representation of the object.-
Methods inherited from class com.jformdesigner.model.FormObject
equals, getClientProperty, getProperties, getProperty, getProperty, getPropertyBoolean, getPropertyBoolean, getPropertyCount, getPropertyDouble, getPropertyDouble, getPropertyInt, getPropertyInt, getPropertyNames, getPropertyString, getPropertyString, getReferenceCount, hashCode, properties, propertyNames, putClientProperty, setProperty, setProperty, setProperty, setPropertyBoolean, setPropertyBoolean, setPropertyDouble, setPropertyDouble, setPropertyInt, setPropertyInt, setPropertyString
-
-
-
-
Field Detail
-
PROP_SOURCE
public static final String PROP_SOURCE
- See Also:
- Constant Field Values
-
PROP_SOURCE_PATH
public static final String PROP_SOURCE_PATH
- See Also:
- Constant Field Values
-
PROP_TARGET
public static final String PROP_TARGET
- See Also:
- Constant Field Values
-
PROP_TARGET_PATH
public static final String PROP_TARGET_PATH
- See Also:
- Constant Field Values
-
-
Method Detail
-
getSource
public String getSource()
-
getSourcePath
public String getSourcePath()
-
getTarget
public String getTarget()
-
getTargetPath
public String getTargetPath()
-
getBindingGroup
public FormBindingGroup getBindingGroup()
Returns the form binding group of this form binding.
-
accept
public boolean accept(FormBindingVisitor visitor)
Accepts the given visitor. The visitor'sFormBindingVisitor.visit(com.jformdesigner.model.FormBinding)is called with this form binding.- Parameters:
visitor- The visitor.- Returns:
- The result of
FormBindingVisitor.visit(com.jformdesigner.model.FormBinding).
-
clone
public static FormBinding[] clone(FormBinding[] bindings)
-
toString
public String toString()
Returns a string representation of the object.- Overrides:
toStringin classFormObject
-
-