Class PrefJPanel.ScListModel
- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- org.openstreetmap.josm.gui.preferences.shortcut.PrefJPanel.ScListModel
-
- All Implemented Interfaces:
Serializable
,TableModel
- Enclosing class:
- PrefJPanel
private static class PrefJPanel.ScListModel extends AbstractTableModel
-
-
Field Summary
Fields Modifier and Type Field Description private String[]
columnNames
private List<Shortcut>
data
-
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
-
-
Constructor Summary
Constructors Constructor Description ScListModel()
Constructs a newScListModel
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getColumnCount()
String
getColumnName(int col)
int
getRowCount()
Object
getValueAt(int row, int col)
-
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
-
-
-
-
Field Detail
-
columnNames
private final String[] columnNames
-
-
Constructor Detail
-
ScListModel
ScListModel()
Constructs a newScListModel
.
-
-
Method Detail
-
getColumnCount
public int getColumnCount()
-
getRowCount
public int getRowCount()
-
getColumnName
public String getColumnName(int col)
- Specified by:
getColumnName
in interfaceTableModel
- Overrides:
getColumnName
in classAbstractTableModel
-
getValueAt
public Object getValueAt(int row, int col)
-
-