T - the type of the model objectpublic abstract class FormWindow<T> extends Window<T>
Form, a KendoFeedbackPanel, a and a button
final Form<?> form = this.getForm();
form.add(new TextField("myId", this.getModel()));
CANCEL, CLOSE, LBL_CANCEL, LBL_CLOSE, LBL_NO, LBL_OK, LBL_SUBMIT, LBL_YES, NO, OK, SUBMIT, YESACTION_CLOSE, ACTION_CUSTOM, ACTION_MAXIMIZE, ACTION_MINIMIZE, ACTION_PIN, ACTION_REFRESHENABLE, FLAG_AFTER_RENDERING, FLAG_INITIALIZED, FLAG_PREPARED_FOR_RENDER, FLAG_REMOVING_FROM_HIERARCHY, FLAG_RENDERING, FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, FLAG_RESERVED8, PARENT_PATH, PATH_SEPARATOR, RENDER, RFLAG_CONTAINER_DEQUEING| Constructor and Description |
|---|
FormWindow(String id,
org.apache.wicket.model.IModel<String> title)
Constructor
|
FormWindow(String id,
org.apache.wicket.model.IModel<String> title,
org.apache.wicket.model.IModel<T> model)
Constructor
|
FormWindow(String id,
String title)
Constructor
|
FormWindow(String id,
String title,
org.apache.wicket.model.IModel<T> model)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.wicket.markup.html.form.Form<?> |
getForm()
Gets the inner
Form |
protected KendoFeedbackPanel |
newFeedbackPanel(String id)
Gets a new
KendoFeedbackPanel |
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
|
getButtons, newButtonPanel, onAfterSubmitclose, getTitle, getTitleModel, getWidth, isActionEventEnabled, isCentered, isCloseEventEnabled, isModal, isResizable, newWidgetBehavior, onAction, onBeforeRender, onClose, onConfigure, open, setTitle, setTitle, setTitleModel, setTitleModel, widgetgetModel, getModelObject, setModel, setModelObjectgetRegionMarkup, newMarkupSourcingStrategygetWebApplication, getWebPage, getWebRequest, getWebResponse, getWebSessionadd, addDequeuedComponent, addOrReplace, autoAdd, canDequeueTag, contains, dequeue, dequeue, dequeuePreamble, findChildComponent, findComponentToDequeue, get, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, getMarkupType, internalAdd, internalInitialize, iterator, iterator, newDequeueContext, onAfterRenderChildren, onComponentTagBody, onDetach, onRender, queue, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderNext, replace, setDefaultModel, size, swap, toString, toString, visitChildren, visitChildren, visitChildren, visitChildrenadd, addStateChange, afterRender, beforeRender, canCallListenerInterface, canCallListenerInterfaceAfterExpiry, 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, 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, internalPrepareForRender, internalRenderComponent, internalRenderHead, isActionAuthorized, isAuto, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isRenderAllowed, isRendering, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, markRendering, modelChanged, modelChanging, onAfterRender, onBeforeRender, onComponentTag, onConfigure, onEvent, onModelChanged, onModelChanging, onReAdd, onRemove, prepareForRender, redirectToInterceptPage, remove, remove, render, renderComponentTag, rendered, renderHead, renderHead, renderPlaceholderTag, replaceComponentTagBody, replaceWith, sameInnermostModel, sameInnermostModel, send, setAuto, setDefaultModelObject, setEnabled, setEscapeModelStrings, setFlag, setIgnoreAttributeModifier, setMarkup, setMarkupId, setMarkupIdImpl, setMetaData, setOutputMarkupId, setOutputMarkupPlaceholderTag, setParent, setRenderBodyOnly, setRequestFlag, setResponsePage, setResponsePage, setResponsePage, setVersioned, setVisibilityAllowed, setVisible, success, urlFor, urlFor, urlFor, urlFor, urlFor, visitParents, visitParents, warn, wrapclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic FormWindow(String id, String title)
id - the markup id, an html div suffice to host a window.title - the title of the windowpublic FormWindow(String id, String title, org.apache.wicket.model.IModel<T> model)
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 windowpublic FormWindow(String id, org.apache.wicket.model.IModel<String> title)
id - the markup id, an html div suffice to host a window.title - the title of the windowprotected void onInitialize()
onInitialize in class AbstractWindow<T>protected void onOpen(org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler)
AbstractWindowonOpen in class AbstractWindow<T>handler - the IPartialPageRequestHandlerprotected void onError(org.apache.wicket.ajax.AjaxRequestTarget target,
WindowButton button)
WindowonError in class Window<T>target - the AjaxRequestTargetbutton - the WindowButtonprotected void onSubmit(org.apache.wicket.ajax.AjaxRequestTarget target,
WindowButton button)
WindowonSubmit in class Window<T>target - the AjaxRequestTargetbutton - the WindowButtonprotected abstract void onSubmit(org.apache.wicket.ajax.AjaxRequestTarget target)
target - the AjaxRequestTargetprotected void onCancel(org.apache.wicket.ajax.AjaxRequestTarget target)
target - the AjaxRequestTargetpublic org.apache.wicket.markup.html.form.Form<?> getForm()
Formprotected KendoFeedbackPanel newFeedbackPanel(String id)
KendoFeedbackPanelid - the markup idKendoFeedbackPanelCopyright © 2021 7thWeb. All rights reserved.