public class JumpToAction extends JosmAction
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
JumpToAction.JumpToPositionDialog |
(package private) class |
JumpToAction.OsmLonLatListener |
(package private) class |
JumpToAction.OsmURLListener |
JosmAction.ActiveLayerChangeAdapter, JosmAction.LayerChangeAdapter, JosmAction.SelectionChangeAdapter| Modifier and Type | Field and Description |
|---|---|
private JosmTextField |
lat |
private JosmTextField |
lon |
private JosmTextField |
url |
private JosmTextField |
zm |
sc| Constructor and Description |
|---|
JumpToAction()
Constructs a new
JumpToAction. |
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e) |
protected void |
installAdapters()
Installs the listeners to this action.
|
private void |
parseURL() |
private void |
setBounds(Bounds b) |
void |
showJumpToDialog()
Displays the "Jump to" dialog.
|
protected void |
updateEnabledState()
Override in subclasses to update the enabled state of the action when
something in the JOSM state changes, i.e.
|
private void |
updateUrl(boolean force) |
checkAndConfirmOutlyingOperation, destroy, getLayerManager, getShortcut, initEnabledState, listenToLayerChange, listenToSelectionChange, setHelpId, setTooltip, updateEnabledState, updateEnabledStateOnCurrentSelection, updateEnabledStateOnCurrentSelection, updateEnabledStateOnModifiableSelection, waitFutureprivate final JosmTextField url
private final JosmTextField lat
private final JosmTextField lon
private final JosmTextField zm
public JumpToAction()
JumpToAction.public void showJumpToDialog()
private void parseURL()
private void updateUrl(boolean force)
public void actionPerformed(java.awt.event.ActionEvent e)
protected void updateEnabledState()
JosmActionJosmAction.updateEnabledState(Collection) to respond to changes in the collection
of selected primitives.
Default behavior is empty.updateEnabledState in class JosmActionJosmAction.updateEnabledState(Collection),
JosmAction.initEnabledState(),
JosmAction.listenToLayerChange()protected void installAdapters()
JosmActionThis should either never be called or only called in the constructor of this action.
All registered adapters should be removed in JosmAction.destroy()
installAdapters in class JosmAction