abstract class ChangesetContentPanel.SelectionBasedAction extends javax.swing.AbstractAction implements javax.swing.event.ListSelectionListener, MainLayerManager.ActiveLayerChangeListener
Constructor and Description |
---|
SelectionBasedAction() |
Modifier and Type | Method and Description |
---|---|
void |
activeOrEditLayerChanged(MainLayerManager.ActiveLayerChangeEvent e)
Called whenever the active or edit layer changed.
|
protected java.util.Set<OsmPrimitive> |
getTarget() |
void |
updateEnabledState() |
void |
valueChanged(javax.swing.event.ListSelectionEvent e) |
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
SelectionBasedAction()
protected java.util.Set<OsmPrimitive> getTarget()
public final void updateEnabledState()
public void valueChanged(javax.swing.event.ListSelectionEvent e)
valueChanged
in interface javax.swing.event.ListSelectionListener
public void activeOrEditLayerChanged(MainLayerManager.ActiveLayerChangeEvent e)
MainLayerManager.ActiveLayerChangeListener
You can be sure that this layer is still contained in this set.
Listeners are called in the EDT thread and you can manipulate the layer manager in the current thread.
activeOrEditLayerChanged
in interface MainLayerManager.ActiveLayerChangeListener
e
- The change event.