org.tbee.swing
Class JFormattedTextFieldUtils

java.lang.Object
  extended by org.tbee.swing.JFormattedTextFieldUtils

public class JFormattedTextFieldUtils
extends Object

This class has several methods to help with JFormattedTextFields

Version:
$Revision: 1.6 $

Nested Class Summary
static class JFormattedTextFieldUtils.PercentFormatter
          the formatter for simple integers
static class JFormattedTextFieldUtils.PercentFormatterFactory
          Create formatters
static class JFormattedTextFieldUtils.SimpleGregorianCalendarFormatter
          the formatter for simple GregorianCalendars
static class JFormattedTextFieldUtils.SimpleGregorianCalendarFormatterFactory
          Create formatters
static class JFormattedTextFieldUtils.SimpleIntegerFormatter
          the formatter for simple integers
static class JFormattedTextFieldUtils.SimpleIntegerFormatterFactory
          Create formatters
 
Constructor Summary
JFormattedTextFieldUtils()
           
 
Method Summary
static JFormattedTextField newPercentTextfield(double value)
          Create a JFormattedTextField which accepts Integers in a simple format
static JFormattedTextField newSimpleGregorianCalendarTextfield(GregorianCalendar value)
          Create a JFormattedTextField which accepts GregorianCalendar in a simple format
static JFormattedTextField newSimpleIntegerTextfield(int value)
          Create a JFormattedTextField which accepts Integers in a simple format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JFormattedTextFieldUtils

public JFormattedTextFieldUtils()
Method Detail

newSimpleIntegerTextfield

public static JFormattedTextField newSimpleIntegerTextfield(int value)
Create a JFormattedTextField which accepts Integers in a simple format

Parameters:
value -
Returns:

newPercentTextfield

public static JFormattedTextField newPercentTextfield(double value)
Create a JFormattedTextField which accepts Integers in a simple format

Parameters:
value -
Returns:

newSimpleGregorianCalendarTextfield

public static JFormattedTextField newSimpleGregorianCalendarTextfield(GregorianCalendar value)
Create a JFormattedTextField which accepts GregorianCalendar in a simple format

Parameters:
value -
Returns:


Copyright © 2011 KnowledgePlaza. All Rights Reserved.