|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jgoodies.validation.tutorial.util.TutorialUtils
public final class TutorialUtils
Consists only of static convenience methods used throughout the examples of the JGoodies Validation tutorial.
Method Summary | |
---|---|
static PropertyChangeListener |
createDebugPropertyChangeListener()
Returns a listener that writes bean property changes to the console. |
static Action |
getCloseAction()
Creates and returns an Action that exists the system if performed. |
static com.jgoodies.validation.ValidationResult |
getErrorsResult()
Lazily creates and returns an example ValidationResult that contains only errors. |
static com.jgoodies.validation.ValidationResult |
getMixedResult()
Lazily creates and returns an example ValidationResult that contains errors and warnings. |
static com.jgoodies.validation.ValidationResult |
getWarningsResult()
Lazily creates and returns an example ValidationResult that contains only warnings. |
static void |
showValidationMessage(ActionEvent e,
String headerText,
com.jgoodies.validation.ValidationResult validationResult)
Opens a message dialog that shows the validation result, things the user must fix, before the selection can change. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static PropertyChangeListener createDebugPropertyChangeListener()
public static Action getCloseAction()
System.exit(int)
public static com.jgoodies.validation.ValidationResult getErrorsResult()
public static com.jgoodies.validation.ValidationResult getMixedResult()
public static com.jgoodies.validation.ValidationResult getWarningsResult()
public static void showValidationMessage(ActionEvent e, String headerText, com.jgoodies.validation.ValidationResult validationResult)
headerText
- the text displayed above the validation messagevalidationResult
- the validation result to be displayed
IllegalArgumentException
- if the validation result is empty
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |