T - the type of the model objectpublic abstract class InputWindow<T> extends Window<T>
TextField, an 'Ok' and a 'Cancel' button| Modifier and Type | Class and Description |
|---|---|
static class |
InputWindow.AutoFocusBehavior
Provides an auto-focus Behavior on
InputWindow's TextField |
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 |
|---|
InputWindow(String id,
org.apache.wicket.model.IModel<String> title,
org.apache.wicket.model.IModel<String> label)
Constructor
|
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
|
InputWindow(String id,
String title,
org.apache.wicket.model.IModel<T> model,
String label)
Constructor
|
InputWindow(String id,
String title,
String label)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
detachModels() |
org.apache.wicket.markup.html.form.Form<?> |
getForm()
Gets the inner
Form |
String |
getLabel()
Gets the label model object
|
String |
getTextFieldMarkupId() |
protected boolean |
isRequired()
Indicates whether the
TextField's value is required |
protected KendoFeedbackPanel |
newFeedbackPanel(String id)
Gets a new
KendoFeedbackPanel |
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 |
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 |
setLabel(String label)
Sets the label model object
|
getButtons, newButtonPanel, onAfterSubmitclose, getTitle, getTitleModel, getWidth, isActionEventEnabled, isCentered, isCloseEventEnabled, isModal, isResizable, newWidgetBehavior, onAction, onBeforeRender, onClose, onConfigure, open, setTitle, setTitle, setTitleModel, setTitleModel, widgetgetRegionMarkup, newMarkupSourcingStrategygetWebApplication, getWebPage, getWebRequest, getWebResponse, getWebSessionadd, addDequeuedComponent, addOrReplace, autoAdd, canDequeueTag, contains, dequeue, dequeue, dequeuePreamble, findComponentToDequeue, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, getMarkupType, internalAdd, internalInitialize, iterator, iterator, newDequeueContext, onAfterRenderChildren, onComponentTagBody, onDetach, onRender, queue, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderNext, replace, setDefaultModel, size, stream, streamChildren, toString, toString, visitChildren, visitChildrenadd, addStateChange, afterRender, 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, 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, isInitialized, 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, 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, urlForListener, urlForListener, visitParents, visitParents, warn, wrapclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDefaultModel, getDefaultModelObject, getModel, getModelObject, setDefaultModel, setDefaultModelObject, setModel, setModelObjectforEach, spliteratorpublic InputWindow(String id, String title, String label)
id - the markup id, an html div suffice to host a window.title - the title of the windowlabel - the label of the textfieldpublic InputWindow(String id, org.apache.wicket.model.IModel<String> title, org.apache.wicket.model.IModel<String> label)
id - the markup id, an html div suffice to host a window.title - the title of the windowlabel - the label of the textfieldpublic InputWindow(String id, String title, org.apache.wicket.model.IModel<T> model, String label)
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 windowlabel - the label of the textfieldpublic InputWindow(String id, org.apache.wicket.model.IModel<String> title, org.apache.wicket.model.IModel<T> model, org.apache.wicket.model.IModel<String> label)
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 windowlabel - the label of the textfieldprotected 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 void detachModels()
detachModels in class org.apache.wicket.Componentpublic org.apache.wicket.markup.html.form.Form<?> getForm()
Formpublic String getLabel()
public void setLabel(String label)
label - the labelprotected boolean isRequired()
TextField's value is requiredpublic String getTextFieldMarkupId()
protected KendoFeedbackPanel newFeedbackPanel(String id)
KendoFeedbackPanelid - the markup idKendoFeedbackPanelprotected org.apache.wicket.Component newLabel(String id, org.apache.wicket.model.IModel<String> model)
Component that will be used as a label in the window.id - the markup idmodel - the label IModelprotected org.apache.wicket.markup.html.form.FormComponent<T> newTextField(String id, org.apache.wicket.model.IModel<T> model)
FormComponent that will be used as an input.IValidator or different input type, e.g. NumberTextField or PasswordField.id - the markup idmodel - the IModelFormComponentCopyright © 2017 7thWeb. All rights reserved.