Package org.apache.pivot.wtk
Class DialogStateListener.Adapter
- java.lang.Object
-
- org.apache.pivot.wtk.DialogStateListener.Adapter
-
- All Implemented Interfaces:
DialogCloseListener
,DialogStateListener
- Enclosing interface:
- DialogStateListener
@Deprecated public static class DialogStateListener.Adapter extends java.lang.Object implements DialogStateListener
Deprecated.Since 2.1 and Java 8 the interface itself has default implementations.Dialog state listener adapter.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.DialogStateListener
DialogStateListener.Adapter, DialogStateListener.Listeners
-
-
Constructor Summary
Constructors Constructor Description Adapter()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
dialogClosed(Dialog dialog, boolean modal)
Deprecated.Called when a dialog has closed.void
dialogCloseVetoed(Dialog dialog, Vote reason)
Deprecated.Called when a dialog close event has been vetoed.Vote
previewDialogClose(Dialog dialog, boolean result)
Deprecated.Called to preview a dialog close event.
-
-
-
Method Detail
-
previewDialogClose
public Vote previewDialogClose(Dialog dialog, boolean result)
Deprecated.Description copied from interface:DialogStateListener
Called to preview a dialog close event.- Specified by:
previewDialogClose
in interfaceDialogStateListener
- 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
public void dialogCloseVetoed(Dialog dialog, Vote reason)
Deprecated.Description copied from interface:DialogStateListener
Called when a dialog close event has been vetoed.- Specified by:
dialogCloseVetoed
in interfaceDialogStateListener
- Parameters:
dialog
- The dialog that is not going to close because of this veto.reason
- The vote result that indicates the veto.
-
dialogClosed
public void dialogClosed(Dialog dialog, boolean modal)
Deprecated.Description copied from interface:DialogCloseListener
Called when a dialog has closed.- Specified by:
dialogClosed
in interfaceDialogCloseListener
- Specified by:
dialogClosed
in interfaceDialogStateListener
- Parameters:
dialog
- The dialog that has been closed.modal
- Whether this was a modal dialog or not.
-
-