|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object infovis.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 tableMethod Detail |
---|
public static void sizeColumn(JTable table, int i)
table
- the JTablei
- the columnpublic 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 Table
selection
- 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 TableModel
TableModel.addTableModelListener(TableModelListener)
public void removeTableModelListener(TableModelListener l)
removeTableModelListener
in interface TableModel
TableModel.removeTableModelListener(TableModelListener)
public Class getColumnClass(int columnIndex)
getColumnClass
in interface TableModel
TableModel.getColumnClass(int)
public int getColumnCount()
getColumnCount
in interface TableModel
TableModel.getColumnCount()
public int getRowAt(int columnIndex)
columnIndex
- the column index in the JTable
public String getColumnName(int columnIndex)
getColumnName
in interface TableModel
TableModel.getColumnName(int)
public int getRowCount()
getRowCount
in interface TableModel
TableModel.getRowCount()
public Column getColumnAt(int index)
public Object getValueAt(int rowIndex, int columnIndex)
getValueAt
in interface TableModel
TableModel.getValueAt(int, int)
public boolean isCellEditable(int rowIndex, int columnIndex)
isCellEditable
in interface TableModel
TableModel.isCellEditable(int, int)
public void setValueAt(Object aValue, int rowIndex, int columnIndex)
setValueAt
in interface TableModel
TableModel.setValueAt(Object, int, int)
public void stateChanged(ChangeEvent e)
stateChanged
in interface ChangeListener
ChangeListener.stateChanged(ChangeEvent)
public void tableChanged(TableModelEvent e)
tableChanged
in interface TableModelListener
TableModelListener.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
,
EventListenerList
public 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 |