public abstract class MonitorTable extends AbstractTableModel implements AbstractMonitorView.ChannelDisplay
| Modifier and Type | Class and Description |
|---|---|
protected static class |
MonitorTable.Cell |
protected static class |
MonitorTable.Data |
static class |
MonitorTable.Event |
static interface |
MonitorTable.Listener |
| Modifier and Type | Field and Description |
|---|---|
protected ArrayList<ArrayList<MonitorTable.Cell>> |
cells |
protected MonitorTable.Event |
CELLS_EVENT |
static Color |
COLOR_BG |
static Color |
COLOR_FG |
static List<MonitorField> |
defaultCompactFields |
static List<MonitorField> |
defaultFields |
protected MonitorTable.Listener |
listener |
protected int |
nColumns |
protected int |
nRows |
protected MonitorTable.Event |
TABLE_EVENT |
listenerListaddTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getColumnName, getListeners, getTableModelListeners, removeTableModelListenerpublic static final List<MonitorField> defaultFields
public static final List<MonitorField> defaultCompactFields
public static final Color COLOR_FG
public static final Color COLOR_BG
protected int nRows
protected int nColumns
protected ArrayList<ArrayList<MonitorTable.Cell>> cells
protected MonitorTable.Listener listener
protected final MonitorTable.Event CELLS_EVENT
protected final MonitorTable.Event TABLE_EVENT
public void destroy()
public int getRowCount()
getRowCount in interface TableModelpublic int getColumnCount()
getColumnCount in interface TableModelpublic MonitorTable.Data getValueAt(int row, int column)
getValueAt in interface TableModelpublic 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 AbstractTableModelpublic void update(AbstractMonitorView.ChannelHandle item, List<String> attributes)
update in interface AbstractMonitorView.ChannelDisplayprotected List<int[]> getCells(AbstractMonitorView.ChannelHandle item, MonitorField field)
item - ChannelHandle.field - Field. If null, all cells affected by the specified item are included.protected MonitorTable.Data format(AbstractMonitorView.ChannelHandle item, MonitorField field)
protected boolean format(MonitorTable.Cell cell)
protected boolean format(MonitorTable.Cell cell, AbstractMonitorView.ChannelHandle item)
public void setListener(MonitorTable.Listener listener)
protected void fireChangeEvent(MonitorTable.Event.Reason reason)
protected void fireChangeEvent(MonitorTable.Event event)
public JTable getTable()
protected JTable makeTable()
protected void tableMouseClicked(MouseEvent evt)
public boolean showHeader()
public static List<MonitorField> translateAttributesToFields(String attribute)
public static LinkedHashSet<MonitorField> translateAttributesToFields(Collection<String> attributes)
public static List<MonitorField> trimAbsentFields(List<MonitorField> fields, Collection<AbstractMonitorView.ChannelHandle> channels, Collection<MonitorField> exclude)
public static List<MonitorField> trimAbsentFields(List<MonitorField> fields, Collection<AbstractMonitorView.ChannelHandle> channels)
public Serializable save()
null, subclasses should override
if they need to support saving/restoring their state.public void restore(Serializable storageBean)
storageBean - JavaBean that contains data describing the state of this table.Copyright © 2018 LSST. All rights reserved.