|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.table.AbstractTableModel
gcspy.vis.plugins.text.TextTableModel
public class TextTableModel
A table model for the text view
| Field Summary |
|---|
| Fields inherited from class javax.swing.table.AbstractTableModel |
|---|
listenerList |
| Constructor Summary | |
|---|---|
TextTableModel(ClientSpace space)
Create a model for a table view of a space |
|
| Method Summary | |
|---|---|
java.lang.String |
format(java.lang.String str)
Format a column header |
java.lang.String |
format(java.lang.String[] strings)
Format a column header |
java.lang.Class<?> |
getColumnClass(int col)
Get the class of a column |
int |
getColumnCount()
|
java.lang.String |
getColumnName(int col)
Return either "Block" (for column 0) or a title combining the prefix/suffix string for this stream |
int |
getRowCount()
|
java.lang.Object |
getValueAt(int row,
int col)
Get a block name or a stream value |
boolean |
isCellEditable(int row,
int col)
No cells are editable |
(package private) void |
setData()
Refresh the data for the space, and reset the sorting parameters Looks better if there is always a minimum number of rows. |
(package private) void |
setSpace(ClientSpace space)
Set the space to view |
void |
sortAllRowsByColumn(int column)
Sort the column by a particular column. |
void |
sortAllRowsByColumn(int column,
boolean ascending)
Sort the column by a particular column. |
| 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 |
| Constructor Detail |
|---|
TextTableModel(ClientSpace space)
space - The space| Method Detail |
|---|
void setSpace(ClientSpace space)
space - the ClientSpacevoid setData()
public int getRowCount()
public int getColumnCount()
public java.lang.Object getValueAt(int row,
int col)
row - the tilecol - 0 for block name, else stream + 1public java.lang.Class<?> getColumnClass(int col)
getColumnClass in interface javax.swing.table.TableModelgetColumnClass in class javax.swing.table.AbstractTableModelcol - the index of the column
public java.lang.String getColumnName(int col)
getColumnName in interface javax.swing.table.TableModelgetColumnName in class javax.swing.table.AbstractTableModelcol - The column index (i.e. stream ID + 1)
public java.lang.String format(java.lang.String str)
str - a string for the header
public java.lang.String format(java.lang.String[] strings)
strings - an array of strings to be appended into a single header
public boolean isCellEditable(int row,
int col)
isCellEditable in interface javax.swing.table.TableModelisCellEditable in class javax.swing.table.AbstractTableModelpublic void sortAllRowsByColumn(int column)
column - The column
public void sortAllRowsByColumn(int column,
boolean ascending)
column - The columnascending - Whether to sort in ascending or descending order
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||