org.tbee.swing
Class JFormattedTextFieldUtils

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

public class JFormattedTextFieldUtils
extends java.lang.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 javax.swing.JFormattedTextField newPercentTextfield(double value)
          Create a JFormattedTextField which accepts Integers in a simple format
static javax.swing.JFormattedTextField newSimpleGregorianCalendarTextfield(java.util.GregorianCalendar value)
          Create a JFormattedTextField which accepts GregorianCalendar in a simple format
static javax.swing.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 javax.swing.JFormattedTextField newSimpleIntegerTextfield(int value)
Create a JFormattedTextField which accepts Integers in a simple format

Parameters:
value -
Returns:

newPercentTextfield

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

Parameters:
value -
Returns:

newSimpleGregorianCalendarTextfield

public static javax.swing.JFormattedTextField newSimpleGregorianCalendarTextfield(java.util.GregorianCalendar value)
Create a JFormattedTextField which accepts GregorianCalendar in a simple format

Parameters:
value -
Returns:


Copyright © 2010 KnowledgePlaza. All Rights Reserved.