Interface IWindowListener
-
- All Superinterfaces:
org.apache.wicket.util.io.IClusterable
,Serializable
- All Known Implementing Classes:
AbstractWindow
,FormWindow
,InputWindow
,MessageWindow
,Window
,WindowAdapter
public interface IWindowListener extends org.apache.wicket.util.io.IClusterable
Event listener shared by theAbstractWindow
widget and theWindowBehavior
- Since:
- 6.17.0
- Author:
- Sebastien Briquet - sebfz1
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isActionEventEnabled()
Indicates whether the action events are enabled.
If true, theonAction(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 (isCloseEventEnabled()
should returntrue
), or ifAbstractWindow.close(IPartialPageRequestHandler)
has been called
-
-
-
Method Detail
-
isActionEventEnabled
boolean isActionEventEnabled()
Indicates whether the action events are enabled.
If true, theonAction(AjaxRequestTarget, String)
event will be triggered- Returns:
- false by default
-
isCloseEventEnabled
boolean isCloseEventEnabled()
Indicates whether the close event is enabled. Both 'X' icon and 'escape' key fire this event.
If true, theonClose(IPartialPageRequestHandler)
event will be triggered- Returns:
- false by default
-
onAction
void onAction(org.apache.wicket.ajax.AjaxRequestTarget target, String action)
Triggered when an action button is clicked.- Parameters:
target
- theAjaxRequestTarget
action
- the action that fired the event
-
onClose
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 (isCloseEventEnabled()
should returntrue
), or ifAbstractWindow.close(IPartialPageRequestHandler)
has been called- Parameters:
handler
- theIPartialPageRequestHandler
-
-