gradeview
Class OrganizationTableModel
java.lang.Object
|
+--javax.swing.table.AbstractTableModel
|
+--gradeview.OrganizationTableModel
- public class OrganizationTableModel
- extends javax.swing.table.AbstractTableModel
TableModel
used to display Tree-like information in a JTable
.
Specifically, this displays a list of elements, with one element per
row. Each element can have a number of subelements which are
displayed immediately below the element and slightly indented
- See Also:
- Serialized Form
Fields inherited from class javax.swing.table.AbstractTableModel |
listenerList |
Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener,
findColumn,
fireTableCellUpdated,
fireTableChanged,
fireTableDataChanged,
fireTableRowsDeleted,
fireTableRowsInserted,
fireTableRowsUpdated,
fireTableStructureChanged,
getColumnClass,
removeTableModelListener |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
OrganizationTableModel
public OrganizationTableModel(java.lang.String[] columnNames,
java.lang.String[] columnIDs)
getRowCount
public int getRowCount()
- Overrides:
- getRowCount in class javax.swing.table.AbstractTableModel
getColumnCount
public int getColumnCount()
- Overrides:
- getColumnCount in class javax.swing.table.AbstractTableModel
getColumnName
public java.lang.String getColumnName(int column)
- Overrides:
- getColumnName in class javax.swing.table.AbstractTableModel
getValueAt
public java.lang.Object getValueAt(int row,
int column)
- Overrides:
- getValueAt in class javax.swing.table.AbstractTableModel
getRowData
public java.lang.Object getRowData(int row)
getElementForRow
public int getElementForRow(int row)
setValueAt
public void setValueAt(java.lang.Object aValue,
int row,
int column)
- Overrides:
- setValueAt in class javax.swing.table.AbstractTableModel
isCellEditable
public boolean isCellEditable(int rowIndex,
int columnIndex)
- Overrides:
- isCellEditable in class javax.swing.table.AbstractTableModel
addElement
public int addElement(java.lang.String name)
addSubElement
public void addSubElement(int index,
java.lang.Object subelement)
deleteElement
public void deleteElement(int elementIndex)
deleteSubElement
public void deleteSubElement(int rowIndex)