net.sourceforge.esw.widgets
Interface ITableAdapter

All Superinterfaces:
ISupportObject, java.io.Serializable
All Known Implementing Classes:
NodeTableAdapter

public interface ITableAdapter
extends ISupportObject

This Adapter will provide a Table the info necessary to construct a table of the adapted data. Any object that wishes to be viewed in the table must implement this interface.


Method Summary
 java.lang.String[] getColumnNames()
          Returns the names of the columns
 int getRowCount()
          Returns the number of rows to be displayed in the Viewer
 java.lang.Object getSelectedObject(int aRow)
          Returns the selected Object
 java.lang.Object getValueAt(int aRow, int aColumn)
          Returns the value at the specified column
 boolean isCellEditable(int aRow, int aColumn)
          Is the cell editable at the specifed row and column
 void setModel(java.lang.Object aModel)
          Sets the model for the table
 void setValueAt(java.lang.Object aValue, int aRow, int aColumn)
          Sets the value at a specified row and column
 
Methods inherited from interface net.sourceforge.esw.util.ISupportObject
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, getID, getProperty, getPropertySize, propertyKeys, removeProperty, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener, setID, setProperty
 

Method Detail

getColumnNames

public java.lang.String[] getColumnNames()
Returns the names of the columns
Returns:
the names of the columns

getRowCount

public int getRowCount()
Returns the number of rows to be displayed in the Viewer
Returns:
the number of rows to be displayed in the Viewer

getValueAt

public java.lang.Object getValueAt(int aRow,
                                   int aColumn)
Returns the value at the specified column
Parameters:
aRow - the row to retrieve this data from
aColumn - the Column to return the data at
Returns:
the Object at the specified column from the DataStruture

isCellEditable

public boolean isCellEditable(int aRow,
                              int aColumn)
Is the cell editable at the specifed row and column
Parameters:
aRow - the row to get check for edit-ness
aColumn - the column to check for edit-ness
Returns:
whether the cell at the row/column is editable

setValueAt

public void setValueAt(java.lang.Object aValue,
                       int aRow,
                       int aColumn)
Sets the value at a specified row and column
Parameters:
aValue - the value to set to
aRow - The row to edit
aColumn - the column to set the value of

getSelectedObject

public java.lang.Object getSelectedObject(int aRow)
Returns the selected Object
Parameters:
aRow - the row to return the object from
Returns:
the Object selected at the given row

setModel

public void setModel(java.lang.Object aModel)
Sets the model for the table
Parameters:
model - the model for the table


Copyright 2002 Free Software Foundation. All Rights Reserved.