| |
|
| java.lang.Object net.xoetrope.swing.tree.XTreeBinding
XTreeBinding | public class XTreeBinding implements XDataBinding(Code) | | This class provides a means of binding a model node and its children to an
XModel node.
Copyright: Copyright (c) Xoetrope Ltd., 2001-2004
$Revision: 1.5 $
License see license.txt
|
XTreeBinding | public XTreeBinding(JTree c, XModelAdapter node)(Code) | | Construct a new data binding
Parameters: c - the JTree component to be bound Parameters: node - the model node |
get | public void get()(Code) | | Updates the Tree component with the value obtained from the data model.
Filters the list by ignoring repeat items (note that this does not
guarantee unique list entries unless the useUnique flag is set).
|
getComponent | public Component getComponent()(Code) | | Gets the component on which this binding operates
the bound component |
getName | public String getName()(Code) | | Gets the name of the model node
the name |
getOutputPath | public String getOutputPath()(Code) | | Get the model component to which this object binds
|
getSourcePath | public String getSourcePath()(Code) | | Get the model component to which this object binds
|
set | public void set()(Code) | | Updates the data model with the value retrieved from the TextComponent.
|
setOutput | public void setOutput(XModel newNode)(Code) | | Set the output node where state data for this binding will be saved
Parameters: newPath - the path of the output/state node |
setOutputPath | public void setOutputPath(String newPath)(Code) | | Set the model path for the output/state data
|
setSource | public void setSource(XModel newNode)(Code) | | Set the source for this bindings's data
Parameters: newNode - the path to the data in the model |
setSourcePath | public void setSourcePath(String newPath)(Code) | | Set the model path for the source data
|
|
|
|