Class Window<T>

    • Nested Class Summary

      • Nested classes/interfaces inherited from interface com.googlecode.wicket.jquery.core.IJQueryWidget

        com.googlecode.wicket.jquery.core.IJQueryWidget.JQueryWidget
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected List<WindowButton> getButtons()
      Gets the list of WindowButtons This method an be overridden to provide a behavioral helper for instance
      protected abstract org.apache.wicket.markup.html.form.Form<?> getForm()
      Gets the Form that should be submitted and validated
      protected WindowButtonPanel newButtonPanel​(String id, List<WindowButton> buttons)
      protected void onAfterSubmit​(org.apache.wicket.ajax.AjaxRequestTarget target, WindowButton button)
      Triggered after the form is submitted, and the validation succeed
      Closes the dialog by default
      protected void onError​(org.apache.wicket.ajax.AjaxRequestTarget target, WindowButton button)
      Triggered when the form is submitted, but the validation failed
      protected void onSubmit​(org.apache.wicket.ajax.AjaxRequestTarget target, WindowButton button)
      Triggered when the form is submitted, and the validation succeed
      • Methods inherited from class org.apache.wicket.markup.html.panel.Panel

        getRegionMarkup, newMarkupSourcingStrategy
      • Methods inherited from class org.apache.wicket.markup.html.WebMarkupContainer

        getWebApplication, getWebPage, getWebRequest, getWebResponse, getWebSession
      • Methods inherited from class org.apache.wicket.MarkupContainer

        add, addDequeuedComponent, addOrReplace, autoAdd, canDequeueTag, contains, dequeue, dequeue, dequeuePreamble, findChildComponent, findComponentToDequeue, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, getMarkupType, internalAdd, internalInitialize, iterator, iterator, newDequeueContext, onComponentTagBody, onDetach, onRender, queue, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderAssociatedMarkup, renderNext, replace, setDefaultModel, size, stream, streamChildren, toString, toString, visitChildren, visitChildren
      • Methods inherited from class org.apache.wicket.Component

        add, addStateChange, beforeRender, canCallListener, canCallListenerAfterExpiry, checkComponentTag, checkComponentTagAttribute, checkHierarchyChange, clearOriginalDestination, configure, continueToOriginalDestination, createConverter, debug, detach, detachModel, detachModels, determineVisibility, error, exceptionMessage, fatal, findMarkupStream, findPage, findParent, findParentWithAssociatedMarkup, getAjaxRegionMarkupId, getApplication, getBehaviorById, getBehaviorId, getBehaviors, getBehaviors, getClassRelativePath, getConverter, getDefaultModel, getDefaultModelObject, getDefaultModelObjectAsString, getDefaultModelObjectAsString, getEscapeModelStrings, getFeedbackMessages, getFlag, getId, getInnermostModel, getInnermostModel, getLocale, getLocalizer, getMarkup, getMarkupAttributes, getMarkupId, getMarkupId, getMarkupIdFromMarkup, getMarkupIdImpl, getMarkupSourcingStrategy, getMarkupTag, getMetaData, getModelComparator, getOutputMarkupId, getOutputMarkupPlaceholderTag, getPage, getPageRelativePath, getParent, getPath, getRenderBodyOnly, getRequest, getRequestCycle, getRequestFlag, getResponse, getSession, getSizeInBytes, getStatelessHint, getString, getString, getString, getStyle, getVariation, hasBeenRendered, hasErrorMessage, hasFeedbackMessage, info, initModel, internalOnModelChanged, internalRenderComponent, internalRenderHead, isActionAuthorized, isAuto, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isInitialized, isRenderAllowed, isRendering, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, markRendering, modelChanged, modelChanging, onAfterRender, onBeforeRender, onComponentTag, onConfigure, onEvent, onModelChanged, onModelChanging, onReAdd, onRemove, redirectToInterceptPage, remove, remove, render, renderComponentTag, rendered, renderHead, renderPart, renderPlaceholderTag, replaceComponentTagBody, replaceWith, sameInnermostModel, sameInnermostModel, send, setAuto, setDefaultModelObject, setEnabled, setEscapeModelStrings, setFlag, setIgnoreAttributeModifier, setMarkup, setMarkupId, setMarkupIdImpl, setMetaData, setOutputMarkupId, setOutputMarkupPlaceholderTag, setParent, setRenderBodyOnly, setResponsePage, setResponsePage, setResponsePage, setVersioned, setVisibilityAllowed, setVisible, success, urlFor, urlFor, urlFor, urlForListener, urlForListener, visitParents, visitParents, warn, wrap
      • Methods inherited from interface org.apache.wicket.IGenericComponent

        getDefaultModel, getDefaultModelObject, getModel, getModelObject, setDefaultModel, setDefaultModelObject, setModel, setModelObject
      • Methods inherited from interface org.apache.wicket.IQueueRegion

        dequeue, newDequeueContext
    • Constructor Detail

      • Window

        public Window​(String id,
                      String title,
                      WindowButtons buttons)
        Constructor
        Parameters:
        id - the markup id, an html div suffice to host a window.
        title - the title of the window
        buttons - the set of predefined buttons
      • Window

        public Window​(String id,
                      String title,
                      List<WindowButton> buttons)
        Constructor
        Parameters:
        id - the markup id, an html div suffice to host a window.
        title - the title of the window
        buttons - the list of WindowButton
      • Window

        public Window​(String id,
                      org.apache.wicket.model.IModel<String> title,
                      WindowButtons buttons)
        Constructor
        Parameters:
        id - the markup id, an html div suffice to host a window.
        title - the title of the window
        buttons - the set of predefined buttons
      • Window

        public Window​(String id,
                      org.apache.wicket.model.IModel<String> title,
                      List<WindowButton> buttons)
        Constructor
        Parameters:
        id - the markup id, an html div suffice to host a window.
        title - the title of the window
        buttons - the list of WindowButton
      • Window

        public Window​(String id,
                      String title,
                      org.apache.wicket.model.IModel<T> model,
                      WindowButtons buttons)
        Constructor
        Parameters:
        id - the markup id, an html div suffice to host a window.
        title - the title of the window
        model - the model to be used in the window.
        buttons - the set of predefined buttons
      • Window

        public Window​(String id,
                      String title,
                      org.apache.wicket.model.IModel<T> model,
                      List<WindowButton> buttons)
        Constructor
        Parameters:
        id - the markup id, an html div suffice to host a window.
        title - the title of the window
        model - the model to be used in the window.
        buttons - the list of WindowButton
      • Window

        public Window​(String id,
                      org.apache.wicket.model.IModel<String> title,
                      org.apache.wicket.model.IModel<T> model,
                      WindowButtons buttons)
        Constructor
        Parameters:
        id - the markup id, an html div suffice to host a window.
        title - the title of the window
        model - the model to be used in the window.
        buttons - the set of predefined buttons
      • Window

        public Window​(String id,
                      org.apache.wicket.model.IModel<String> title,
                      org.apache.wicket.model.IModel<T> model,
                      List<WindowButton> buttons)
        Constructor
        Parameters:
        id - the markup id, an html div suffice to host a window.
        title - the title of the window
        model - the model to be used in the window.
        buttons - the list of WindowButton
    • Method Detail

      • getForm

        protected abstract org.apache.wicket.markup.html.form.Form<?> getForm()
        Gets the Form that should be submitted and validated
        Returns:
        the Form
      • onError

        protected void onError​(org.apache.wicket.ajax.AjaxRequestTarget target,
                               WindowButton button)
        Triggered when the form is submitted, but the validation failed
        Parameters:
        target - the AjaxRequestTarget
        button - the WindowButton
      • onSubmit

        protected void onSubmit​(org.apache.wicket.ajax.AjaxRequestTarget target,
                                WindowButton button)
        Triggered when the form is submitted, and the validation succeed
        Parameters:
        target - the AjaxRequestTarget
        button - the WindowButton
      • onAfterSubmit

        protected void onAfterSubmit​(org.apache.wicket.ajax.AjaxRequestTarget target,
                                     WindowButton button)
        Triggered after the form is submitted, and the validation succeed
        Closes the dialog by default
        Parameters:
        target - the AjaxRequestTarget
        button - the WindowButton