All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sgi.sysadm.ui.taskData.ReasonItemFinderBinder

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

public class ReasonItemFinderBinder
extends TaskDataBinder
implements ItemFinderListener
ReasonItemFinderBinder keeps a piece of String TaskData synchronized with an ItemFinder. When the ItemFinder changes then ReasonItemFinderBinder changes the TaskData to reflect the reason that the item was rejected by the filter. The task data will be set to the empty string if there is no reason given. If multiple reasons for failure are returned from the ItemFinder, only the first will be used.


Constructor Index

 o ReasonItemFinderBinder(ItemFinder, String, String)
Construct a ReasonItemFinderBinder.

Method Index

 o bind(TaskData, String, ItemFinder, String, String)
Bind the Attribute name in taskData to finder, so that when finder changes the Attribute is updated and vice versa. Deprecated.
 o itemFinderStateChanged(ItemFinderEvent)
Called when our ItemView changes.
 o taskDataChanged(TaskDataEvent)
Called when our TaskData Attribute changes.

Constructors

 o ReasonItemFinderBinder
 public ReasonItemFinderBinder(ItemFinder finder,
                               String noSuchItem,
                               String noItemChosen)
Construct a ReasonItemFinderBinder.

Parameters:
finder - ItemFinder to keep synchronized.
noSuchItem - The string to put into the task data if the reason returned by the ItemFinder is NO_SUCH_ITEM
noItemChosen - The string to put into the task data if the reason returned by the ItemFinder in NO_ITEM_CHOSEN
See Also:
ItemFinderState

Methods

 o bind
 public static void bind(TaskData taskData,
                         String name,
                         ItemFinder finder,
                         String noSuchItem,
                         String noItemChosen)
Note: bind() is deprecated. Use taskData.addTaskDataBinder(name, new ReasonItemFinderBinder(finder, noSuchItem, noItemChosen));

Bind the Attribute name in taskData to finder, so that when finder changes the Attribute is updated and vice versa.

Parameters:
taskData - TaskData to bind.
name - name of Attribute to bind.
finder - the ItemFinder to bind.
noSuchItem - The string to put into the task data if the reason returned by the ItemFinder is NO_SUCH_ITEM
noItemChosen - The string to put into the task data if the reason returned by the ItemFinder in NO_ITEM_CHOSEN
See Also:
ItemFinderState
 o taskDataChanged
 public void taskDataChanged(TaskDataEvent event)
Called when our TaskData Attribute changes. Update our ItemFinder. This method does nothing

Parameters:
event - The TaskDataEvent
Overrides:
taskDataChanged in class TaskDataBinder
 o itemFinderStateChanged
 public void itemFinderStateChanged(ItemFinderEvent event)
Called when our ItemView changes. Update our TaskData Attribute.

Parameters:
event - The ItemFinderEvent

All Packages  Class Hierarchy  This Package  Previous  Next  Index