scsolver::ActionListener Class Reference

#include <baselistener.hxx>

Inheritance diagram for scsolver::ActionListener:

Inheritance graph
[legend]
Collaboration diagram for scsolver::ActionListener:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 ActionListener (BaseDialog *pDlg)
 ActionListener (BaseDialog *pDlg, ActionObject *pAction)
virtual ~ActionListener () throw ()
virtual void SAL_CALL disposing (const lang::EventObject &e) throw ( RuntimeException )
virtual void SAL_CALL actionPerformed (const awt::ActionEvent &e) throw ( RuntimeException )

Private Attributes

ActionObjectm_pAction


Detailed Description

Generic action listener class. You can either derive a child class from it, or directly instantiate it with an instance of ActionObject which defines the action to be performed. If an instance of ActionObject is passed as a pointer, the memory of that instance must be managed by the calling function.

Definition at line 100 of file baselistener.hxx.


Constructor & Destructor Documentation

scsolver::ActionListener::ActionListener ( BaseDialog pDlg  ) 

Definition at line 56 of file baselistener.cxx.

scsolver::ActionListener::ActionListener ( BaseDialog pDlg,
ActionObject pAction 
)

Definition at line 62 of file baselistener.cxx.

scsolver::ActionListener::~ActionListener (  )  throw () [virtual]

Definition at line 67 of file baselistener.cxx.


Member Function Documentation

void SAL_CALL scsolver::ActionListener::disposing ( const lang::EventObject &  e  )  throw ( RuntimeException ) [virtual]

Reimplemented in scsolver::RngBtnListener, scsolver::SolveBtnListener, scsolver::CloseBtnListener, scsolver::SaveBtnListener, scsolver::LoadBtnListener, scsolver::ResetBtnListener, scsolver::OptionBtnListener, scsolver::ConstEditBtnListener, and scsolver::OKCancelBtnListener.

Definition at line 71 of file baselistener.cxx.

void SAL_CALL scsolver::ActionListener::actionPerformed ( const awt::ActionEvent &  e  )  throw ( RuntimeException ) [virtual]

Reimplemented in scsolver::RngBtnListener, scsolver::SolveBtnListener, scsolver::CloseBtnListener, scsolver::SaveBtnListener, scsolver::LoadBtnListener, scsolver::ResetBtnListener, scsolver::OptionBtnListener, scsolver::ConstEditBtnListener, and scsolver::OKCancelBtnListener.

Definition at line 76 of file baselistener.cxx.

References scsolver::ActionObject::execute(), scsolver::Listener::getDialog(), and m_pAction.


Member Data Documentation

ActionObject* scsolver::ActionListener::m_pAction [private]

Definition at line 111 of file baselistener.hxx.

Referenced by actionPerformed().


The documentation for this class was generated from the following files:
Generated on Mon Jul 28 09:13:45 2008 for scsolver by  doxygen 1.5.3