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

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

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 NotificationGroupGroupState property change on behalf of its view.

When you construct a NotificationGroupPropertyActionListener, you pass the view, notifications, 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 NotificationGroupStates. 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

 NotificationGroupPropertyActionListener (CALOComponent view, List< Notification > nl, NotificationGroupState.NotificationGroupStateProperty property)
 Create a new NotificationGroupPropertyActionListener.
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

 NotificationGroupStateProperty
 The property that changed.

Private Attributes

List< Notificationnotifications
 The notification associated with this change.
CALOComponent view
 The view from which this change originated.


Constructor & Destructor Documentation

edu.cmu.hcii.calo.view.notification.NotificationGroupPropertyActionListener.NotificationGroupPropertyActionListener ( CALOComponent  view,
List< Notification nl,
NotificationGroupState.NotificationGroupStateProperty  property 
)

Create a new NotificationGroupPropertyActionListener.


Member Function Documentation

void edu.cmu.hcii.calo.view.notification.NotificationGroupPropertyActionListener.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.NotificationGroupPropertyActionListener.getNewValue (  )  [pure virtual]

A getter for newValue.

Returns:
newValue

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

A getter for oldValue.

Returns:
oldValue


Member Data Documentation

List<Notification> edu.cmu.hcii.calo.view.notification.NotificationGroupPropertyActionListener.notifications [private]

The notification associated with this change.

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

The view from which this change originated.


Property Documentation

edu.cmu.hcii.calo.view.notification.NotificationGroupPropertyActionListener.NotificationGroupStateProperty [private]

The property that changed.


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