Package org.geotools.swing.action
Class SafeAction
Object
AbstractAction
SafeAction
- All Implemented Interfaces:
- ActionListener,- Serializable,- Cloneable,- EventListener,- Action
A safe version of AbstractAction that will log any problems encountered.
 
This is not generally a good practice - we are just using it as an excuse to not mess up code examples with exception handling code (gasp!). TODO: provide a background Runnable...
- See Also:
- 
Field SummaryFields inherited from class AbstractActionchangeSupport, enabledFields inherited from interface ActionACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionabstract voidSub-classes (usually anonymous) must override this method instead of the usual ActionListener.actionPerformed(java.awt.event.ActionEvent)voidCalls the action(java.awt.event.ActionEvent) methodMethods inherited from class AbstractActionaddPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
- 
Constructor Details- 
SafeActionConstructor- Parameters:
- name- name for the associated control
 
 
- 
- 
Method Details- 
actionSub-classes (usually anonymous) must override this method instead of the usual ActionListener.actionPerformed(java.awt.event.ActionEvent)- Parameters:
- e- the action event
- Throws:
- Throwable- on error
 
- 
actionPerformedCalls the action(java.awt.event.ActionEvent) method- Parameters:
- e- the action event
 
 
-