All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sgi.sysadm.ui.taskData.LongJTextComponentBinder

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

public class LongJTextComponentBinder
extends TaskDataBinder
implements DocumentListener
LongJTextComponentBinder keeps a piece of Long TaskData synchronized with a JTextComponent. If the TaskData changes then LongJTextFieldBinder changes the JTextComponent, and if the JTextComponent changes then LongJTextComponentBinder changes the TaskData.


Constructor Index

 o LongJTextComponentBinder(JTextComponent)
Construct a LongJTextComponentBinder.

Method Index

 o bind(TaskData, String, JTextComponent)
Bind the Attribute name in taskData to text, so that when text changes the Attribute is updated and vice versa. Deprecated.
 o changedUpdate(DocumentEvent)
Called when our JTextComponent changes.
 o getTextComponent()
Get the JTextComponent that we're monitoring.
 o insertUpdate(DocumentEvent)
Called when our JTextComponent changes.
 o isNotifying()
Check to see if we are currently in notification.
 o removeUpdate(DocumentEvent)
Called when our JTextComponent changes.
 o setNotifying(boolean)
Set the notifying flag.
 o taskDataChanged(TaskDataEvent)
Called when our TaskData Attribute changes.

Constructors

 o LongJTextComponentBinder
 public LongJTextComponentBinder(JTextComponent text)
Construct a LongJTextComponentBinder. Add this as a DocumentListener to text to keep it in sync with TaskData.

Parameters:
text - JTextComponent to keep synchronized.

Methods

 o bind
 public static void bind(TaskData taskData,
                         String name,
                         JTextComponent text)
Note: bind() is deprecated. Use taskData.addTaskDataBinder(name, new LongJTextComponentBinder(text))

Bind the Attribute name in taskData to text, so that when text changes the Attribute is updated and vice versa.

Parameters:
taskData - TaskData to bind.
name - name of Attribute to bind.
text - JTextComponent to bind.
 o getTextComponent
 protected JTextComponent getTextComponent()
Get the JTextComponent that we're monitoring.

Returns:
JTextComponent that we're monitoring.
 o isNotifying
 protected boolean isNotifying()
Check to see if we are currently in notification. This is used to prevent infinitely recursive notification.

Returns:
true if we're notifying, false otherwise.
 o setNotifying
 protected void setNotifying(boolean notifying)
Set the notifying flag. This is used to prevent infinitely recursive notification.

Parameters:
notifying - true if we're notifying, false otherwise.
 o taskDataChanged
 public void taskDataChanged(TaskDataEvent event)
Called when our TaskData Attribute changes. Update our JTextComponent.

Parameters:
event - TaskDataEvent.
Overrides:
taskDataChanged in class TaskDataBinder
 o changedUpdate
 public void changedUpdate(DocumentEvent event)
Called when our JTextComponent changes. Update our TaskData Attribute.

Parameters:
event - the DocumentEvent
 o insertUpdate
 public void insertUpdate(DocumentEvent event)
Called when our JTextComponent changes. Update our TaskData Attribute.

Parameters:
event - the DocumentEvent
 o removeUpdate
 public void removeUpdate(DocumentEvent event)
Called when our JTextComponent changes. Update our TaskData Attribute.

Parameters:
event - the DocumentEvent

All Packages  Class Hierarchy  This Package  Previous  Next  Index