public class PresetList extends AbstractTableModel
listenerList| Constructor and Description |
|---|
PresetList(org.freehep.application.studio.Studio application) |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(DataType type)
Removes the specified window from this list.
|
DataType |
get(int index)
Returns preset with the specified index.
|
DataType |
get(String name)
Returns time window with the specified name.
|
Class<?> |
getColumnClass(int columnIndex) |
int |
getColumnCount() |
String |
getColumnName(int column) |
List<DataType> |
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(DataType type)
Returns the index of the specified preset in this list, or -1 if this list does not contain the preset.
|
DataType |
insert(DataType type)
Adds
type to this list. |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAtpublic List<DataType> getRecent(int maxSize)
maxSize most recently used time windows ordered by name.public DataType get(int index)
public int indexOf(DataType type)
public DataType get(String name)
name - Name of the data type.null if this preset list does not contain a type with the specified name.public DataType insert(DataType type)
type to this list. If this list already contains either
identical or otherwise identical but persistent type, the list remains
unchanged and the existing type is returned. If this list contains
identically named but different type, that type is removed.type - Type to add.public void delete(DataType type)
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 © 2024 LSST. All rights reserved.