|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.table.AbstractTableModel
org.peace_tools.data.DataSetTableModel
public class DataSetTableModel
Field Summary | |
---|---|
private static long |
serialVersionUID
A generated serial version ID for serializing the information in this class (if needed). |
Fields inherited from class javax.swing.table.AbstractTableModel |
---|
listenerList |
Constructor Summary | |
---|---|
DataSetTableModel()
The default constructor. |
Method Summary | |
---|---|
java.lang.Class<?> |
getColumnClass(int column)
Obtain the class that describes the data type of a given column. |
int |
getColumnCount()
Method to obtain the columns that are to be displayed in a |
java.lang.String |
getColumnName(int col)
Override the default names that are set for the columns displayed in the job table. |
java.lang.Object |
getEntry(int row)
This is a helper method to obtain a file name corresponding to a given row in the work space. |
private java.lang.String |
getFileName(int row)
This is a helper method to obtain a file name corresponding to a given row in the work space. |
int |
getRow(java.lang.Object entry)
Obtain the row for a given entry in this list. |
int |
getRowCount()
Method to return the number of rows to be displayed in the table. |
java.lang.Object |
getValueAt(int row,
int column)
Obtain the value to be displayed at a given row and column. |
boolean |
isCellEditable(int row,
int column)
Interface method to determine if an entry in the JTable is editable. |
void |
workspaceChanged(WorkspaceEvent event)
Translates work space change notifications to table changes. |
Methods inherited from class javax.swing.table.AbstractTableModel |
---|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener, setValueAt |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
Constructor Detail |
---|
public DataSetTableModel()
Method Detail |
---|
public int getColumnCount()
getColumnCount
in interface javax.swing.table.TableModel
public int getRowCount()
getRowCount
in interface javax.swing.table.TableModel
private java.lang.String getFileName(int row)
row
- The row in the work space for which the file name
is to be returned.
public java.lang.Object getEntry(int row)
row
- The row in the work space for which the file name
is to be returned.
public int getRow(java.lang.Object entry)
entry
- The entry whose rows is to be determined.
public java.lang.Object getValueAt(int row, int column)
getValueAt
in interface javax.swing.table.TableModel
public boolean isCellEditable(int row, int column)
isCellEditable
in interface javax.swing.table.TableModel
isCellEditable
in class javax.swing.table.AbstractTableModel
public java.lang.Class<?> getColumnClass(int column)
getColumnClass
in interface javax.swing.table.TableModel
getColumnClass
in class javax.swing.table.AbstractTableModel
column
- The zero-based index of the column of the
table for which class is required.public java.lang.String getColumnName(int col)
getColumnName
in interface javax.swing.table.TableModel
getColumnName
in class javax.swing.table.AbstractTableModel
col
- The zero-based column index whose title is to
be returned.
public void workspaceChanged(WorkspaceEvent event)
Note: This method simply fires a table data changed event indicating that all the cells in the model have changed.
workspaceChanged
in interface WorkspaceListener
event
- The event that contains the information regarding the
change that has occured to the workspace.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |