|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jgoodies.validation.tutorial.util.TutorialApplication
com.jgoodies.validation.tutorial.validator.ValidatingOrderEditor
public final class ValidatingOrderEditor
A view that validates its GUI state. On OK pressed the GUI state is validated, and a modal dialog shows the errors and warnings - if any. The domain model will be updated only, if the GUI state has no errors - though it may have warnings.
This class exists for learning and demonstration purposes only.
Typically you won't validate the GUI state, but validate
the domain object properties or the presentation model state.
See the SimpleDomainValidationExample
for a similar example
that validates the domain object, not the GUI state.
SimpleDomainValidationExample
Constructor Summary | |
---|---|
ValidatingOrderEditor()
|
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. |
com.jgoodies.validation.ValidationResult |
validate()
Validates the order and returns a ValidationResult. |
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 |
---|
public ValidatingOrderEditor()
Method Detail |
---|
public static void main(String[] args)
protected void startup(String[] args)
TutorialApplication
Called by the static launch
method.
startup
in class TutorialApplication
args
- optional launch arguments, often the main method's arguments.TutorialApplication.launch(Class, String[])
protected void initComponents()
public JComponent buildPanel()
public com.jgoodies.validation.ValidationResult validate()
validate
in interface com.jgoodies.validation.Validatable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |