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(AjaxRequestTarget, 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(AjaxRequestTarget, 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.ajax.AjaxRequestTarget target,
DialogButton button)
Triggered when the dialog closes.
|
public boolean isDefaultCloseEventEnabled()
IDialogListener
IDialogListener.onClose(AjaxRequestTarget, DialogButton)
event will be triggered, with a null DialogButton
isDefaultCloseEventEnabled
in interface IDialogListener
public boolean isEscapeCloseEventEnabled()
IDialogListener
IDialogListener.onClose(AjaxRequestTarget, 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(AjaxRequestTarget)
is called.onClick
in interface IDialogListener
target
- the AjaxRequestTarget
button
- the button that closed the dialogpublic void onClose(org.apache.wicket.ajax.AjaxRequestTarget target, DialogButton button)
IDialogListener
onClose
in interface IDialogListener
target
- the AjaxRequestTarget
button
- the button that closed the dialogCopyright © 2016 7thWeb. All rights reserved.