Interface IDialogListener
-
- All Superinterfaces:
org.apache.wicket.util.io.IClusterable
,Serializable
- All Known Implementing Classes:
AbstractDialog
,AbstractFormDialog
,AbstractWizard
,DialogAdapter
,DialogListenerWrapper
,FragmentDialog
,FragmentFormDialog
,InputDialog
,MessageDialog
,MessageFormDialog
public interface IDialogListener extends org.apache.wicket.util.io.IClusterable
Event listener shared by theAbstractDialog
widget and theDialogBehavior
- Author:
- Sebastien Briquet - sebfz1
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isDefaultCloseEventEnabled()
Indicates whether the default close event (the click on the X-icon) is enabled If true, theonClose(IPartialPageRequestHandler, DialogButton)
event will be triggered, with a nullDialogButton
boolean
isEscapeCloseEventEnabled()
Indicates whether the escape close event (pressing escape key) is enabled If true, theonClose(IPartialPageRequestHandler, DialogButton)
event will be triggered, with a nullDialogButton
void
onClick(org.apache.wicket.ajax.AjaxRequestTarget target, DialogButton button)
Triggered when a button is clicked.void
onClose(org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler, DialogButton button)
Triggered when the dialog closes.
-
-
-
Method Detail
-
isDefaultCloseEventEnabled
boolean isDefaultCloseEventEnabled()
Indicates whether the default close event (the click on the X-icon) is enabled If true, theonClose(IPartialPageRequestHandler, DialogButton)
event will be triggered, with a nullDialogButton
- Returns:
- false by default
-
isEscapeCloseEventEnabled
boolean isEscapeCloseEventEnabled()
Indicates whether the escape close event (pressing escape key) is enabled If true, theonClose(IPartialPageRequestHandler, DialogButton)
event will be triggered, with a nullDialogButton
- Returns:
- false by default
-
onClick
void onClick(org.apache.wicket.ajax.AjaxRequestTarget target, DialogButton button)
Triggered when a button is clicked. This method may be overridden to handle button behaviors, but the dialog will not been closed untilsuper.onClick(event)
orDialogBehavior.close(IPartialPageRequestHandler)
is called.- Parameters:
target
- theAjaxRequestTarget
button
- the button that closed the dialog
-
onClose
void onClose(org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler, DialogButton button)
Triggered when the dialog closes.- Parameters:
handler
- theIPartialPageRequestHandler
button
- the button that closed the dialog
-
-