goat.editors
Class EditorMetaData
java.lang.Object
|
+--goat.editors.EditorMetaData
- public class EditorMetaData
- extends java.lang.Object
The EditorMetaData class contains the relevant information about the editor
being invoked. This class is passed in as an argument to the constructor of
the pluggable editors.
- Version:
- 1.0
- Author:
- Jalpesh
Constructor Summary |
EditorMetaData(int row,
goat.sql.ColumnInfo info,
java.sql.ResultSet rs,
java.awt.Rectangle bounds,
byte[] data)
|
Method Summary |
java.awt.Rectangle |
getBounds()
Returns the bounds of the cell which contain the data that is displayed
by the editor. |
goat.sql.ColumnInfo |
getColumnInfo()
Returns the information about the column of the current data |
byte[] |
getData()
Return the data to be displayed by this editor |
java.sql.ResultSet |
getResultSet()
Returns the result containing the data |
int |
getRow()
Returns the row number of the result set which contains the
data to be displayed by the editor |
void |
setData(byte[] data)
Sets the data of this editor. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EditorMetaData
public EditorMetaData(int row,
goat.sql.ColumnInfo info,
java.sql.ResultSet rs,
java.awt.Rectangle bounds,
byte[] data)
getRow
public int getRow()
- Returns the row number of the result set which contains the
data to be displayed by the editor
- Returns:
- row The row number of the data
getColumnInfo
public goat.sql.ColumnInfo getColumnInfo()
- Returns the information about the column of the current data
- Returns:
- info The column information
getResultSet
public java.sql.ResultSet getResultSet()
- Returns the result containing the data
- Returns:
- rs ResultSet
getBounds
public java.awt.Rectangle getBounds()
- Returns the bounds of the cell which contain the data that is displayed
by the editor.
- Returns:
- bounds Rectangle object
getData
public byte[] getData()
- Return the data to be displayed by this editor
- Returns:
- byte[] data
setData
public void setData(byte[] data)
- Sets the data of this editor. Note that only data has mutable accessors
associated with it. All the other fields are read-only. This is because
in the editor the user can change the data.