ikayaki.gui
Class DeviceSettingsPanel.MyFormatterFactory

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

private class DeviceSettingsPanel.MyFormatterFactory
extends JFormattedTextField.AbstractFormatterFactory

Custom formatter factory for the JFormattedTextFields in this class.


Constructor Summary
private DeviceSettingsPanel.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

DeviceSettingsPanel.MyFormatterFactory

private DeviceSettingsPanel.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