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.
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< Notification > | notifications |
The notification associated with this change. | |
CALOComponent | view |
The view from which this change originated. |
edu.cmu.hcii.calo.view.notification.NotificationGroupPropertyActionListener.NotificationGroupPropertyActionListener | ( | CALOComponent | view, | |
List< Notification > | nl, | |||
NotificationGroupState.NotificationGroupStateProperty | property | |||
) |
Create a new NotificationGroupPropertyActionListener.
void edu.cmu.hcii.calo.view.notification.NotificationGroupPropertyActionListener.actionPerformed | ( | ActionEvent | e | ) |
Notify others about the action being performed.
e | the event to forward |
abstract Object edu.cmu.hcii.calo.view.notification.NotificationGroupPropertyActionListener.getNewValue | ( | ) | [pure virtual] |
A getter for newValue.
abstract Object edu.cmu.hcii.calo.view.notification.NotificationGroupPropertyActionListener.getOldValue | ( | ) | [pure virtual] |
A getter for oldValue.
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.
edu.cmu.hcii.calo.view.notification.NotificationGroupPropertyActionListener.NotificationGroupStateProperty [private] |
The property that changed.