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.
-
StringComponentEnabledBinder(Component)
- Construct a StringComponentEnabledBinder.
-
bind(TaskData, String, Component)
- Bind component to the Attribute
name in taskData so that when
the Attribute changes the component is enabled/disabled.
Deprecated.
-
taskDataChanged(TaskDataEvent)
- Called when our task data changes.
StringComponentEnabledBinder
public StringComponentEnabledBinder(Component component)
- Construct a StringComponentEnabledBinder.
- Parameters:
- component - Component to be enabled/disabled.
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.
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