|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.xoetrope.optional.data.XTableTableBinding
public class XTableTableBinding
A binding that binds a table component to a database table. Normally this object should be setup by the XOptionalBindingFactory
Copyright Xoetrope(c) 2003-2004
$Revision: 2.8 $ License: see license.txtField Summary | |
---|---|
protected XModel |
outputNode |
protected java.lang.String |
outputPath |
protected XModel |
sourceNode |
protected java.lang.String |
sourcePath |
protected XModelHolder |
target |
protected boolean |
useUnique |
Fields inherited from interface net.xoetrope.xui.data.XDataBinding |
---|
DEFAULT_OUTPUT_PATH |
Constructor Summary | |
---|---|
XTableTableBinding(java.lang.Object comp, XModel xmodel) An XTable binding ctor |
Method Summary | |
---|---|
void |
get() Updates the table component with the value obtained from the data model. |
java.lang.Object |
getComponent() Get the UI component that participates in this binding |
java.lang.String |
getOutputPath() Get the model path for the output/state data |
java.lang.String |
getSourcePath() Get the model path for the source data |
void |
set() Updates the data model with the value retrieved from the table component. |
void |
setOutput(XModel newModel, java.lang.String path) Update the path values stored by this node. |
void |
setOutputPath(java.lang.String newPath) Set the model path for the output/state data |
void |
setSource(XModel newNode) Update the model node used in the binding. |
void |
setSourcePath(java.lang.String newPath) Set the model path for the source data |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected XModelHolder target
protected boolean useUnique
protected XModel outputNode
protected XModel sourceNode
protected java.lang.String outputPath
protected java.lang.String sourcePath
Constructor Detail |
---|
public XTableTableBinding(java.lang.Object comp, XModel xmodel)
comp
- The table object being boundxmodel
- The model to which the table is to be boundMethod Detail |
---|
public void get()
get
in interface XDataBinding
public void set()
set
in interface XDataBinding
public java.lang.Object getComponent()
getComponent
in interface XDataBinding
public java.lang.String getSourcePath()
getSourcePath
in interface XDataBinding
public java.lang.String getOutputPath()
getOutputPath
in interface XDataBinding
public void setSourcePath(java.lang.String newPath)
setSourcePath
in interface XDataBinding
newPath
- The path to which the source model is to be boundpublic void setOutputPath(java.lang.String newPath)
setOutputPath
in interface XDataBinding
newPath
- The path to which the output model is to be boundpublic void setSource(XModel newNode)
setSource
in interface XDataBinding
newNode
- the new model for the data sourcepublic void setOutput(XModel newModel, java.lang.String path)
setOutput
in interface XDataBinding
newModel
- the new model for saving the output datapath
- The path to which the outputModel is writing.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |