ikayaki.gui
Class DeviceSettingsPanel.MyFormatterFactory
java.lang.Object
javax.swing.JFormattedTextField.AbstractFormatterFactory
ikayaki.gui.DeviceSettingsPanel.MyFormatterFactory
- Enclosing class:
- DeviceSettingsPanel
private class DeviceSettingsPanel.MyFormatterFactory
- extends JFormattedTextField.AbstractFormatterFactory
Custom formatter factory for the JFormattedTextFields in this class.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DeviceSettingsPanel.MyFormatterFactory
private DeviceSettingsPanel.MyFormatterFactory()
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