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, setEnabledSelectionBasedAction()
protected java.util.Set<OsmPrimitive> getTarget()
public final void updateEnabledState()
public void valueChanged(javax.swing.event.ListSelectionEvent e)
valueChanged in interface javax.swing.event.ListSelectionListenerpublic void activeOrEditLayerChanged(MainLayerManager.ActiveLayerChangeEvent e)
MainLayerManager.ActiveLayerChangeListenerYou 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.ActiveLayerChangeListenere - The change event.