|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfovis.panel.DetailTable
public class DetailTable
Table Model for displaying the details of the selected rows of a visualization.
| Constructor Summary | |
|---|---|
DetailTable(Table table,
BooleanColumn selection)
Constructor for DetailTable. |
|
| Method Summary | |
|---|---|
void |
addTableModelListener(TableModelListener l)
|
static JScrollPane |
createDetailJTable(Table table,
BooleanColumn selection)
Creates a scrollable JTable with convenient default
setting for showing the selected items of a specified InfoVis
Table. |
void |
fireTableChanged(TableModelEvent e)
Forwards the given notification event to all TableModelListeners that registered themselves as
listeners for this table sizeModel. |
void |
fireTableDataChanged()
Notifies all listeners that all cell values in the table's rows may have changed. |
void |
fireTableStructureChanged()
Notifies all listeners that the table's structure has changed. |
Column |
getColumnAt(int index)
|
Class |
getColumnClass(int columnIndex)
|
int |
getColumnCount()
|
String |
getColumnName(int columnIndex)
|
int |
getRowAt(int columnIndex)
Returns the row of the InfoVis column corresponding to the specified column index for the JTable |
int |
getRowCount()
|
Object |
getValueAt(int rowIndex,
int columnIndex)
|
boolean |
isCellEditable(int rowIndex,
int columnIndex)
|
void |
removeTableModelListener(TableModelListener l)
|
void |
setValueAt(Object aValue,
int rowIndex,
int columnIndex)
|
static void |
sizeColumn(JTable table,
int i)
Resize a specified JTable column to fit its natural size. |
void |
stateChanged(ChangeEvent e)
|
void |
tableChanged(TableModelEvent e)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DetailTable(Table table,
BooleanColumn selection)
table - the specified Table to manageselection - the column containing the selected items to manage in the table| Method Detail |
|---|
public static void sizeColumn(JTable table,
int i)
table - the JTablei - the column
public static JScrollPane createDetailJTable(Table table,
BooleanColumn selection)
JTable with convenient default
setting for showing the selected items of a specified InfoVis
Table.
Gets updated when the selection changes.
table - the specified Tableselection - the selection column
JScrollPane containing a JTable
showing the details of the items selected in the table.public void addTableModelListener(TableModelListener l)
addTableModelListener in interface TableModelTableModel.addTableModelListener(TableModelListener)public void removeTableModelListener(TableModelListener l)
removeTableModelListener in interface TableModelTableModel.removeTableModelListener(TableModelListener)public Class getColumnClass(int columnIndex)
getColumnClass in interface TableModelTableModel.getColumnClass(int)public int getColumnCount()
getColumnCount in interface TableModelTableModel.getColumnCount()public int getRowAt(int columnIndex)
columnIndex - the column index in the JTable
public String getColumnName(int columnIndex)
getColumnName in interface TableModelTableModel.getColumnName(int)public int getRowCount()
getRowCount in interface TableModelTableModel.getRowCount()public Column getColumnAt(int index)
public Object getValueAt(int rowIndex,
int columnIndex)
getValueAt in interface TableModelTableModel.getValueAt(int, int)
public boolean isCellEditable(int rowIndex,
int columnIndex)
isCellEditable in interface TableModelTableModel.isCellEditable(int, int)
public void setValueAt(Object aValue,
int rowIndex,
int columnIndex)
setValueAt in interface TableModelTableModel.setValueAt(Object, int, int)public void stateChanged(ChangeEvent e)
stateChanged in interface ChangeListenerChangeListener.stateChanged(ChangeEvent)public void tableChanged(TableModelEvent e)
tableChanged in interface TableModelListenerTableModelListener.tableChanged(TableModelEvent)public void fireTableDataChanged()
JTable should redraw the table from scratch. The structure
of the table (as in the order of the columns) is assumed to be the same.
TableModelEvent,
EventListenerList,
JTable.tableChanged(TableModelEvent)public void fireTableStructureChanged()
JTable
receives this event and its autoCreateColumnsFromModel
flag is set it discards any table columns that it had and reallocates
default columns in the order they appear in the sizeModel. This is the
same as calling setModel(TableModel) on the
JTable.
TableModelEvent,
EventListenerListpublic void fireTableChanged(TableModelEvent e)
TableModelListeners that registered themselves as
listeners for this table sizeModel.
e - the event to be forwardedaddTableModelListener(javax.swing.event.TableModelListener),
TableModelEvent,
EventListenerList
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||