Package org.apache.pivot.wtk
Interface DialogStateListener
-
- All Superinterfaces:
DialogCloseListener
- All Known Implementing Classes:
DialogStateListener.Adapter
,DialogStateListener.Listeners
,TerraAlertSkin
,TerraDialogSkin
public interface DialogStateListener extends DialogCloseListener
Dialog state listener interface.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
DialogStateListener.Adapter
Deprecated.Since 2.1 and Java 8 the interface itself has default implementations.static class
DialogStateListener.Listeners
Dialog state listeners.
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default void
dialogClosed(Dialog dialog, boolean modal)
Called when a dialog has closed.default void
dialogCloseVetoed(Dialog dialog, Vote reason)
Called when a dialog close event has been vetoed.default Vote
previewDialogClose(Dialog dialog, boolean result)
Called to preview a dialog close event.
-
-
-
Method Detail
-
previewDialogClose
default Vote previewDialogClose(Dialog dialog, boolean result)
Called to preview a dialog close event.- Parameters:
dialog
- The dialog that is requesting to close.result
- The result flag (true
means "OK", whilefalse
roughly means "Cancel").- Returns:
- The consensus vote as to whether or not to allow the close to occur.
-
dialogCloseVetoed
default void dialogCloseVetoed(Dialog dialog, Vote reason)
Called when a dialog close event has been vetoed.- Parameters:
dialog
- The dialog that is not going to close because of this veto.reason
- The vote result that indicates the veto.
-
dialogClosed
default void dialogClosed(Dialog dialog, boolean modal)
Description copied from interface:DialogCloseListener
Called when a dialog has closed.- Specified by:
dialogClosed
in interfaceDialogCloseListener
- Parameters:
dialog
- The dialog that has been closed.modal
- Whether this was a modal dialog or not.
-
-