

Definition at line 30 of file AbstractAppModel.java.
Public Member Functions | |
| void | actionPerformed (ActionEvent evt) |
| A method to perform an processing of actions received by the application controller. | |
| synchronized void | setController (AppModelEventListener controller) throws TooManyListenersException |
| Adds the controller as a listener of this model. | |
| String | toString () |
| Returns a string representation of this object. | |
Protected Member Functions | |
| void | notifyController (ActionEvent event) |
| Issues events from this application model to the application controller. | |
| abstract ActionEvent | processEvent (ActionEvent evt) |
| The method that processes incoming events. | |
Protected Attributes | |
| transient AppModelEventListener | controller = null |
| The controller listening to this application model. | |
|
|
A method to perform an processing of actions received by the application controller.
Definition at line 41 of file AbstractAppModel.java. References AbstractAppModel.notifyController(), and AbstractAppModel.processEvent(). 00041 {
00042 ActionEvent response = processEvent(evt);
00043 if(response != null){notifyController(response);}
00044 }
|
|
|
Issues events from this application model to the application controller.
Definition at line 88 of file AbstractAppModel.java. References AbstractAppModel.controller. Referenced by AbstractAppModel.actionPerformed(). 00088 {
00089 if(controller == null){return;}
00090 controller.actionPerformed(event);
00091 }
|
|
|
The method that processes incoming events.
Referenced by AbstractAppModel.actionPerformed(). |
|
|
Adds the controller as a listener of this model.
Definition at line 54 of file AbstractAppModel.java. References AbstractAppModel.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 AbstractAppModel.java. 00068 {return super.toString();}
|
|
|
The controller listening to this application model.
Definition at line 33 of file AbstractAppModel.java. Referenced by AbstractAppModel.notifyController(), and AbstractAppModel.setController(). |
1.4.2