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.


Constructor Index

 o StringJLabelBinder(JLabel)
Construct a StringJLabelBinder.

Method Index

 o bind(TaskData, String, JLabel)
Bind label to the Attribute name in taskData so that when the Attribute changes label is updated. Deprecated.
 o taskDataChanged(TaskDataEvent)
Called when our task data changes.

Constructors

 o StringJLabelBinder
 public StringJLabelBinder(JLabel label)
Construct a StringJLabelBinder.

Parameters:
label - JLabel to keep consistent with task data.

Methods

 o 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.
 o 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