Class InputWindow<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

    public abstract class InputWindow<T>
    extends FormWindow<T>
    Provides a Kendo UI Window having a TextField, a "OK" and a "CANCEL" button
    Since:
    6.17.0
    Author:
    Sebastien Briquet - sebfz1
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  InputWindow.AutoFocusBehavior
      Provides an auto-focus Behavior on InputWindow's TextField
      • 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 Concrete Methods 
      Modifier and Type Method Description
      void detachModels()  
      String getLabel()
      Gets the label model object
      String getTextFieldMarkupId()  
      protected boolean isRequired()
      Indicates whether the TextField's value is required
      protected org.apache.wicket.Component newLabel​(String id, org.apache.wicket.model.IModel<String> model)
      Gets a new Component that will be used as a label in the window.
      Override this method when you need to show formatted label.
      protected org.apache.wicket.markup.html.form.FormComponent<T> newTextField​(String id, org.apache.wicket.model.IModel<T> model)
      Gets a new FormComponent that will be used as an input.
      Override this method when you need to use a IValidator or different input type, e.g.
      protected void onInitialize()  
      void renderHead​(org.apache.wicket.markup.head.IHeaderResponse response)  
      void setLabel​(String label)
      Sets the label model object
      • 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, 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

      • InputWindow

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

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

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

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

        public void detachModels()
        Overrides:
        detachModels in class org.apache.wicket.Component
      • getLabel

        public String getLabel()
        Gets the label model object
        Returns:
        label the label
      • setLabel

        public void setLabel​(String label)
        Sets the label model object
        Parameters:
        label - the label
      • isRequired

        protected boolean isRequired()
        Indicates whether the TextField's value is required
        Returns:
        true by default
      • getTextFieldMarkupId

        public String getTextFieldMarkupId()
      • newLabel

        protected org.apache.wicket.Component newLabel​(String id,
                                                       org.apache.wicket.model.IModel<String> model)
        Gets a new Component that will be used as a label in the window.
        Override this method when you need to show formatted label.
        Parameters:
        id - the markup id
        model - the label IModel
        Returns:
        the new label component.
      • newTextField

        protected org.apache.wicket.markup.html.form.FormComponent<T> newTextField​(String id,
                                                                                   org.apache.wicket.model.IModel<T> model)
        Gets a new FormComponent that will be used as an input.
        Override this method when you need to use a IValidator or different input type, e.g. NumberTextField or PasswordField.
        Parameters:
        id - the markup id
        model - the IModel
        Returns:
        the new FormComponent