Class DialogAdapter
- java.lang.Object
-
- com.googlecode.wicket.jquery.ui.widget.dialog.DialogAdapter
-
- All Implemented Interfaces:
IDialogListener,Serializable,org.apache.wicket.util.io.IClusterable
public class DialogAdapter extends Object implements IDialogListener
Adapter class forIDialogListener- Author:
- Sebastien Briquet - sebfz1
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DialogAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisDefaultCloseEventEnabled()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 nullDialogButtonbooleanisEscapeCloseEventEnabled()Indicates 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.
-
-
-
Method Detail
-
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
public void onClick(org.apache.wicket.ajax.AjaxRequestTarget target, DialogButton button)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
-
-