|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ohrasys.app.AbstractAppView
public abstract class AbstractAppView
A basic application view which should be subclassed and specialized by specific application implementations.
| Field Summary | |
|---|---|
protected AppViewEventListener |
controller
The controller that will listen to this application view |
| Constructor Summary | |
|---|---|
AbstractAppView()
|
|
| Method Summary | |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent evt)
A method that dispatches all events received by this view. |
protected void |
notifyController(java.awt.event.ActionEvent event)
Notifies the registered listener about the event. |
protected abstract java.awt.event.ActionEvent |
processEvent(java.awt.event.ActionEvent evt)
The method that processes incoming events. |
void |
setController(AppViewEventListener controller)
Registers ActionListener to receive events. |
java.lang.String |
toString()
Returns a string representation of this object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected transient AppViewEventListener controller
| Constructor Detail |
|---|
public AbstractAppView()
| Method Detail |
|---|
public void actionPerformed(java.awt.event.ActionEvent evt)
actionPerformed in interface java.awt.event.ActionListenerevt - The event to process.
public void setController(AppViewEventListener controller)
throws java.util.TooManyListenersException
controller - The listener to register.
java.util.TooManyListenersException - If more than one controller is
associated with this view.public java.lang.String toString()
toString in class java.lang.Objectprotected abstract java.awt.event.ActionEvent processEvent(java.awt.event.ActionEvent evt)
evt - The incoming event from the controller
protected void notifyController(java.awt.event.ActionEvent event)
event - The event to be fired
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||