public class DialogAdapter extends Object implements IDialogListener
IDialogListener
Constructor and Description |
---|
DialogAdapter() |
Modifier and Type | Method and Description |
---|---|
boolean |
isDefaultCloseEventEnabled()
Indicates whether the default close event (the click on the X-icon) is enabled
If true, the
IDialogListener.onClose(IPartialPageRequestHandler, DialogButton) event will be triggered, with a null DialogButton |
boolean |
isEscapeCloseEventEnabled()
Indicates whether the escape close event (pressing escape key) is enabled
If true, the
IDialogListener.onClose(IPartialPageRequestHandler, DialogButton) event will be triggered, with a null DialogButton |
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.
|
public boolean isDefaultCloseEventEnabled()
IDialogListener
IDialogListener.onClose(IPartialPageRequestHandler, DialogButton)
event will be triggered, with a null DialogButton
isDefaultCloseEventEnabled
in interface IDialogListener
public boolean isEscapeCloseEventEnabled()
IDialogListener
IDialogListener.onClose(IPartialPageRequestHandler, DialogButton)
event will be triggered, with a null DialogButton
isEscapeCloseEventEnabled
in interface IDialogListener
public void onClick(org.apache.wicket.ajax.AjaxRequestTarget target, DialogButton button)
IDialogListener
super.onClick(event)
or DialogBehavior.close(IPartialPageRequestHandler)
is called.onClick
in interface IDialogListener
target
- the AjaxRequestTarget
button
- the button that closed the dialogpublic void onClose(org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler, DialogButton button)
IDialogListener
onClose
in interface IDialogListener
handler
- the IPartialPageRequestHandler
button
- the button that closed the dialogCopyright © 2015 7thWeb. All rights reserved.