|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.xoetrope.xui.data.XRadioBinding
public class XRadioBinding
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.
Copyright: Copyright (c) Xoetrope Ltd., 1998-2003
License: see license.txt
| Field Summary | |
|---|---|
protected XModel |
outputModelDeprecated. |
protected java.lang.String |
outputPathDeprecated. |
protected XRadioHolder |
radioHolderDeprecated. |
protected XModel |
sourceModelDeprecated. |
protected java.lang.String |
srcPathDeprecated. |
| Fields inherited from interface net.xoetrope.xui.data.XDataBinding |
|---|
DEFAULT_OUTPUT_PATH |
| Constructor Summary | |
|---|---|
XRadioBinding(java.lang.Object c, java.lang.String dataElement)Deprecated. use XStateBinding instead |
|
XRadioBinding(java.lang.Object c, java.lang.String dataElement, XModel srcModel)Deprecated. use XStateBinding instead |
|
| Method Summary | |
|---|---|
void |
get()Deprecated. use XStateBinding instead |
java.lang.Object |
getComponent()Deprecated. use XStateBinding instead |
java.lang.String |
getName()Deprecated. use XStateBinding instead |
java.lang.String |
getOutputPath()Deprecated. use XStateBinding instead |
java.lang.String |
getSourcePath()Deprecated. use XStateBinding instead |
void |
set()Deprecated. use XStateBinding instead |
void |
setOutput(XModel newNode, java.lang.String outputPath)Deprecated. use XStateBinding instead |
void |
setOutputPath(java.lang.String newPath)Deprecated. use XStateBinding instead |
void |
setSource(XModel newNode)Deprecated. use XStateBinding instead |
void |
setSourcePath(java.lang.String newPath)Deprecated. use XStateBinding instead |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected XRadioHolder radioHolder
protected XModel sourceModel
protected XModel outputModel
protected java.lang.String srcPath
protected java.lang.String outputPath
| Constructor Detail |
|---|
public XRadioBinding(java.lang.Object c,
java.lang.String dataElement)
c - the component to be bounddataElement - the name of the data in the model
public XRadioBinding(java.lang.Object c,
java.lang.String dataElement,
XModel srcModel)
c - the component to be bounddataElement - the name of the data in the modelsrcModel - the model node that acts as the data source for this node| Method Detail |
|---|
public void get()
get in interface XDataBinding
public void set()
set in interface XDataBinding
public java.lang.Object getComponent()
getComponent in interface XDataBinding
public java.lang.String getSourcePath()
getSourcePath in interface XDataBinding
public java.lang.String getOutputPath()
getOutputPath in interface XDataBinding
public void setSource(XModel newNode)
setSource in interface XDataBinding
newNode - the path of the data in the model
public void setOutput(XModel newNode,
java.lang.String outputPath)
setOutput in interface XDataBinding
newNode - the new model for saving the output dataoutputPath - The path to which the outputModel is writing.public void setSourcePath(java.lang.String newPath)
setSourcePath in interface XDataBinding
newPath - The path to which the source model is to be boundpublic void setOutputPath(java.lang.String newPath)
setOutputPath in interface XDataBinding
newPath - The path to which the output model is to be boundpublic java.lang.String getName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||