All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sgi.sysadm.ui.taskData.AssociationItemFinderBinder

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

public class AssociationItemFinderBinder
extends TaskDataBinder
AssociationItemFinderBinder sets the association used to populate an item finder based on whether a taskData attribute is the empty string or not. This attribute is the parent selector for the association.


Constructor Index

 o AssociationItemFinderBinder(ItemFinder, String, String, HostContext)
Construct a AssociationItemFinderBinder.

Method Index

 o bind(TaskData, String, String, String, HostContext, ItemFinder)
Bind itemfinder to the Attribute parentSelectorKey in taskData so that when the Attribute changes an association is updated. Deprecated.
 o taskDataChanged(TaskDataEvent)
Called when our task data changes.

Constructors

 o AssociationItemFinderBinder
 public AssociationItemFinderBinder(ItemFinder itemFinder,
                                    String parent,
                                    String child,
                                    HostContext hc)
Construct a AssociationItemFinderBinder.

Parameters:
itemfinder - ItemFinder to keep consistent with task data.
parent - String name of the Parent Category needed for the association.
child - String name of the Child Category needed for the association.
hc - HostContext is needed to get the association.

Methods

 o bind
 public static void bind(TaskData taskData,
                         String parentSelectorKey,
                         String parent,
                         String child,
                         HostContext hc,
                         ItemFinder itemFinder)
Note: bind() is deprecated. Use taskData.addTaskDataBinder(parentSelectorKey, new AssociationItemFinderBinder(itemFinder, parent, child, hc))

Bind itemfinder to the Attribute parentSelectorKey in taskData so that when the Attribute changes an association is updated.

Parameters:
taskData - TaskData to bind.
parentSelectorKey - Name of Attribute to bind.
parent - String name of the Parent Category needed for the association.
child - String name of the Child Category needed for the association.
itemFinder - ItemFinder
 o taskDataChanged
 public void taskDataChanged(TaskDataEvent event)
Called when our task data changes. If the attribute that we have bound to in taskData is not the empty string, then set up a new association and send it to itemFinder. Else, clear itemfinder category.

Parameters:
event - The taskData changed event
Overrides:
taskDataChanged in class TaskDataBinder

All Packages  Class Hierarchy  This Package  Previous  Next  Index