public abstract class MonitorTable extends AbstractTableModel
| Modifier and Type | Class and Description |
|---|---|
protected static class |
MonitorTable.Cell |
protected static class |
MonitorTable.Data |
static interface |
MonitorTable.Item |
| Modifier and Type | Field and Description |
|---|---|
protected MonitorTable.Cell[][] |
cells |
static Color |
COLOR_BG |
static Color |
COLOR_FG |
protected int |
nColumns |
protected int |
nRows |
listenerList| Modifier and Type | Method and Description |
|---|---|
protected boolean |
format(MonitorTable.Cell cell) |
protected MonitorTable.Data |
format(MonitorTable.Item item,
MonitorField field) |
protected List<int[]> |
getCells(MonitorTable.Item item,
MonitorField field)
Returns indices of all cells whose content is affected by the specified item and field.
|
int |
getColumnCount() |
protected List<MonitorField> |
getField(String attribute) |
int |
getRowCount() |
MonitorTable.Data |
getValueAt(int row,
int column) |
boolean |
isCellEditable(int row,
int column) |
JTable |
makeTable() |
void |
setValueAt(Object aValue,
int row,
int column) |
protected void |
update(MonitorTable.Item item,
List<String> attributes) |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getColumnName, getListeners, getTableModelListeners, removeTableModelListenerpublic static final Color COLOR_FG
public static final Color COLOR_BG
protected int nRows
protected int nColumns
protected MonitorTable.Cell[][] cells
public int getRowCount()
public int getColumnCount()
public MonitorTable.Data getValueAt(int row, int column)
public boolean isCellEditable(int row,
int column)
isCellEditable in interface TableModelisCellEditable in class AbstractTableModelpublic void setValueAt(Object aValue, int row, int column)
setValueAt in interface TableModelsetValueAt in class AbstractTableModelprotected void update(MonitorTable.Item item, List<String> attributes)
protected List<int[]> getCells(MonitorTable.Item item, MonitorField field)
item - Item.field - Field. If null, all cells affected by the specified item are included.protected List<MonitorField> getField(String attribute)
protected MonitorTable.Data format(MonitorTable.Item item, MonitorField field)
protected boolean format(MonitorTable.Cell cell)
public JTable makeTable()
Copyright © 2017 LSST. All rights reserved.