Package net.sf.jguiraffe.gui.forms

A package for dealing with forms.

In typical GUI applications forms are used for gathering data from the user. Creating a form is usually a tedious task. In addition to the presentation of the data the developer has to deal with more or less complex logic, including

  • initializing the form's input fields from the model,
  • handling the OK and the Cancel button correctly,
  • performing validation of user input,
  • optionally mark input fields that contain no valid data,
  • transfer the data entered by the user back into the application's model.

This package provides fundamental classes and interfaces for addressing such common problems. Its main goal is making the handling of forms as easy as possible.

The main class of this package is the Form class. A Form object is a representation of a GUI form including all its input fields. Using methods provided by this class, it is possible to copy data between the input fields and the data model in both directions. Support for validation on both the field level and the form level (which allows for semantical checks involving the form as a whole) is available, too.

$Id: package.html 205 2012-01-29 18:29:57Z oheger $