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.
-
LongJTextComponentBinder(JTextComponent)
- Construct a LongJTextComponentBinder.
-
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.
-
changedUpdate(DocumentEvent)
- Called when our JTextComponent changes.
-
getTextComponent()
- Get the JTextComponent that we're monitoring.
-
insertUpdate(DocumentEvent)
- Called when our JTextComponent changes.
-
isNotifying()
- Check to see if we are currently in notification.
-
removeUpdate(DocumentEvent)
- Called when our JTextComponent changes.
-
setNotifying(boolean)
- Set the notifying flag.
-
taskDataChanged(TaskDataEvent)
- Called when our TaskData Attribute changes.
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.
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.
getTextComponent
protected JTextComponent getTextComponent()
- Get the JTextComponent that we're monitoring.
- Returns:
- JTextComponent that we're monitoring.
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.
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.
taskDataChanged
public void taskDataChanged(TaskDataEvent event)
- Called when our TaskData Attribute changes. Update our
JTextComponent.
- Parameters:
- event - TaskDataEvent.
- Overrides:
- taskDataChanged in class TaskDataBinder
changedUpdate
public void changedUpdate(DocumentEvent event)
- Called when our JTextComponent changes. Update our TaskData
Attribute.
- Parameters:
- event - the DocumentEvent
insertUpdate
public void insertUpdate(DocumentEvent event)
- Called when our JTextComponent changes. Update our TaskData
Attribute.
- Parameters:
- event - the DocumentEvent
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