public abstract class TextComponentUpdater extends Object implements DocumentListener, AncestorListener
Constructor and Description |
---|
TextComponentUpdater(JTextComponent comp,
JLabel label)
Creates a new instance of TextComponentUpdater
|
Modifier and Type | Method and Description |
---|---|
void |
ancestorAdded(AncestorEvent event) |
void |
ancestorMoved(AncestorEvent event) |
void |
ancestorRemoved(AncestorEvent event) |
void |
changedUpdate(DocumentEvent e) |
abstract String |
getDefaultValue() |
abstract String |
getValue() |
void |
insertUpdate(DocumentEvent e) |
void |
removeUpdate(DocumentEvent e) |
abstract void |
setValue(String value) |
public TextComponentUpdater(JTextComponent comp, JLabel label)
public abstract String getValue()
public abstract String getDefaultValue()
public abstract void setValue(String value)
public void insertUpdate(DocumentEvent e)
insertUpdate
in interface DocumentListener
public void removeUpdate(DocumentEvent e)
removeUpdate
in interface DocumentListener
public void changedUpdate(DocumentEvent e)
changedUpdate
in interface DocumentListener
public void ancestorAdded(AncestorEvent event)
ancestorAdded
in interface AncestorListener
public void ancestorRemoved(AncestorEvent event)
ancestorRemoved
in interface AncestorListener
public void ancestorMoved(AncestorEvent event)
ancestorMoved
in interface AncestorListener