

Definition at line 30 of file AbstractAppView.java.
Public Member Functions | |
| void | actionPerformed (ActionEvent evt) |
| A method that dispatches all events received by this view. | |
| synchronized void | setController (AppViewEventListener controller) throws TooManyListenersException |
| Registers ActionListener to receive events. | |
| String | toString () |
| Returns a string representation of this object. | |
Protected Member Functions | |
| void | notifyController (ActionEvent event) |
| Notifies the registered listener about the event. | |
| abstract ActionEvent | processEvent (ActionEvent evt) |
| The method that processes incoming events. | |
Protected Attributes | |
| transient AppViewEventListener | controller = null |
| The controller that will listen to this application view. | |
|
|
A method that dispatches all events received by this view. This method should be overridden by subclasses.
Definition at line 41 of file AbstractAppView.java. References AbstractAppView.notifyController(), and AbstractAppView.processEvent(). 00041 {
00042 ActionEvent response = processEvent(evt);
00043 if(response != null){notifyController(response);}
00044 }
|
|
|
Notifies the registered listener about the event.
Definition at line 88 of file AbstractAppView.java. References AbstractAppView.controller. Referenced by AbstractAppView.actionPerformed(). 00088 {
00089 if(controller == null){return;}
00090 controller.actionPerformed(event);
00091 }
|
|
|
The method that processes incoming events.
Referenced by AbstractAppView.actionPerformed(). |
|
|
Registers ActionListener to receive events.
Definition at line 54 of file AbstractAppView.java. References AbstractAppView.controller. 00055 {
00056 if(controller == null){this.controller = null;}
00057 else {
00058 if(this.controller != null){throw new TooManyListenersException();}
00059 this.controller = controller;
00060 }
00061 }
|
|
|
Returns a string representation of this object.
Definition at line 68 of file AbstractAppView.java. 00068 {return super.toString();}
|
|
|
The controller that will listen to this application view.
Definition at line 33 of file AbstractAppView.java. Referenced by AbstractAppView.notifyController(), and AbstractAppView.setController(). |
1.4.2