edu.cmu.hcii.calo.view.notification.NotificationPropertyActionListener Class Reference

Collaboration diagram for edu.cmu.hcii.calo.view.notification.NotificationPropertyActionListener:

Collaboration graph
[legend]
List of all members.

Detailed Description

An ActionListener subclass that will construct NotificationGroupStates for some property of the old and new states of a notification and fire a NotificationState property change on behalf of its view.

When you construct a NotificationPropertyActionListener, you pass the view, notification, and property that it will use to fire property change events. When the listener detects an action from the component to which it is listening, it will call getOldValue() and getNewValue() to determine what values to put in the NotificationStates. Then it will call CALOComponent.firePropertyChange(String, Object, Object) in the view to automatically fire the property change on its behalf.

Author:
Will Haines


Public Member Functions

 NotificationPropertyActionListener (CALOComponent view, Notification n, NotificationState.NotificationStateProperty property)
 Create a new NotificationPropertyActionListener.
void actionPerformed (ActionEvent e)
 Notify others about the action being performed.
abstract Object getNewValue ()
 A getter for newValue.
abstract Object getOldValue ()
 A getter for oldValue.

Properties

 NotificationStateProperty
 The property that changed.

Private Attributes

Notification notification
 The notification associated with this change.
CALOComponent view
 The view from which this change originated.


Constructor & Destructor Documentation

edu.cmu.hcii.calo.view.notification.NotificationPropertyActionListener.NotificationPropertyActionListener ( CALOComponent  view,
Notification  n,
NotificationState.NotificationStateProperty  property 
)

Create a new NotificationPropertyActionListener.

Parameters:
view the view from which the change originated
n the notification associated with the change
property the property that changed


Member Function Documentation

void edu.cmu.hcii.calo.view.notification.NotificationPropertyActionListener.actionPerformed ( ActionEvent  e  ) 

Notify others about the action being performed.

Parameters:
e the event to forward
See also:
java.awt.event.ActionListener.actionPerformed(java.awt.event.ActionEvent)

abstract Object edu.cmu.hcii.calo.view.notification.NotificationPropertyActionListener.getNewValue (  )  [pure virtual]

A getter for newValue.

Returns:
newValue

abstract Object edu.cmu.hcii.calo.view.notification.NotificationPropertyActionListener.getOldValue (  )  [pure virtual]

A getter for oldValue.

Returns:
oldValue


Member Data Documentation

Notification edu.cmu.hcii.calo.view.notification.NotificationPropertyActionListener.notification [private]

The notification associated with this change.

CALOComponent edu.cmu.hcii.calo.view.notification.NotificationPropertyActionListener.view [private]

The view from which this change originated.


Property Documentation

edu.cmu.hcii.calo.view.notification.NotificationPropertyActionListener.NotificationStateProperty [private]

The property that changed.


The documentation for this class was generated from the following file:
Generated on Mon Aug 13 15:06:25 2007 for CALO by  doxygen 1.5.2