Class TextComponentEditHandler
- java.lang.Object
-
- org.pentaho.reporting.engine.classic.core.modules.gui.base.parameters.TextComponentEditHandler
-
- All Implemented Interfaces:
ActionListener
,Runnable
,EventListener
,DocumentListener
public class TextComponentEditHandler extends Object implements Runnable, DocumentListener, ActionListener
-
-
Constructor Summary
Constructors Constructor Description TextComponentEditHandler(Class type, String keyName, JTextComponent textComponent, ParameterUpdateContext updateContext, Format formatter)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Constructor Detail
-
TextComponentEditHandler
public TextComponentEditHandler(Class type, String keyName, JTextComponent textComponent, ParameterUpdateContext updateContext, Format formatter)
-
-
Method Detail
-
isAdjustingToExternalInput
public boolean isAdjustingToExternalInput()
-
setAdjustingToExternalInput
public void setAdjustingToExternalInput(boolean adjustingToExternalInput)
-
getType
protected Class getType()
-
insertUpdate
public void insertUpdate(DocumentEvent e)
Gives notification that there was an insert into the document. The range given by the DocumentEvent bounds the freshly inserted region.- Specified by:
insertUpdate
in interfaceDocumentListener
- Parameters:
e
- the document event
-
removeUpdate
public void removeUpdate(DocumentEvent e)
Gives notification that a portion of the document has been removed. The range is given in terms of what the view last saw (that is, before updating sticky positions).- Specified by:
removeUpdate
in interfaceDocumentListener
- Parameters:
e
- the document event
-
changedUpdate
public void changedUpdate(DocumentEvent e)
Gives notification that an attribute or set of attributes changed.- Specified by:
changedUpdate
in interfaceDocumentListener
- Parameters:
e
- the document event
-
convert
protected void convert(boolean autoUpdate)
-
convertValue
protected Object convertValue(String text) throws BeanException
- Throws:
BeanException
-
actionPerformed
public void actionPerformed(ActionEvent e)
Invoked when an action occurs.- Specified by:
actionPerformed
in interfaceActionListener
-
-