Class FormWindow<T>
- java.lang.Object
-
- org.apache.wicket.Component
-
- org.apache.wicket.MarkupContainer
-
- org.apache.wicket.markup.html.WebMarkupContainer
-
- org.apache.wicket.markup.html.panel.Panel
-
- org.apache.wicket.markup.html.panel.GenericPanel<T>
-
- com.googlecode.wicket.kendo.ui.widget.window.AbstractWindow<T>
-
- com.googlecode.wicket.kendo.ui.widget.window.Window<T>
-
- com.googlecode.wicket.kendo.ui.widget.window.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 aForm
, aKendoFeedbackPanel
, 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
-
-
Field Summary
-
Fields inherited from class com.googlecode.wicket.kendo.ui.widget.window.Window
CANCEL, CLOSE, LBL_CANCEL, LBL_CLOSE, LBL_NO, LBL_OK, LBL_SUBMIT, LBL_YES, NO, OK, SUBMIT, YES
-
Fields inherited from class com.googlecode.wicket.kendo.ui.widget.window.AbstractWindow
ACTION_CLOSE, ACTION_CUSTOM, ACTION_MAXIMIZE, ACTION_MINIMIZE, ACTION_PIN, ACTION_REFRESH
-
-
Constructor Summary
Constructors Constructor Description FormWindow(String id, String title)
ConstructorFormWindow(String id, String title, org.apache.wicket.model.IModel<T> model)
ConstructorFormWindow(String id, org.apache.wicket.model.IModel<String> title)
ConstructorFormWindow(String id, org.apache.wicket.model.IModel<String> title, org.apache.wicket.model.IModel<T> model)
Constructor
-
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 innerForm
protected KendoFeedbackPanel
newFeedbackPanel(String id)
Gets a newKendoFeedbackPanel
protected void
onCancel(org.apache.wicket.ajax.AjaxRequestTarget target)
Triggered when the 'cancel' button is clickedprotected void
onError(org.apache.wicket.ajax.AjaxRequestTarget target, WindowButton button)
Triggered when the form is submitted, but the validation failedprotected void
onInitialize()
protected void
onOpen(org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler)
Triggered when the window opensprotected abstract void
onSubmit(org.apache.wicket.ajax.AjaxRequestTarget target)
Triggered when the 'submit' button is clicked, and the validation succeedprotected void
onSubmit(org.apache.wicket.ajax.AjaxRequestTarget target, WindowButton button)
Triggered when the form is submitted, and the validation succeedvoid
renderHead(org.apache.wicket.markup.head.IHeaderResponse response)
-
Methods inherited from class com.googlecode.wicket.kendo.ui.widget.window.Window
getButtons, newButtonPanel, onAfterSubmit
-
Methods inherited from class com.googlecode.wicket.kendo.ui.widget.window.AbstractWindow
close, getTitle, getTitleModel, getWidth, isActionEventEnabled, isCentered, isCloseEventEnabled, isModal, isResizable, newWidgetBehavior, onAction, onBeforeRender, onClose, onConfigure, open, setTitle, setTitle, setTitleModel, setTitleModel, widget
-
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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.wicket.IGenericComponent
getDefaultModel, getDefaultModelObject, getModel, getModelObject, setDefaultModel, setDefaultModelObject, setModel, setModelObject
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
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 windowmodel
- 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
-
-
Method Detail
-
renderHead
public void renderHead(org.apache.wicket.markup.head.IHeaderResponse response)
- Specified by:
renderHead
in interfaceorg.apache.wicket.markup.html.IHeaderContributor
- Overrides:
renderHead
in classorg.apache.wicket.Component
-
onInitialize
protected void onInitialize()
- Overrides:
onInitialize
in classAbstractWindow<T>
-
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 classAbstractWindow<T>
- Parameters:
handler
- theIPartialPageRequestHandler
-
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 classWindow<T>
- Parameters:
target
- theAjaxRequestTarget
button
- theWindowButton
-
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 classWindow<T>
- Parameters:
target
- theAjaxRequestTarget
button
- theWindowButton
-
onSubmit
protected abstract void onSubmit(org.apache.wicket.ajax.AjaxRequestTarget target)
Triggered when the 'submit' button is clicked, and the validation succeed- Parameters:
target
- theAjaxRequestTarget
-
onCancel
protected void onCancel(org.apache.wicket.ajax.AjaxRequestTarget target)
Triggered when the 'cancel' button is clicked- Parameters:
target
- theAjaxRequestTarget
-
getForm
public org.apache.wicket.markup.html.form.Form<?> getForm()
Gets the innerForm
-
newFeedbackPanel
protected KendoFeedbackPanel newFeedbackPanel(String id)
Gets a newKendoFeedbackPanel
- Parameters:
id
- the markup id- Returns:
- a new
KendoFeedbackPanel
-
-