| java.lang.Object net.xoetrope.xui.data.XTextBinding
All known Subclasses: net.xoetrope.optional.data.XTextTableBinding,
XTextBinding | public class XTextBinding implements XDataBinding(Code) | | Bind a TextComponent to a data model value/node. The binding allows a model node to
linked to a UI component so that it can be refreshed when new data is written
to the model or conversely when the UI component needs to write data to the
model. This binding is designed to be used by components such
as TextComponents or TextFields. For a text component the source and
destination area synonymous.
Copyright: Copyright (c) Xoetrope Ltd., 1998-2003
License: see license.txt
version: $Revision: 1.25 $ |
XTextBinding | public XTextBinding()(Code) | | |
XTextBinding | public XTextBinding(Component c, String dataElement)(Code) | | Construct a new data binding
Parameters: c - the component to be bound Parameters: dataElement - the name of the data in the model |
XTextBinding | public XTextBinding(Component c, String dataElement, XModel srcModel)(Code) | | Construct a new data binding
Parameters: c - the component to be bound Parameters: dataElement - the name of the data in the model Parameters: srcModel - the source model node |
XTextBinding | public XTextBinding(Component c, String dataElement, XModel srcModel, String attrib)(Code) | | Construct a new data binding
Parameters: c - the component to be bound Parameters: dataElement - the name of the data in the model Parameters: srcModel - the source model node Parameters: attrib - display an attribute of the source node if non null |
get | public void get()(Code) | | Updates the TextComponent with the value obtained from the data model.
|
getComponent | public Component getComponent()(Code) | | Get the component to which this object binds
|
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 ins output/state
|
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 path to the output/state node
Parameters: newPath - the name of the path in the model |
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 node for data in the model
Parameters: newNode - the path of the data in the model |
setSourcePath | public void setSourcePath(String newPath)(Code) | | Set the model path for the source data
|
|
|