ikayaki.gui
Class ProjectInformationPanel.MyFormatterFactory

java.lang.Object
  extended by javax.swing.JFormattedTextField.AbstractFormatterFactory
      extended by ikayaki.gui.ProjectInformationPanel.MyFormatterFactory
Enclosing class:
ProjectInformationPanel

private class ProjectInformationPanel.MyFormatterFactory
extends JFormattedTextField.AbstractFormatterFactory

Custom formatter factory for the JFormattedTextFields in this class.

Author:
Esko Luontola

Constructor Summary
private ProjectInformationPanel.MyFormatterFactory()
           
 
Method Summary
 JFormattedTextField.AbstractFormatter getFormatter(JFormattedTextField tf)
          Returns an AbstractFormatter that can handle formatting of the passed in JFormattedTextField.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProjectInformationPanel.MyFormatterFactory

private ProjectInformationPanel.MyFormatterFactory()
Method Detail

getFormatter

public JFormattedTextField.AbstractFormatter getFormatter(JFormattedTextField tf)
Returns an AbstractFormatter that can handle formatting of the passed in JFormattedTextField.

Specified by:
getFormatter in class JFormattedTextField.AbstractFormatterFactory
Parameters:
tf - JFormattedTextField requesting AbstractFormatter
Returns:
AbstractFormatter to handle formatting duties, a null return value implies the JFormattedTextField should behave like a normal JTextField