org.pentaho.reporting.engine.classic.core.modules.gui.base.parameters
Class TextComponentEditHandler

java.lang.Object
  extended by 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

Todo: Document me!

Date: 14.05.2009 Time: 20:34:42

Author:
Thomas Morgner.

Constructor Summary
TextComponentEditHandler(Class type, String keyName, JTextComponent textComponent, ParameterUpdateContext updateContext, Format formatter)
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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)

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 interface DocumentListener
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 interface DocumentListener
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 interface DocumentListener
Parameters:
e - the document event

run

public void run()
Specified by:
run in interface Runnable

actionPerformed

public void actionPerformed(ActionEvent e)
Invoked when an action occurs.

Specified by:
actionPerformed in interface ActionListener

createTimeZone

public static TimeZone createTimeZone(String selectedItem,
                                      TimeZone defaultValue)

createFormat

public static Format createFormat(String formatString,
                                  Locale locale,
                                  TimeZone timeZone,
                                  Class parameterType)