public class InfoWebAction extends AbstractInfoAction
JosmAction.ActiveLayerChangeAdapter, JosmAction.LayerChangeAdapter, JosmAction.SelectionChangeAdapter
sc
Constructor and Description |
---|
InfoWebAction()
Constructs a new
InfoWebAction . |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
createInfoUrl(java.lang.Object infoObject) |
void |
noteSelectionChanged()
Called when the note selection has changed.
|
protected void |
updateEnabledState()
Override in subclasses to update the enabled state of the action when
something in the JOSM state changes, i.e.
|
protected void |
updateEnabledState(java.util.Collection<? extends OsmPrimitive> selection)
Override in subclasses to update the enabled state of the action if the
collection of selected primitives changes.
|
private void |
updateEnabledStateWithNotes() |
actionPerformed, confirmLaunchMultiple, launchInfoBrowser, launchInfoBrowsersForSelectedPrimitivesAndNote
checkAndConfirmOutlyingOperation, destroy, getLayerManager, getShortcut, initEnabledState, installAdapters, listenToLayerChange, listenToSelectionChange, setTooltip, updateEnabledStateOnCurrentSelection, updateEnabledStateOnCurrentSelection, updateEnabledStateOnModifiableSelection, waitFuture
public InfoWebAction()
InfoWebAction
.protected java.lang.String createInfoUrl(java.lang.Object infoObject)
createInfoUrl
in class AbstractInfoAction
protected void updateEnabledState()
JosmAction
JosmAction.updateEnabledState(Collection)
to respond to changes in the collection
of selected primitives.
Default behavior is empty.updateEnabledState
in class AbstractInfoAction
JosmAction.updateEnabledState(Collection)
,
JosmAction.initEnabledState()
,
JosmAction.listenToLayerChange()
protected void updateEnabledState(java.util.Collection<? extends OsmPrimitive> selection)
JosmAction
updateEnabledState
in class AbstractInfoAction
selection
- the collection of selected primitives; may be empty, but not nullJosmAction.updateEnabledState()
,
JosmAction.initEnabledState()
,
JosmAction.listenToSelectionChange()
private void updateEnabledStateWithNotes()
public final void noteSelectionChanged()