public class PresetList extends AbstractTableModel
listenerList| Constructor and Description |
|---|
PresetList(org.freehep.application.studio.Studio application) |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(TimeWindow timeWindow)
Removes the specified window from this list.
|
TimeWindow |
get(int index)
Returns preset with the specified index.
|
Class<?> |
getColumnClass(int columnIndex) |
int |
getColumnCount() |
String |
getColumnName(int column) |
List<TimeWindow> |
getRecent(int maxSize)
Returns a list of maxSize most recently used time windows ordered by name.
|
int |
getRowCount() |
Object |
getValueAt(int rowIndex,
int columnIndex) |
int |
indexOf(TimeWindow timeWindow)
Returns the index of the specified preset in this list, or -1 if this list does not contain the preset.
|
void |
insert(TimeWindow timeWindow)
Adds time window to this list, removing any identically named elements.
|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAtpublic List<TimeWindow> getRecent(int maxSize)
public TimeWindow get(int index)
public int indexOf(TimeWindow timeWindow)
public void insert(TimeWindow timeWindow)
public void delete(TimeWindow timeWindow)
public int getRowCount()
public int getColumnCount()
public Object getValueAt(int rowIndex, int columnIndex)
public Class<?> getColumnClass(int columnIndex)
getColumnClass in interface TableModelgetColumnClass in class AbstractTableModelpublic String getColumnName(int column)
getColumnName in interface TableModelgetColumnName in class AbstractTableModelCopyright © 2016 LSST. All rights reserved.