Class FormWindow<T>

  • Type Parameters:
    T - the type of the model object
    All Implemented Interfaces:
    com.googlecode.wicket.jquery.core.IJQueryWidget, IWindowListener, Serializable, Iterable<org.apache.wicket.Component>, org.apache.wicket.event.IEventSink, org.apache.wicket.event.IEventSource, org.apache.wicket.feedback.IFeedbackContributor, org.apache.wicket.IConverterLocator, org.apache.wicket.IGenericComponent<T,​org.apache.wicket.markup.html.panel.GenericPanel<T>>, org.apache.wicket.IMetadataContext<Serializable,​org.apache.wicket.Component>, org.apache.wicket.IQueueRegion, org.apache.wicket.markup.html.IHeaderContributor, org.apache.wicket.request.component.IRequestableComponent, org.apache.wicket.util.IHierarchical<org.apache.wicket.Component>, org.apache.wicket.util.io.IClusterable
    Direct Known Subclasses:
    InputWindow

    public abstract class FormWindow<T>
    extends Window<T>
    Provides a Kendo UI base Window containing a Form, a KendoFeedbackPanel, a "OK" and a "CANCEL" button

    Implementation may look like:
      
      final Form<?> form = this.getForm();
      form.add(new TextField("myId", this.getModel()));
      
     
    Since:
    8.0.0
    Author:
    Sebastien Briquet - sebfz1
    See Also:
    Serialized Form
    • 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
      org.apache.wicket.markup.html.form.Form<?> getForm()
      Gets the inner Form
      protected KendoFeedbackPanel newFeedbackPanel​(String id)
      protected void onCancel​(org.apache.wicket.ajax.AjaxRequestTarget target)
      Triggered when the 'cancel' button is clicked
      protected void onError​(org.apache.wicket.ajax.AjaxRequestTarget target, WindowButton button)
      Triggered when the form is submitted, but the validation failed
      protected void onInitialize()  
      protected void onOpen​(org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler)
      Triggered when the window opens
      protected abstract void onSubmit​(org.apache.wicket.ajax.AjaxRequestTarget target)
      Triggered when the 'submit' button is clicked, and the validation succeed
      protected void onSubmit​(org.apache.wicket.ajax.AjaxRequestTarget target, WindowButton button)
      Triggered when the form is submitted, and the validation succeed
      void renderHead​(org.apache.wicket.markup.head.IHeaderResponse response)  
      • 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, 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

      • FormWindow

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

        public FormWindow​(String id,
                          String title,
                          org.apache.wicket.model.IModel<T> model)
        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
      • FormWindow

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

        public FormWindow​(String id,
                          org.apache.wicket.model.IModel<String> title,
                          org.apache.wicket.model.IModel<T> model)
        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
    • Method Detail

      • renderHead

        public void renderHead​(org.apache.wicket.markup.head.IHeaderResponse response)
        Specified by:
        renderHead in interface org.apache.wicket.markup.html.IHeaderContributor
        Overrides:
        renderHead in class org.apache.wicket.Component
      • onOpen

        protected void onOpen​(org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler)
        Description copied from class: AbstractWindow
        Triggered when the window opens
        Overrides:
        onOpen in class AbstractWindow<T>
        Parameters:
        handler - the IPartialPageRequestHandler
      • onError

        protected void onError​(org.apache.wicket.ajax.AjaxRequestTarget target,
                               WindowButton button)
        Description copied from class: Window
        Triggered when the form is submitted, but the validation failed
        Overrides:
        onError in class Window<T>
        Parameters:
        target - the AjaxRequestTarget
        button - the WindowButton
      • onSubmit

        protected void onSubmit​(org.apache.wicket.ajax.AjaxRequestTarget target,
                                WindowButton button)
        Description copied from class: Window
        Triggered when the form is submitted, and the validation succeed
        Overrides:
        onSubmit in class Window<T>
        Parameters:
        target - the AjaxRequestTarget
        button - the WindowButton
      • onSubmit

        protected abstract void onSubmit​(org.apache.wicket.ajax.AjaxRequestTarget target)
        Triggered when the 'submit' button is clicked, and the validation succeed
        Parameters:
        target - the AjaxRequestTarget
      • onCancel

        protected void onCancel​(org.apache.wicket.ajax.AjaxRequestTarget target)
        Triggered when the 'cancel' button is clicked
        Parameters:
        target - the AjaxRequestTarget
      • getForm

        public org.apache.wicket.markup.html.form.Form<?> getForm()
        Gets the inner Form
        Specified by:
        getForm in class Window<T>
        Returns:
        the form