Class LayerListDialog.LayerListModel

java.lang.Object
javax.swing.table.AbstractTableModel
org.openstreetmap.josm.gui.dialogs.LayerListDialog.LayerListModel
All Implemented Interfaces:
PropertyChangeListener, Serializable, EventListener, TableModel, ReorderableModel<Layer>, LayerManager.LayerChangeListener, MainLayerManager.ActiveLayerChangeListener, ReorderableTableModel<Layer>
Enclosing class:
LayerListDialog

The layer list model. The model manages a list of layers and provides methods for moving layers up and down, for toggling their visibility, and for activating a layer. The model is a TableModel and it provides a ListSelectionModel. It expects to be configured with a DefaultListSelectionModel. The selection model is used to update the selection state of views depending on messages sent to the model. The model manages a list of LayerListDialog.LayerListModelListener which are mainly notified if the model requires views to make a specific list entry visible. It also listens to PropertyChangeEvents of every Layer it manages, in particular to the properties Layer.VISIBLE_PROP and Layer.NAME_PROP.
See Also: