Class MapPaintDialog.StylesModel
java.lang.Object
javax.swing.table.AbstractTableModel
org.openstreetmap.josm.gui.dialogs.MapPaintDialog.StylesModel
- All Implemented Interfaces:
Serializable,TableModel,MapPaintStyles.MapPaintStylesUpdateListener
- Enclosing class:
- MapPaintDialog
protected class MapPaintDialog.StylesModel
extends AbstractTableModel
implements MapPaintStyles.MapPaintStylesUpdateListener
- See Also:
-
Field Summary
FieldsFields inherited from class javax.swing.table.AbstractTableModel
listenerList -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidMake sure the first of the selected entry is visible in the views of this model.Class<?>getColumnClass(int column) intprivate StyleSourcegetRow(int i) intgetValueAt(int row, int column) booleanisCellEditable(int row, int column) voidmapPaintStyleEntryUpdated(int idx) Called whenever a single style source entry was changed.voidCalled on any style source changes that are not handled byMapPaintStyles.MapPaintStylesUpdateListener.mapPaintStyleEntryUpdated(int)voidsetValueAt(Object aValue, int row, int column) Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnName, getListeners, getTableModelListeners, removeTableModelListener
-
Field Details
-
columnClasses
-
data
-
-
Constructor Details
-
StylesModel
public StylesModel()Constructs a newStylesModel.
-
-
Method Details
-
getRow
-
getColumnCount
- Specified by:
getColumnCountin interfaceTableModel
-
getRowCount
- Specified by:
getRowCountin interfaceTableModel
-
getValueAt
- Specified by:
getValueAtin interfaceTableModel
-
isCellEditable
- Specified by:
isCellEditablein interfaceTableModel- Overrides:
isCellEditablein classAbstractTableModel
-
getColumnClass
- Specified by:
getColumnClassin interfaceTableModel- Overrides:
getColumnClassin classAbstractTableModel
-
setValueAt
- Specified by:
setValueAtin interfaceTableModel- Overrides:
setValueAtin classAbstractTableModel
-
ensureSelectedIsVisible
Make sure the first of the selected entry is visible in the views of this model. -
mapPaintStylesUpdated
Description copied from interface:MapPaintStyles.MapPaintStylesUpdateListenerCalled on any style source changes that are not handled byMapPaintStyles.MapPaintStylesUpdateListener.mapPaintStyleEntryUpdated(int)- Specified by:
mapPaintStylesUpdatedin interfaceMapPaintStyles.MapPaintStylesUpdateListener
-
mapPaintStyleEntryUpdated
Description copied from interface:MapPaintStyles.MapPaintStylesUpdateListenerCalled whenever a single style source entry was changed.- Specified by:
mapPaintStyleEntryUpdatedin interfaceMapPaintStyles.MapPaintStylesUpdateListener- Parameters:
idx- The index of the entry.
-