All Packages Class Hierarchy This Package Previous Next Index
Class com.sgi.sysadm.ui.taskData.StringJLabelBinder
java.lang.Object
|
+----com.sgi.sysadm.ui.taskData.TaskDataBinder
|
+----com.sgi.sysadm.ui.taskData.StringJLabelBinder
- public class StringJLabelBinder
- extends TaskDataBinder
StringJLabelBinder keeps the string displayed by a JLabel component
synchronized with String task data. If the label is changed
independently of the task data, the task data will not be updated.
-
StringJLabelBinder(JLabel)
- Construct a StringJLabelBinder.
-
bind(TaskData, String, JLabel)
- Bind label to the Attribute name in
taskData so that when the Attribute changes
label is updated.
Deprecated.
-
taskDataChanged(TaskDataEvent)
- Called when our task data changes.
StringJLabelBinder
public StringJLabelBinder(JLabel label)
- Construct a StringJLabelBinder.
- Parameters:
- label - JLabel to keep consistent with task data.
bind
public static void bind(TaskData taskData,
String name,
JLabel label)
- Note: bind() is deprecated.
Use
taskData.addTaskDataBinder(name,
new StringJLabelBinder(label))
- Bind label to the Attribute name in
taskData so that when the Attribute changes
label is updated.
- Parameters:
- taskData - TaskData to bind.
- name - name of Attribute to bind.
- label - JLabel to bind.
taskDataChanged
public void taskDataChanged(TaskDataEvent event)
- Called when our task data changes. Update the value of our
JLabel.
- Parameters:
- event - the TaskDataEvent.
- Overrides:
- taskDataChanged in class TaskDataBinder
All Packages Class Hierarchy This Package Previous Next Index