net.xoetrope.optional.data.sql
Class DatabaseFieldModel

java.lang.Object
  extended by net.xoetrope.xui.data.XModel
      extended by net.xoetrope.xui.data.table.XFieldModel
          extended by net.xoetrope.optional.data.sql.DatabaseFieldModel

public class DatabaseFieldModel
extends XFieldModel

Provides a model for table field. The field will have no children. As a Java object the fields and rows indices are zero based in contrast to the JDBC indexing setup.

The class is not intended to be used directly except in rare circumstances, instead most access will be via the model and bindings or via the DatabaseTableModel class

Copyright (c) Xoetrope Ltd. 2001-2003

$Revision: 2.2 $ License: see license.txt


Field Summary
 
Fields inherited from class net.xoetrope.xui.data.table.XFieldModel
fieldIdx, rowIdx, sourceData
 
Fields inherited from class net.xoetrope.xui.data.XModel
parentModel, tagName
 
Constructor Summary
DatabaseFieldModel()
          Create a new field model node
DatabaseFieldModel(DatabaseTableModel table, int row, int field)
          Create a new field model node
 
Method Summary
 
Methods inherited from class net.xoetrope.xui.data.table.XFieldModel
append, append, get, get, getAttribName, getAttribute, getAttribValue, getAttribValueAsDouble, getAttribValueAsDouble, getAttribValueAsInt, getAttribValueAsString, getFieldIndex, getId, getTable, getTagName, getValue, getValueAsDouble, getValueAsInt, getValueAsString, hashCode, remove, set, set, setAttribValue, setAttribValue, setCellReference, toString
 
Methods inherited from class net.xoetrope.xui.data.XModel
addModelListener, clear, fireModelUpdated, get, getNumAttributes, getNumChildren, getParent, hasAutoId, hasAutoId, prefixOutputPath, removeChildren, reset, resetAttributes, setId, setNumAttributes, setNumChildren, setParent, setTagName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DatabaseFieldModel

public DatabaseFieldModel()
Create a new field model node


DatabaseFieldModel

public DatabaseFieldModel(DatabaseTableModel table,
                          int row,
                          int field)
Create a new field model node

Parameters:
table - the table model
row - the row index
field - the field index