net.xoetrope.optional.data
Class XTextTableBinding
java.lang.Object
net.xoetrope.xui.data.XTextBinding
net.xoetrope.optional.data.XTextTableBinding
- All Implemented Interfaces:
- XDataBinding
-
public class XTextTableBinding
- extends XTextBinding
-
A text binding that binds to a database table field. Normally this object should be setup by the XOptionalBindingFactory
Copyright Xoetrope Ltd. (c) 2003-2004
$Revision: 2.4 $ License: see license.txt
Fields inherited from class net.xoetrope.xui.data.XTextBinding |
attribStr, comp, outputModel, outputPath, sourceModel, srcPath |
Method Summary |
void |
get()
Updates the TextComponent with the value obtained from the data model. |
void |
set()
Updates the data model with the value retrieved from the TextComponent. |
void |
setSource(XModel newNode)
Set the source node for data in the model |
Methods inherited from class net.xoetrope.xui.data.XTextBinding |
getComponent, getName, getOutputPath, getSourcePath, setComponentValue, setModelValue, setOutput, setOutputPath, setSourcePath |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XTextTableBinding
public XTextTableBinding()
-
null ctor
XTextTableBinding
public XTextTableBinding(java.lang.Object c,
java.lang.String dataElement)
-
Construct a new data binding
- Parameters:
-
c
- the component to be bound
-
dataElement
- the name of the data in the model
XTextTableBinding
public XTextTableBinding(java.lang.Object c,
java.lang.String dataElement,
XModel srcModel)
-
Construct a new data binding
- Parameters:
-
c
- the component to be bound
-
dataElement
- the name of the data in the model
-
srcModel
- the source model node
XTextTableBinding
public XTextTableBinding(java.lang.Object c,
java.lang.String dataElement,
XModel srcModel,
java.lang.String attrib)
-
Construct a new data binding
- Parameters:
-
c
- the component to be bound
-
dataElement
- the name of the data in the model
-
srcModel
- the source model node
-
attrib
- display an attribute of the source node if non null
get
public void get()
-
Updates the TextComponent with the value obtained from the data model.
-
- Specified by:
-
get
in interface XDataBinding
- Overrides:
-
get
in class XTextBinding
-
set
public void set()
-
Updates the data model with the value retrieved from the TextComponent.
-
- Specified by:
-
set
in interface XDataBinding
- Overrides:
-
set
in class XTextBinding
-
setSource
public void setSource(XModel newNode)
-
Set the source node for data in the model
-
- Specified by:
-
setSource
in interface XDataBinding
- Overrides:
-
setSource
in class XTextBinding
-
- Parameters:
-
newNode
- the path of the data in the model