Simple Validation

Library for retrofitting UI validation to swing applications
Download

Simple Validation Ranking & Summary

Advertisement

  • Rating:
  • License:
  • GPL
  • Price:
  • FREE
  • Publisher Name:
  • Simple Validation Team
  • Publisher web site:
  • http://kenai.com/projects/simplevalidation
  • Operating Systems:
  • Mac OS X
  • File Size:
  • 5.9 MB

Simple Validation Tags


Simple Validation Description

Library for retrofitting UI validation to swing applications Simple Validation is a free and open source, simple library for retrofitting user-interface input validation to Swing applications.Simple Validation handles validating user input when the user changes a component's value, showing error messages and decorating components to indicate which component is the source of the problem. Simple Validation contains a large number of built-in validators to handle most common situations, such as validating numbers, email addresses, urls and so forth.Very often, data a user enters needs to be validated - checked for legality. The user interface (UI) needs to make sure that what the user typed is legal; if it is not, the user should be shown what the problem is, and possibly some parts of the UI should become disabled.For example, when a dialog is shown asking the user to type something, if there is a problem with what they typed, the dialog's OK button should be disabled and the user should be shown a message indicating what the problem is.The library consists of a few simple concepts:· Validators - an interface for things that validate objects of some type, usually String. A validator produces· Problems - information to show the user. Problems have three severities, FATAL, WARNING and INFO.· ValidationGroup - A group of components which are presented together can affect each other. Typically there is one ValidationGroup per panel. A change in one component in the UI may trigger revalidation of the content of other components.· ValidationUI - A user interface which can display a problem to a user. You can either use the built-in ValidationPanel for this, or implement it over an existing UI by adding two methods. ValidationGroup.createProblemLabel() can create a label which shows problems with the appropriate color and icons.· Converter - a Validator which does no validation of its own, but takes the object type the UI produces (e.g. javax.swing.text.Document), converts it to a type better suited for validation (e.g. java.lang.String) and invokes another validator against the converted object· Validators - an enum of commonly needed, built-in validators which should handle most common UI validation situations Requirements: · Java


Simple Validation Related Software