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.
|
protected void |
convert(boolean autoUpdate) |
protected Object |
convertValue(String text) |
static Format |
createFormat(String formatString,
Locale locale,
TimeZone timeZone,
Class parameterType) |
static TimeZone |
createTimeZone(String selectedItem,
TimeZone defaultValue) |
protected Class |
getType() |
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)
protected Class getType()
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 eventprotected void convert(boolean autoUpdate)
protected Object convertValue(String text) throws BeanException
BeanException
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
Copyright © 2017 Hitachi Vantara. All rights reserved.