Class InputWindow<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>
-
- com.googlecode.wicket.kendo.ui.widget.window.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>
- 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 onInputWindow
'sTextField
-
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 InputWindow(String id, String title, String label)
ConstructorInputWindow(String id, String title, org.apache.wicket.model.IModel<T> model, String label)
ConstructorInputWindow(String id, org.apache.wicket.model.IModel<String> title, org.apache.wicket.model.IModel<String> label)
ConstructorInputWindow(String id, org.apache.wicket.model.IModel<String> title, org.apache.wicket.model.IModel<T> model, org.apache.wicket.model.IModel<String> label)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
detachModels()
String
getLabel()
Gets the label model objectString
getTextFieldMarkupId()
protected boolean
isRequired()
Indicates whether theTextField
's value is requiredprotected org.apache.wicket.Component
newLabel(String id, org.apache.wicket.model.IModel<String> model)
Gets a newComponent
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 newFormComponent
that will be used as an input.
Override this method when you need to use aIValidator
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 com.googlecode.wicket.kendo.ui.widget.window.FormWindow
getForm, newFeedbackPanel, onCancel, onError, onOpen, onSubmit, onSubmit
-
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, 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
-
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 windowlabel
- 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 windowlabel
- 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 windowmodel
- the model to be used in the windowlabel
- 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 windowmodel
- the model to be used in the windowlabel
- the label of the textfield
-
-
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 classFormWindow<T>
-
detachModels
public void detachModels()
- Overrides:
detachModels
in classorg.apache.wicket.Component
-
onInitialize
protected void onInitialize()
- Overrides:
onInitialize
in classFormWindow<T>
-
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 theTextField
'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 newComponent
that will be used as a label in the window.
Override this method when you need to show formatted label.- Parameters:
id
- the markup idmodel
- the labelIModel
- 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 newFormComponent
that will be used as an input.
Override this method when you need to use aIValidator
or different input type, e.g.NumberTextField
orPasswordField
.- Parameters:
id
- the markup idmodel
- theIModel
- Returns:
- the new
FormComponent
-
-