Class DialogBehavior

    • Constructor Detail

      • DialogBehavior

        public DialogBehavior​(String selector,
                              IDialogListener listener)
        Constructor
        Parameters:
        selector - the html selector (ie: "#myId")
        listener - the IDialogListener
      • DialogBehavior

        public DialogBehavior​(String selector,
                              com.googlecode.wicket.jquery.core.Options options,
                              IDialogListener listener)
        Constructor
        Parameters:
        selector - the html selector (ie: "#myId")
        options - the Options
        listener - the IDialogListener
    • Method Detail

      • onAjax

        public void onAjax​(AjaxRequestTarget target,
                           com.googlecode.wicket.jquery.core.JQueryEvent event)
        Specified by:
        onAjax in interface com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware
      • newOnDefaultCloseAjaxBehavior

        protected com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior newOnDefaultCloseAjaxBehavior​(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source)
        Gets a new JQueryAjaxBehavior that will be wired to the 'close' event, triggered when the user clicks on the X-icon
        Parameters:
        source - the IJQueryAjaxAware
        Returns:
        a new OnDefaultCloseAjaxBehavior by default
      • newOnEscapeCloseAjaxBehavior

        protected com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior newOnEscapeCloseAjaxBehavior​(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source)
        Gets a new JQueryAjaxBehavior that will be wired to the 'beforeClose' event, triggered when the user presses the escape key
        Parameters:
        source - the IJQueryAjaxAware
        Returns:
        a new OnEscapeCloseAjaxBehavior by default