Interface IWindowListener

    • Method Detail

      • isActionEventEnabled

        boolean isActionEventEnabled()
        Indicates whether the action events are enabled.
        If true, the onAction(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, the onClose(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 - the AjaxRequestTarget
        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 return true), or if AbstractWindow.close(IPartialPageRequestHandler) has been called
        Parameters:
        handler - the IPartialPageRequestHandler