| Home >> All >> com >> jgoodies >> validation >> tutorial >> formatted >> [ format Javadoc ] |
com.jgoodies.validation.tutorial.formatted.format: Javadoc index of package com.jgoodies.validation.tutorial.formatted.format.
Package Samples:
com.jgoodies.validation.tutorial.formatted.format: Contains examples around the JFormattedTextFields.
com.jgoodies.validation.tutorial.formatted.formatter
Classes:
EmptyFormat: Wraps a given Format and adds behavior to convert to/from the empty string. Therefore it holds an empty value that is the counterpart of the empty string. The #format result of the empty value is the empty string, and the #parse result of the empty string is the empty value. In all other cases the formatting and parsing is forwarded to the wrapped Format. Often the empty value is null . For example you can wrap a DateFormat to format null to an empty string and parse the empty string to null . Another example is the mapping of the -1 to an empty string using a wrapped NumberFormat . Examples: new ...
RelativeDateFormat: A Format that provides special handling for output shortcuts and relative input. If output shortcuts are enabled, Yesterday, Today and Tomorrow are formatted using their localized human-language print strings. If relative input is allowed, the parser accepts signed integers that encode a date relative to today; this input would otherwise be considered invalid. This class is intended for demonstration purposes only. It is superceded by the com.jgoodies.validation.formatter.RelativeDateFormatter .
DisplayFormat: Wraps a given Format and overrides that null values are formatted to the empty string. Examples: new DisplayFormat(DateFormat.getDateInstance()); new DisplayFormat(new NumberFormat()); new DisplayFormat(new NumberFormat(), true);
CustomNumberFormatter: Unlike its superclass NumberFormatter , this class converts non-negative integers to natural language strings: Zero, One, Two, Three, More than three.
| Home | Contact Us | Privacy Policy | Terms of Service |