| |
|
| java.lang.Object net.xoetrope.optional.data.XListTableBinding
XListTableBinding | public class XListTableBinding implements XDataBinding(Code) | | A data binding for list components, including drop down lists. This binding
allows a key field to be chosen so that records may be chosen using a key
(or ID) value. A display field can also be specified so that the list need
not display the first field from the table.
Copyright Xoetrope (c) 2001-2004
$Revision: 1.3 $
|
displayColumnIdx | protected int displayColumnIdx(Code) | | |
keyColumnIdx | protected int keyColumnIdx(Code) | | |
useUnique | protected boolean useUnique(Code) | | |
XListTableBinding | public XListTableBinding(Object comp, XModel xmodel)(Code) | | Construct a new data binding
Parameters: comp - the component to be bound Parameters: xmodel - the model node that is to act as the data source |
get | public void get()(Code) | | Update the bound component with the value obtained from the data model.
|
getComponent | public Component getComponent()(Code) | | Get the component to which this binding is attached
|
getOutputPath | public String getOutputPath()(Code) | | Get the model path for the output/state data
|
getSourcePath | public String getSourcePath()(Code) | | Get the model path for the source data
|
set | public void set()(Code) | | Update the data model with the value retrieved from the bound component.
|
setDisplayColumn | public void setDisplayColumn(String displayColumn)(Code) | | Set the display column index, by default it is set to zero or the first column
Parameters: displayColumn - the column index (zero based) |
setKeyColumn | public void setKeyColumn(String keyColumn)(Code) | | Set the key column index, by default it is set to zero or the first column
Parameters: keyColumn - the column index (zero based) |
setOutput | public void setOutput(XModel newNode)(Code) | | Update the path values stored by this node. The output path is used to
store selection data and state.
Parameters: newNode - the new model for saving the output data |
setOutputPath | public void setOutputPath(String newPath)(Code) | | Set the model path for the output/state data
|
setSource | public void setSource(XModel newNode)(Code) | | Update the model node used in the binding. Note that this method does not
modify the path values stored by this node.
Parameters: newNode - the new model for the data source |
setSourcePath | public void setSourcePath(String newPath)(Code) | | Set the model path for the source data
|
|
|
|