T - the type of the model objectpublic abstract class InputWindow<T> extends FormWindow<T>
TextField, a and a 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() |
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 |
setLabel(String label)
Sets the label model object
|
getForm, newFeedbackPanel, onCancel, onError, onOpen, onSubmit, onSubmitgetButtons, 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, 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 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 FormWindow<T>public void detachModels()
detachModels in class org.apache.wicket.Componentpublic String getLabel()
public void setLabel(String label)
label - the labelprotected boolean isRequired()
TextField's value is requiredpublic String getTextFieldMarkupId()
protected 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 © 2021 7thWeb. All rights reserved.