Class WindowAdapter
- java.lang.Object
-
- com.googlecode.wicket.kendo.ui.widget.window.WindowAdapter
-
- All Implemented Interfaces:
IWindowListener
,Serializable
,org.apache.wicket.util.io.IClusterable
public class WindowAdapter extends Object implements IWindowListener
Adapter class forIWindowListener
- Author:
- Sebastien Briquet - sebfz1
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description WindowAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isActionEventEnabled()
Indicates whether the action events are enabled.
If true, theIWindowListener.onAction(AjaxRequestTarget, String)
event will be triggeredboolean
isCloseEventEnabled()
Indicates whether the close event is enabled.void
onAction(org.apache.wicket.ajax.AjaxRequestTarget target, String action)
Triggered when an action button is clicked.void
onClose(org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler)
Triggered when then the Window closes, either trough the 'X' icon or the 'escape' key (IWindowListener.isCloseEventEnabled()
should returntrue
), or ifAbstractWindow.close(IPartialPageRequestHandler)
has been called
-
-
-
Method Detail
-
isActionEventEnabled
public boolean isActionEventEnabled()
Description copied from interface:IWindowListener
Indicates whether the action events are enabled.
If true, theIWindowListener.onAction(AjaxRequestTarget, String)
event will be triggered- Specified by:
isActionEventEnabled
in interfaceIWindowListener
- Returns:
- false by default
-
isCloseEventEnabled
public boolean isCloseEventEnabled()
Description copied from interface:IWindowListener
Indicates whether the close event is enabled. Both 'X' icon and 'escape' key fire this event.
If true, theIWindowListener.onClose(IPartialPageRequestHandler)
event will be triggered- Specified by:
isCloseEventEnabled
in interfaceIWindowListener
- Returns:
- false by default
-
onAction
public void onAction(org.apache.wicket.ajax.AjaxRequestTarget target, String action)
Description copied from interface:IWindowListener
Triggered when an action button is clicked.- Specified by:
onAction
in interfaceIWindowListener
- Parameters:
target
- theAjaxRequestTarget
action
- the action that fired the event
-
onClose
public void onClose(org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler)
Description copied from interface:IWindowListener
Triggered when then the Window closes, either trough the 'X' icon or the 'escape' key (IWindowListener.isCloseEventEnabled()
should returntrue
), or ifAbstractWindow.close(IPartialPageRequestHandler)
has been called- Specified by:
onClose
in interfaceIWindowListener
- Parameters:
handler
- theIPartialPageRequestHandler
-
-