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.
-
AssociationItemFinderBinder(ItemFinder, String, String, HostContext)
- Construct a AssociationItemFinderBinder.
-
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.
-
taskDataChanged(TaskDataEvent)
- Called when our task data changes.
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.
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
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