Class SourceEditor.AvailableSourcesModel
- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- org.openstreetmap.josm.gui.preferences.SourceEditor.AvailableSourcesModel
-
- All Implemented Interfaces:
java.io.Serializable
,javax.swing.table.TableModel
- Enclosing class:
- SourceEditor
protected static class SourceEditor.AvailableSourcesModel extends javax.swing.table.AbstractTableModel
List model of available sources.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<ExtendedSourceEntry>
data
-
Constructor Summary
Constructors Constructor Description AvailableSourcesModel()
Constructs a newAvailableSourcesListModel
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getColumnCount()
int
getRowCount()
ExtendedSourceEntry
getValueAt(int rowIndex)
ExtendedSourceEntry
getValueAt(int rowIndex, int ignored)
void
setSources(java.util.List<ExtendedSourceEntry> sources)
Sets the source list.-
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getColumnName, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
-
-
-
-
Field Detail
-
data
private final transient java.util.List<ExtendedSourceEntry> data
-
-
Constructor Detail
-
AvailableSourcesModel
public AvailableSourcesModel()
Constructs a newAvailableSourcesListModel
-
-
Method Detail
-
setSources
public void setSources(java.util.List<ExtendedSourceEntry> sources)
Sets the source list.- Parameters:
sources
- source list
-
getValueAt
public ExtendedSourceEntry getValueAt(int rowIndex)
-
getValueAt
public ExtendedSourceEntry getValueAt(int rowIndex, int ignored)
-
getRowCount
public int getRowCount()
-
getColumnCount
public int getColumnCount()
-
-