All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sgi.sysadm.ui.taskData.StringComponentEnabledBinder

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

public class StringComponentEnabledBinder
extends TaskDataBinder
StringComponentEnabledBinder disables or enables a component depending on whether a taskData attribute is the empty string or not, respectively.


Constructor Index

 o StringComponentEnabledBinder(Component)
Construct a StringComponentEnabledBinder.

Method Index

 o bind(TaskData, String, Component)
Bind component to the Attribute name in taskData so that when the Attribute changes the component is enabled/disabled. Deprecated.
 o taskDataChanged(TaskDataEvent)
Called when our task data changes.

Constructors

 o StringComponentEnabledBinder
 public StringComponentEnabledBinder(Component component)
Construct a StringComponentEnabledBinder.

Parameters:
component - Component to be enabled/disabled.

Methods

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

Bind component to the Attribute name in taskData so that when the Attribute changes the component is enabled/disabled.

Parameters:
taskData - TaskData to bind.
name - Attribute to bind.
Component - component to enable or disable.
 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 enable the component. Else, disable it.

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

All Packages  Class Hierarchy  This Package  Previous  Next  Index