|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.AbstractAction
org.openstreetmap.josm.actions.JosmAction
org.openstreetmap.josm.actions.ValidateAction
public class ValidateAction
The action that does the validate thing.
This action iterates through all active tests and give them the data, so that each one can test it.
Nested Class Summary | |
---|---|
(package private) static class |
ValidateAction.ValidationTask
Asynchronous task for running a collection of tests against a collection of primitives |
Field Summary | |
---|---|
private java.util.Collection<OsmPrimitive> |
lastSelection
Last selection used to validate |
private static long |
serialVersionUID
Serializable ID |
Fields inherited from class org.openstreetmap.josm.actions.JosmAction |
---|
sc |
Fields inherited from class javax.swing.AbstractAction |
---|
changeSupport, enabled |
Fields inherited from interface javax.swing.Action |
---|
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON |
Constructor Summary | |
---|---|
ValidateAction()
Constructor |
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent ev)
|
void |
destroy()
Called when the object has been destroyed. |
void |
doValidate(java.awt.event.ActionEvent ev,
boolean getSelectedItems)
Does the validation. |
void |
updateEnabledState()
Override in subclasses to update the enabled state of the action when something in the JOSM state changes, i.e. |
Methods inherited from class org.openstreetmap.josm.actions.JosmAction |
---|
getCurrentDataSet, getEditLayer, getShortcut, initEnabledState, installAdapters, setTooltip, updateEnabledState |
Methods inherited from class javax.swing.AbstractAction |
---|
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
private java.util.Collection<OsmPrimitive> lastSelection
Constructor Detail |
---|
public ValidateAction()
Method Detail |
---|
public void actionPerformed(java.awt.event.ActionEvent ev)
public void doValidate(java.awt.event.ActionEvent ev, boolean getSelectedItems)
If getSelectedItems is true, the selected items (or all items, if no one is selected) are validated. If it is false, last selected items are revalidated
ev
- The eventgetSelectedItems
- If selected or last selected items must be validatedpublic void updateEnabledState()
JosmAction
JosmAction.updateEnabledState(Collection)
to respond to changes in the collection
of selected primitives.
Default behavior is empty.
updateEnabledState
in class JosmAction
JosmAction.updateEnabledState(Collection)
,
JosmAction.initEnabledState()
public void destroy()
Destroyable
destroy
in interface Destroyable
destroy
in class JosmAction
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |