|
|||||||||
| 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.swt.tree.TreeBinding
public class TreeBinding
This class provides a means of binding a model node and its children to an DataModel node.
Copyright: Copyright (c) Formaria Ltd., 2008
$Revision: 2.4 $
License see license.txt
| Field Summary | |
|---|---|
protected Tree |
treeComponent
the bound component |
| Fields inherited from class org.formaria.aria.data.DataBinding |
|---|
component, currentProject, DEFAULT_OUTPUT_PATH, outputModel, outputPath, reevaluate, sourceModel, sourcePath |
| Constructor Summary | |
|---|---|
TreeBinding()
Construct a new data binding |
|
| Method Summary | |
|---|---|
void |
get()
Updates the Tree component with the value obtained from the data model. |
java.lang.Object |
getComponent()
Gets the component on which this binding operates |
java.lang.String |
getName()
Gets the name of the model node |
protected java.lang.String |
getTreePath()
Get the path from the root to the selected node |
java.lang.String |
getType()
Get the type of this binding |
void |
set()
Updates the data model with the value retrieved from the TextComponent. |
void |
setOutput(DataModel newNode,
java.lang.String outputPath)
Set the output node where state data for this binding will be saved |
void |
setSource(DataModel newNode)
Set the source for this bindings's 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, getOutput, getOutputPath, getReevaluate, getSource, getSourcePath, setOutputPath, setReevaluate, setSourcePath, setupHelper |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Tree treeComponent
| Constructor Detail |
|---|
public TreeBinding()
| 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 java.lang.Object getComponent()
getComponent in class DataBindingpublic java.lang.String getName()
public void setSource(DataModel newNode)
setSource in class DataBindingnewNode - the path to the data in the model
public void setOutput(DataModel newNode,
java.lang.String outputPath)
setOutput in class DataBindingnewNode - the output nodeoutputPath - the output pathprotected java.lang.String getTreePath()
public java.lang.String getType()
getType in class DataBinding
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||