Main Page | Packages | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

com.arcle.rmt.j2se.swing.ui.ExceptionSafeActionWrapper Class Reference

An Action decorator which wraps its actionPerformed() method with an exception-handling construct. More...

Inheritance diagram for com.arcle.rmt.j2se.swing.ui.ExceptionSafeActionWrapper:

com.arcle.rmt.j2se.swing.ui.ComponentOwnedActionWrapper com.arcle.rmt.j2se.swing.ui.ActionWrapper List of all members.

Public Member Functions

 ExceptionSafeActionWrapper (Component owner, Action wrapped)
 Constructs the wrapper.

void actionPerformed (ActionEvent e)
 Forwards the call to the wrapped object.


Detailed Description

An Action decorator which wraps its actionPerformed() method with an exception-handling construct.

When the wrapped actionPerformed() method throws an exception, a JOptionPane dialog is displayed showing the caught exception's stack trace.

Author:
Sasmito Adibowo
Version:
Id
ExceptionSafeActionWrapper.java,v 1.4 2003/05/15 19:43:46 adib Exp

Definition at line 75 of file ExceptionSafeActionWrapper.java.


Constructor & Destructor Documentation

com.arcle.rmt.j2se.swing.ui.ExceptionSafeActionWrapper.ExceptionSafeActionWrapper Component  owner,
Action  wrapped
 

Constructs the wrapper.

Parameters:
owner the component that owns this object.
wrapped the decorated Action object.

Definition at line 81 of file ExceptionSafeActionWrapper.java.


Member Function Documentation

void com.arcle.rmt.j2se.swing.ui.ExceptionSafeActionWrapper.actionPerformed ActionEvent  e  ) 
 

Forwards the call to the wrapped object.

When the actionPerformed method of the wrapped object throws an exception, the exception is displayed in a dialog box. The caught exception will not be seen by the callers of this method.

See also:
javax#swing#Action#actionPerformed

Reimplemented from com.arcle.rmt.j2se.swing.ui.ActionWrapper.

Definition at line 93 of file ExceptionSafeActionWrapper.java.

References com.arcle.rmt.j2se.swing.ui.ComponentOwnedActionWrapper.getOwnerComponent(), and com.arcle.rmt.j2se.swing.ui.ActionWrapper.getValue().


The documentation for this class was generated from the following file:
Generated on Fri Jun 18 19:53:34 2004 for Arcle Rambutan by doxygen 1.3.5