com.jgoodies.validation.tutorial.basics
Class SimpleDomainValidationExample

java.lang.Object
  extended by com.jgoodies.validation.tutorial.util.TutorialApplication
      extended by com.jgoodies.validation.tutorial.basics.SimpleDomainValidationExample

public final class SimpleDomainValidationExample
extends TutorialApplication

A simple validation example that uses a "copying" binding, not the JGoodies Binding. The domain Order object is validated using an OrderValidator. On OK pressed, a modal dialog shows the validation errors and warnings - if any.

Version:
$Revision: 1.10 $
Author:
Karsten Lentzsch

Constructor Summary
SimpleDomainValidationExample()
           
 
Method Summary
 JComponent buildPanel()
          Builds the whole editor.
protected  void initComponents()
          Creates and initializes the UI components.
static void main(String[] args)
           
protected  void startup(String[] args)
          Starts this application when the application is launched.
 
Methods inherited from class com.jgoodies.validation.tutorial.util.TutorialApplication
createFrame, initializeLookAndFeel, launch, locateOnOpticalScreenCenter, packAndShowOnScreenCenter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleDomainValidationExample

public SimpleDomainValidationExample()
Method Detail

main

public static void main(String[] args)

startup

protected void startup(String[] args)
Description copied from class: TutorialApplication
Starts this application when the application is launched. A typical application creates and shows the GUI in this method. This method runs on the event dispatching thread.

Called by the static launch method.

Specified by:
startup in class TutorialApplication
Parameters:
args - optional launch arguments, often the main method's arguments.
See Also:
TutorialApplication.launch(Class, String[])

initComponents

protected void initComponents()
Creates and initializes the UI components.


buildPanel

public JComponent buildPanel()
Builds the whole editor.

Returns:
the editor panel with a report area at the bottom


Copyright © 2003-2008 JGoodies Karsten Lentzsch. All Rights Reserved.