|
|||||||||
| 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.editor.project.data.EditorDataBinding
public class EditorDataBinding
A processsor for Page annotations
Copyright (c) Formaria Ltd., 2002-2006
License: see license.txt
$Revision: 1.9 $
| Field Summary |
|---|
| Fields inherited from class org.formaria.aria.data.DataBinding |
|---|
component, currentProject, DEFAULT_OUTPUT_PATH, outputModel, outputPath, reevaluate, sourceModel, sourcePath |
| Constructor Summary | |
|---|---|
EditorDataBinding(DataBinding db,
java.util.Hashtable config)
Creates a new instance of EditorDataBinding |
|
| Method Summary | |
|---|---|
void |
get()
Update the bound component with the value obtained from the data model. |
java.util.Vector |
getAttributes(boolean required)
Get the names of the attributes used by this binding class |
java.lang.Object |
getComponent()
Get the component to which this binding is attached |
java.util.Hashtable |
getInstanceConfig()
Get the extra attributes of the binding |
DataModel |
getOutput()
Get the output model |
java.lang.String |
getOutputPath()
Get the model path for the output/state data |
boolean |
getReevaluate()
Get the reevaluate flag. |
DataModel |
getSource()
Get the source model |
java.lang.String |
getSourcePath()
Get the model path for the source data |
java.lang.String |
getType()
Get the type of this binding |
void |
set()
Update the data model with the value retrieved from the bound component. |
void |
setOutput(DataModel newNode,
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 |
setReevaluate(boolean b)
Set the reevaluate flag. |
void |
setSource(DataModel newNode)
Set the source node for data in the model |
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, setupHelper |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EditorDataBinding(DataBinding db,
java.util.Hashtable config)
| 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 getSourcePath()
getSourcePath in class DataBindingpublic java.lang.String getOutputPath()
getOutputPath in class DataBindingpublic void setSource(DataModel newNode)
setSource in class DataBindingnewNode - the path of the data in the model
public void setOutput(DataModel newNode,
java.lang.String path)
setOutput in class DataBindingnewNode - the new model for saving the output datapath - The path to which the outputModel is writing.public DataModel getSource()
getSource in class DataBindingpublic DataModel getOutput()
getOutput 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 boolean getReevaluate()
getReevaluate in class DataBindingpublic void setReevaluate(boolean b)
setReevaluate in class DataBindingb - true if the binding paths are to be reevaluatedpublic java.util.Vector getAttributes(boolean required)
getAttributes in class DataBindingrequired - true to list only the require attribues, false for all attributespublic java.lang.String getType()
getType in class DataBindingpublic java.util.Hashtable getInstanceConfig()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||