|
|||||||||
| Home >> All >> com >> jgoodies >> validation >> tutorial >> [ formatted overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.jgoodies.validation.tutorial.formatted
Class NumberExample

java.lang.Objectcom.jgoodies.validation.tutorial.formatted.NumberExample
- public final class NumberExample
- extends java.lang.Object
Demonstrates different configurations of JFormattedTextField
to display and edit numbers. Shows
- how to use a custom NumberFormat
- how to use a custom NumberFormatter
- how to use a custom FormatterFactory
- how to reset a number to
null - how to map the empty string to a special number
- how to commit values on valid texts
- how to set the class of the result
- Version:
- $Revision: 1.8 $
To look under the hood of this component, this class exposes the bound properties text, value and editValid.
Constructor Summary NumberExample()
Method Summary private java.util.ListappendDemoRows(DefaultFormBuilder builder)
Appends the demo rows to the given builder and returns the List of formatted text fields.javax.swing.JComponentbuildPanel()
Builds and returns a panel with a header row and the sample rows.static voidmain(java.lang.String[] args)
Methods inherited from class java.lang.Object clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitConstructor Detail NumberExample
public NumberExample()
Method Detail main
public static void main(java.lang.String[] args)
buildPanel
public javax.swing.JComponent buildPanel()
- Builds and returns a panel with a header row and the sample rows.
appendDemoRows
private java.util.List appendDemoRows(DefaultFormBuilder builder)
- Appends the demo rows to the given builder and returns the List of
formatted text fields.
Overview Package Class Use Deprecated Index Home >> All >> com >> jgoodies >> validation >> tutorial >> [ formatted overview ] PREV CLASS NEXT CLASS SUMMARY:
JAVADOC |
SOURCE |
DOWNLOAD | NESTED | FIELD | CONSTR | METHODDETAIL: FIELD | CONSTR | METHOD
com.jgoodies.validation.tutorial.formatted.NumberExample