|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.formaria.aria.data.DataBinding
org.formaria.swing.data.TableTableBinding
public class TableTableBinding
A binding that binds a table component to a database table. Normally this object should be setup by the OptionalBindingFactory
Copyright Formaria(c) 2008
$Revision: 2.8 $ License: see license.txt
| Field Summary | |
|---|---|
protected TableModelAdapter |
adapter
|
protected ModelHolder |
target
|
protected boolean |
useUnique
|
| Fields inherited from class org.formaria.aria.data.DataBinding |
|---|
component, currentProject, DEFAULT_OUTPUT_PATH, outputModel, outputPath, reevaluate, sourceModel, sourcePath |
| Constructor Summary | |
|---|---|
TableTableBinding()
An Table binding ctor |
|
| Method Summary | |
|---|---|
void |
get()
Updates the table component with the value obtained from the data model. |
java.lang.String |
getType()
Get the type of this binding |
void |
set()
Updates the data model with the value retrieved from the table component. |
void |
setOutputPath(java.lang.String newPath)
Set the model path for the output/state data |
void |
setSource(DataModel newNode)
Update the model node used in the binding. |
void |
setSourcePath(java.lang.String newPath)
Set the model path for the source data |
void |
setup(Project project,
java.lang.Object c,
java.util.Hashtable bindingConfig,
java.util.Hashtable instanceConfig)
Setup and configure the binding instance. |
| Methods inherited from class org.formaria.aria.data.DataBinding |
|---|
getAttributes, getAttributes, getComponent, getOutput, getOutputPath, getReevaluate, getSource, getSourcePath, setOutput, setReevaluate, setupHelper |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected TableModelAdapter adapter
protected ModelHolder target
protected boolean useUnique
| Constructor Detail |
|---|
public TableTableBinding()
| Method Detail |
|---|
public void setup(Project project,
java.lang.Object c,
java.util.Hashtable bindingConfig,
java.util.Hashtable instanceConfig)
setup in class DataBindingproject - the owning projectc - the component being boundbindingConfig - the XML element which contains the binding configurationinstanceConfig - the XML element which contains the setup attributes of the binding instancepublic void get()
get in class DataBindingpublic void set()
set in class DataBindingpublic void setSourcePath(java.lang.String newPath)
setSourcePath in class DataBindingnewPath - The path to which the source model is to be boundpublic void setOutputPath(java.lang.String newPath)
setOutputPath in class DataBindingnewPath - The path to which the output model is to be boundpublic void setSource(DataModel newNode)
setSource in class DataBindingnewNode - the new model for the data sourcepublic java.lang.String getType()
getType in class DataBinding
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||