| Home >> All >> com >> jgoodies >> validation |
| | com.jgoodies.validation.extras.* (2) | | com.jgoodies.validation.tests.* (5) |
| | com.jgoodies.validation.tutorial.* (25) |
Package Samples:
com.jgoodies.validation.tutorial.formatted.format: Contains examples around the JFormattedTextFields.
com.jgoodies.validation.tutorial.validator
com.jgoodies.validation.tutorial.util
com.jgoodies.validation.tutorial.shared
com.jgoodies.validation.tutorial.formatted.formatter
com.jgoodies.validation.tutorial.formatted
com.jgoodies.validation.tutorial.basics
com.jgoodies.validation.tests
com.jgoodies.validation.extras
Classes:
IconFeedbackPanel: Can display validation feedback icons "over" a content panel. It observes a ValidationResultModel and creates icon labels in a feedback layer of a javax.swing.JLayeredPane on top of the content layer. To position the feedback labels, the content pane is traversed and searched for text components that match a validation message key in this panel's observed ValidationResultModel. This panel handles two event types: the ValidationResultModel changes, the content layout changes. TODO: Check how the wrapping mechanism shall work with JSplitPanes, JTabbedPanes and CardPanels. At least provide guidelines, ...
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 ...
LimitedValidationResultModel: An implementation of ValidationResultModel that wraps another ValidationResultModel to limit the number of reported com.jgoodies.validation.ValidationMessage s. Note: This class is not yet part of the binary Validation library; it comes with the Validation distributions as an extra. The API is work in progress and may change without notice; this class may even be completely removed from future distributions. If you want to use this class, you may consider copying it into your codebase.
NumberExample: 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 To look under the hood of this component, this class exposes the bound properties text , value and editValid .
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 .
DateExample: Demonstrates different configurations of JFormattedTextField to display and edit numbers. Shows how to use a custom DateFormat how to use a custom DateFormatter how to use a custom FormatterFactory how to reset a date to null how to map the empty string to a special date how to commit values on valid texts To look under the hood of this component, this class exposes the bound properties text , value and editValid .
CompoundIcon: An Icon implementation that paints two icons as compound or overlayed icon using a specified alignment. Note: This class is not yet part of the binary Validation library; it comes with the Validation distributions as an extra. The API is work in progress and may change without notice; this class may even be completely removed from future distributions. If you want to use this class, you may consider copying it into your codebase.
MyFocusTraversalPolicy: A FocusTraversalPolicy that determines traversal order based on the order of child Components in a Container. In addition to its superclass, this class excludes non-editable text components, scroll bars, and the root pane from the focus cycle. The JGoodies User Interface Framework (UIF) contains an extended version of this policy.
Order: Describes an order that demonstrates different types of constraints. The property constraints are: mandatory vs. optional, minimum and maximum length, minimum and maximum values, linked constraints. Provides the following bound properties: orderNo, orderDate, deliveryDate, deliveryNotes .
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);
ExampleComponentFactory: Consists only of static methods that vend formatted text fields used to edit dates that are bound to an underlying ValueModel. Extends the Binding library's BasicComponentFactory to inherit all factory metods from that class.
FocusLostBehaviorExample: Demonstrates the JFormattedTextField in different focus lost behavior modes. To look under the hood of this component, this class exposes the bound properties text , value and editValid .
OrderModel: Provides all models to bind an order editor to its domain model, an instance of Order .
ValidationResultViewExample: Demonstrates the different validation result views created by the com.jgoodies.validation.view.ValidationResultViewFactory . Provides buttons to set a couple of valid and invalid results.
ComponentFeedbackExample: Demonstrates different styles how to indicate that a component contains invalid data: background changes if empty, background reflects the severity, overlayed icons the reflect the severity.
FormattedTextFieldVerifier: Verifies the input of a JFormattedTextField and checks whether the edited text is valid or not. Useful to lock focus down while the edited text is invalid.
CustomNumberFormatter: Unlike its superclass NumberFormatter , this class converts non-negative integers to natural language strings: Zero, One, Two, Three, More than three.
MandatoryMarkerExample: Demonstrates different styles how to mark mandatory fields. The fields in this demo are not bound and not validated.
TutorialUtils: Consists only of static convenience methods used throughout the examples of the JGoodies Validation tutorial.
ValidationTimeExample: Demonstrates and compares different validation times: key-typed, focus lost, commit (OK pressed).
InfoOnFocusExample: Demonstrates a style how to provide input hints, so that users can avoid entering invalid data.
IconFeedbackTestPanel: Tests the IconFeedbackPanel with and without a border and plain and wrapped by a JScrollPane.
AllValidationTests: A test suite for all tests related to the JGoodies Validation framework.
Utils: Provides helper code for the Formatted tutorial example series.
ValidatingOrderEditor: A view that can validate its user interface component contents.
| Home | Contact Us | Privacy Policy | Terms of Service |