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 TypeMethodDescriptionbooleanIndicates 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 nullDialogButtonbooleanIndicates whether the escape close event (pressing escape key) is enabled If true, theIDialogListener.onClose(IPartialPageRequestHandler, DialogButton)event will be triggered, with a nullDialogButtonvoidonClick(org.apache.wicket.ajax.AjaxRequestTarget target, DialogButton button) Triggered when a button is clicked.voidonClose(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:IDialogListenerIndicates 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:
isDefaultCloseEventEnabledin interfaceIDialogListener- Returns:
- false by default
-
isEscapeCloseEventEnabled
public boolean isEscapeCloseEventEnabled()Description copied from interface:IDialogListenerIndicates 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:
isEscapeCloseEventEnabledin interfaceIDialogListener- Returns:
- false by default
-
onClick
Description copied from interface:IDialogListenerTriggered 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:
onClickin interfaceIDialogListener- Parameters:
target- theAjaxRequestTargetbutton- the button that closed the dialog
-
onClose
public void onClose(org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler, DialogButton button) Description copied from interface:IDialogListenerTriggered when the dialog closes.- Specified by:
onClosein interfaceIDialogListener- Parameters:
handler- theIPartialPageRequestHandlerbutton- the button that closed the dialog
-