Class DialogAdapter
java.lang.Object
com.googlecode.wicket.jquery.ui.widget.dialog.DialogAdapter
- All Implemented Interfaces:
IDialogListener
,Serializable
,org.apache.wicket.util.io.IClusterable
Adapter class for
IDialogListener
- Author:
- Sebastien Briquet - sebfz1
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Indicates whether the default close event (the click on the X-icon) is enabled If true, theIDialogListener.onClose(IPartialPageRequestHandler, DialogButton)
event will be triggered, with a nullDialogButton
boolean
Indicates whether the escape close event (pressing escape key) is enabled If true, theIDialogListener.onClose(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.
-
Constructor Details
-
DialogAdapter
public DialogAdapter()
-
-
Method Details
-
isDefaultCloseEventEnabled
public boolean isDefaultCloseEventEnabled()Description copied from interface:IDialogListener
Indicates whether the default close event (the click on the X-icon) is enabled If true, theIDialogListener.onClose(IPartialPageRequestHandler, DialogButton)
event will be triggered, with a nullDialogButton
- Specified by:
isDefaultCloseEventEnabled
in interfaceIDialogListener
- Returns:
- false by default
-
isEscapeCloseEventEnabled
public boolean isEscapeCloseEventEnabled()Description copied from interface:IDialogListener
Indicates whether the escape close event (pressing escape key) is enabled If true, theIDialogListener.onClose(IPartialPageRequestHandler, DialogButton)
event will be triggered, with a nullDialogButton
- Specified by:
isEscapeCloseEventEnabled
in interfaceIDialogListener
- Returns:
- false by default
-
onClick
Description copied from interface:IDialogListener
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.- Specified by:
onClick
in interfaceIDialogListener
- Parameters:
target
- theAjaxRequestTarget
button
- the button that closed the dialog
-
onClose
public void onClose(org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler, DialogButton button) Description copied from interface:IDialogListener
Triggered when the dialog closes.- Specified by:
onClose
in interfaceIDialogListener
- Parameters:
handler
- theIPartialPageRequestHandler
button
- the button that closed the dialog
-