allensoft.gui
Interface OkCancelDialog.Contents
- All Known Implementing Classes:
- OkCancelDialog.JPanelContents
- Enclosing class:
- OkCancelDialog
- public static interface OkCancelDialog.Contents
Defines the contents of the dialog.
Method Summary |
boolean |
areContentsValid()
Checks if the contents of the dialog are valid. |
java.awt.Component |
getDisplayedComponent()
Gets the component that should be displayed in the dialog. |
getDisplayedComponent
public java.awt.Component getDisplayedComponent()
- Gets the component that should be displayed in the dialog.
areContentsValid
public boolean areContentsValid()
- Checks if the contents of the dialog are valid. This is called when the OK
button is clicked.
- Returns:
- true if the contents are valid and the dialog should be allowed to close, or false if they
are invalid and to prevent the dialog from closing.