public class TextComponentEditHandler extends Object implements Runnable, DocumentListener, ActionListener
Constructor and Description |
---|
TextComponentEditHandler(Class type,
String keyName,
JTextComponent textComponent,
ParameterUpdateContext updateContext,
Format formatter) |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent e)
Invoked when an action occurs.
|
void |
changedUpdate(DocumentEvent e)
Gives notification that an attribute or set of attributes changed.
|
static Format |
createFormat(String formatString,
Locale locale,
TimeZone timeZone,
Class parameterType) |
static TimeZone |
createTimeZone(String selectedItem,
TimeZone defaultValue) |
void |
insertUpdate(DocumentEvent e)
Gives notification that there was an insert into the document.
|
boolean |
isAdjustingToExternalInput() |
void |
removeUpdate(DocumentEvent e)
Gives notification that a portion of the document has been removed.
|
void |
run() |
void |
setAdjustingToExternalInput(boolean adjustingToExternalInput) |
public TextComponentEditHandler(Class type, String keyName, JTextComponent textComponent, ParameterUpdateContext updateContext, Format formatter)
public boolean isAdjustingToExternalInput()
public void setAdjustingToExternalInput(boolean adjustingToExternalInput)
public void insertUpdate(DocumentEvent e)
insertUpdate
in interface DocumentListener
e
- the document eventpublic void removeUpdate(DocumentEvent e)
removeUpdate
in interface DocumentListener
e
- the document eventpublic void changedUpdate(DocumentEvent e)
changedUpdate
in interface DocumentListener
e
- the document eventpublic void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener