com.lc.util.swing
Interface IDialogValidator
- public interface IDialogValidator
Behavior for validating a DialogDisplay.
- Version:
- $Revision: 1.1.1.1 $ $Date: 2002/02/19 22:12:04 $
- Author:
- Laurent Caillette
|
Field Summary |
static java.lang.Object |
FORCE_CLOSING_CHOICE
'Tag' value for the choice parameter of
validate( Object message, Object choice )
methode, avoiding passing a null value. |
|
Method Summary |
boolean |
validate(java.lang.Object message,
java.lang.Object choice)
Decides if the displayed dialog should be validated. |
FORCE_CLOSING_CHOICE
public static final java.lang.Object FORCE_CLOSING_CHOICE
- 'Tag' value for the choice parameter of
validate( Object message, Object choice )
methode, avoiding passing a null value.
validate
public boolean validate(java.lang.Object message,
java.lang.Object choice)
- Decides if the displayed dialog should be validated.
- Parameters:
message - The message Object as passed to the JOptionPane
class for a modal display.choice - The int value representing the user choice. May be
defined by a JOptionPane constant, or by a custom
definition. Its value is set to FORCE_CLOSING_CHOICE when
the user clicked on the 'close' widget.- Returns:
- true if the dialog should be closed, false otherwise. The
returned value has no effect when choice parameter is set to
FORCE_CLOSING_CHOICE.