All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sgi.sysadm.ui.taskData.TaskDataBinder

java.lang.Object
   |
   +----com.sgi.sysadm.ui.taskData.TaskDataBinder

public abstract class TaskDataBinder
extends Object
implements AttrListener
TaskDataBinder is a specialization of AttrListener that adds filtering of notification by "name". TaskDataBinder also provides accessors for the TaskData being listened to and the name of the piece of TaskData being listened to. This information is typically needed in subclasses of TaskDataBinder so they know which TaskData to change when they receive notification from UI Components.


Constructor Index

 o TaskDataBinder()

Method Index

 o attrAdded(AttrEvent)
Called whenever an Attribute in TaskData is added.
 o attrChanged(AttrEvent)
Called whenever an Attribute in TaskData changes.
 o attrRemoved(AttrEvent)
Called whenever an Attribute in TaskData is removed.
 o getName()
Accessor for the name of the piece of TaskData we're listening to.
 o getTaskData()
Accessor for the TaskData we're listening to.
 o taskDataChanged(TaskDataEvent)
Called whenever the Attribute whose key matches our name changes.

Constructors

 o TaskDataBinder
 public TaskDataBinder()

Methods

 o attrChanged
 public void attrChanged(AttrEvent event)
Called whenever an Attribute in TaskData changes. Call taskDataChanged if the key of the Attribute that changed matches our name.

Parameters:
event - specifies which Attribute changed.
See Also:
getName
 o attrAdded
 public void attrAdded(AttrEvent event)
Called whenever an Attribute in TaskData is added. Calls Log.fatal when notified that our named Attribute is added because you must bind to pre-existing task data.

Parameters:
event - specifies which Attribute changed.
See Also:
fatal
 o attrRemoved
 public void attrRemoved(AttrEvent event)
Called whenever an Attribute in TaskData is removed. Calls Log.fatal when notified that our named Attribute has been removed because you must not remove a piece of task data that you're bound to.

Parameters:
event - specifies which Attribute changed.
See Also:
fatal
 o taskDataChanged
 public abstract void taskDataChanged(TaskDataEvent event)
Called whenever the Attribute whose key matches our name changes.

Parameters:
event - specifies which Attribute changed.
See Also:
getName
 o getTaskData
 protected TaskData getTaskData()
Accessor for the TaskData we're listening to.

Returns:
TaskData we're listening to.
 o getName
 protected String getName()
Accessor for the name of the piece of TaskData we're listening to.

Returns:
name of the piece of TaskData we're listening to.

All Packages  Class Hierarchy  This Package  Previous  Next  Index