|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.archiviststoolkit.util.JGoodiesValidationUtils
public final class JGoodiesValidationUtils
Consists only of static convenience methods used throughout the examples of the JGoodies Validation tutorial.
Method Summary | |
---|---|
static java.beans.PropertyChangeListener |
createDebugPropertyChangeListener()
Returns a listener that writes bean property changes to the console. |
static javax.swing.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 |
locateOnScreenCenter(java.awt.Component component)
Locates the given component on the screen's center. |
static void |
showValidationMessage(java.awt.Component parent,
java.lang.String headerText,
com.jgoodies.validation.ValidationResult validationResult)
|
static void |
showValidationMessage(java.util.EventObject e,
java.lang.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 java.beans.PropertyChangeListener createDebugPropertyChangeListener()
public static javax.swing.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 locateOnScreenCenter(java.awt.Component component)
component
- the component to be centeredpublic static void showValidationMessage(java.util.EventObject e, java.lang.String headerText, com.jgoodies.validation.ValidationResult validationResult)
headerText
- the text displayed above the validation messagevalidationResult
- the validation result to be displayed
java.lang.IllegalArgumentException
- if the validation result is emptypublic static void showValidationMessage(java.awt.Component parent, java.lang.String headerText, com.jgoodies.validation.ValidationResult validationResult)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |