net.xoetrope.xui.data
Class XRadioBinding

java.lang.Object
  extended by net.xoetrope.xui.data.XRadioBinding
All Implemented Interfaces:
XDataBinding

Deprecated. use XStateBinding instead

public class XRadioBinding
extends java.lang.Object

    
implements XDataBinding

    

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


Field Summary
protected  XModel outputModel
          Deprecated.  
protected  java.lang.String outputPath
          Deprecated.  
protected  XRadioHolder radioHolder
          Deprecated.  
protected  XModel sourceModel
          Deprecated.  
protected  java.lang.String srcPath
          Deprecated.  
 
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

radioHolder

protected XRadioHolder radioHolder
Deprecated. 

sourceModel

protected XModel sourceModel
Deprecated. 

outputModel

protected XModel outputModel
Deprecated. 

srcPath

protected java.lang.String srcPath
Deprecated. 

outputPath

protected java.lang.String outputPath
Deprecated. 
Constructor Detail

XRadioBinding

public XRadioBinding(java.lang.Object c,
                     java.lang.String dataElement)
Deprecated. use XStateBinding instead

Construct a new data binding

Parameters:
c - the component to be bound
dataElement - the name of the data in the model

XRadioBinding

public XRadioBinding(java.lang.Object c,
                     java.lang.String dataElement,
                     XModel srcModel)
Deprecated. use XStateBinding instead

Construct a new data binding

Parameters:
c - the component to be bound
dataElement - the name of the data in the model
srcModel - the model node that acts as the data source for this node
Method Detail

get

public void get()
Deprecated. use XStateBinding instead

Updates the TextComponent with the value obtained from the data model.

Specified by:
get in interface XDataBinding

set

public void set()
Deprecated. use XStateBinding instead

Updates the data model with the value retrieved from the TextComponent.

Specified by:
set in interface XDataBinding

getComponent

public java.lang.Object getComponent()
Deprecated. use XStateBinding instead

Get the component to which this object binds

Specified by:
getComponent in interface XDataBinding
Returns:
The component to which the binding is being applied

getSourcePath

public java.lang.String getSourcePath()
Deprecated. use XStateBinding instead

Get the model path for the source data

Specified by:
getSourcePath in interface XDataBinding
Returns:
The raw path to which the source model is bound

getOutputPath

public java.lang.String getOutputPath()
Deprecated. use XStateBinding instead

Get the model path for the output/state data

Specified by:
getOutputPath in interface XDataBinding
Returns:
The raw path to which the output model is bound

setSource

public void setSource(XModel newNode)
Deprecated. use XStateBinding instead

Set the source node for data in the model

Specified by:
setSource in interface XDataBinding
Parameters:
newNode - the path of the data in the model

setOutput

public void setOutput(XModel newNode,
                      java.lang.String outputPath)
Deprecated. use XStateBinding instead

Update the path values stored by this node. The output path is used to store selection data and state.

Specified by:
setOutput in interface XDataBinding
Parameters:
newNode - the new model for saving the output data
outputPath - The path to which the outputModel is writing.

setSourcePath

public void setSourcePath(java.lang.String newPath)
Deprecated. use XStateBinding instead

Set the model path for the source data

Specified by:
setSourcePath in interface XDataBinding
Parameters:
newPath - The path to which the source model is to be bound

setOutputPath

public void setOutputPath(java.lang.String newPath)
Deprecated. use XStateBinding instead

Set the model path for the output/state data

Specified by:
setOutputPath in interface XDataBinding
Parameters:
newPath - The path to which the output model is to be bound

getName

public java.lang.String getName()
Deprecated. use XStateBinding instead

Gets the name of the model node

Returns:
the name