|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.xoetrope.xui.data.XTextBinding
net.xoetrope.optional.data.XTextTableBinding
public class XTextTableBinding
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
| Field Summary |
|---|
| Fields inherited from class net.xoetrope.xui.data.XTextBinding |
|---|
attribStr, comp, outputModel, outputPath, sourceModel, srcPath |
| Fields inherited from interface net.xoetrope.xui.data.XDataBinding |
|---|
DEFAULT_OUTPUT_PATH |
| Constructor Summary | |
|---|---|
XTextTableBinding()
null ctor |
|
XTextTableBinding(java.lang.Object c,
java.lang.String dataElement)
Construct a new data binding |
|
XTextTableBinding(java.lang.Object c,
java.lang.String dataElement,
XModel srcModel)
Construct a new data binding |
|
XTextTableBinding(java.lang.Object c,
java.lang.String dataElement,
XModel srcModel,
java.lang.String attrib)
Construct a new data binding |
|
| 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 |
| Constructor Detail |
|---|
public XTextTableBinding()
public XTextTableBinding(java.lang.Object c,
java.lang.String dataElement)
c - the component to be bounddataElement - the name of the data in the model
public XTextTableBinding(java.lang.Object c,
java.lang.String dataElement,
XModel srcModel)
c - the component to be bounddataElement - the name of the data in the modelsrcModel - the source model node
public XTextTableBinding(java.lang.Object c,
java.lang.String dataElement,
XModel srcModel,
java.lang.String attrib)
c - the component to be bounddataElement - the name of the data in the modelsrcModel - the source model nodeattrib - display an attribute of the source node if non null| Method Detail |
|---|
public void get()
get in interface XDataBindingget in class XTextBindingpublic void set()
set in interface XDataBindingset in class XTextBindingpublic void setSource(XModel newNode)
setSource in interface XDataBindingsetSource in class XTextBindingnewNode - the path of the data in the model
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||