All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sgi.sysadm.ui.taskData.BooleanComponentEnabledBinder

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

public class BooleanComponentEnabledBinder
extends TaskDataBinder
BooleanComponentEnabledBinder enables or disables an AWT Component according to a Boolean TaskData Attribute. The Attribute does not change if the Component's enable state is changed through some other mechanism.


Constructor Index

 o BooleanComponentEnabledBinder(Component)
Construct a BooleanComponentEnabledBinder.

Method Index

 o bind(TaskData, String, Component)
Bind the Attribute name in taskData to comp so that when the Attribute changes the enabled state of comp changes. Deprecated.
 o taskDataChanged(TaskDataEvent)
Called when our TaskData changes.

Constructors

 o BooleanComponentEnabledBinder
 public BooleanComponentEnabledBinder(Component comp)
Construct a BooleanComponentEnabledBinder.

Parameters:
comp - Component to manage enabled state of.

Methods

 o bind
 public static void bind(TaskData taskData,
                         String name,
                         Component comp)
Note: bind() is deprecated. Use taskData.addTaskDataBinder(name, new BooleanComponentEnabledBinder(comp))

Bind the Attribute name in taskData to comp so that when the Attribute changes the enabled state of comp changes. comp is not monitored for changes, so if comp is enabled or disabled through some other mechanism the Attribute will not be updated.

Parameters:
taskData - TaskData to bind.
name - name of Attribute to bind.
comp - Component to bind.
 o taskDataChanged
 public void taskDataChanged(TaskDataEvent event)
Called when our TaskData changes.

Parameters:
event - TaskDataEvent.
Overrides:
taskDataChanged in class TaskDataBinder

All Packages  Class Hierarchy  This Package  Previous  Next  Index