T - the model object typepublic abstract class Window<T> extends AbstractWindow<T>
AbstractWindow that provides a set of WindowButtons and events such as onSubmit(AjaxRequestTarget, WindowButton), onError(AjaxRequestTarget, WindowButton) and
onAfterSubmit(AjaxRequestTarget, WindowButton)onAfterSubmit(AjaxRequestTarget, WindowButton)| Modifier and Type | Field and Description |
|---|---|
static String |
CANCEL |
static String |
CLOSE |
static org.apache.wicket.model.IModel<String> |
LBL_CANCEL |
static org.apache.wicket.model.IModel<String> |
LBL_CLOSE |
static org.apache.wicket.model.IModel<String> |
LBL_NO |
static org.apache.wicket.model.IModel<String> |
LBL_OK |
static org.apache.wicket.model.IModel<String> |
LBL_SUBMIT |
static org.apache.wicket.model.IModel<String> |
LBL_YES |
static String |
NO |
static String |
OK |
static String |
SUBMIT |
static String |
YES |
ACTION_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 |
|---|
Window(String id,
org.apache.wicket.model.IModel<String> title,
org.apache.wicket.model.IModel<T> model,
List<WindowButton> buttons)
Constructor
|
Window(String id,
org.apache.wicket.model.IModel<String> title,
org.apache.wicket.model.IModel<T> model,
WindowButtons buttons)
Constructor
|
Window(String id,
org.apache.wicket.model.IModel<String> title,
List<WindowButton> buttons)
Constructor
|
Window(String id,
org.apache.wicket.model.IModel<String> title,
WindowButtons buttons)
Constructor
|
Window(String id,
String title,
org.apache.wicket.model.IModel<T> model,
List<WindowButton> buttons)
Constructor
|
Window(String id,
String title,
org.apache.wicket.model.IModel<T> model,
WindowButtons buttons)
Constructor
|
Window(String id,
String title,
List<WindowButton> buttons)
Constructor
|
Window(String id,
String title,
WindowButtons buttons)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected List<WindowButton> |
getButtons()
Gets the list of
WindowButtons This method an be overridden to provide a behavioral helper for instance |
protected abstract org.apache.wicket.markup.html.form.Form<?> |
getForm()
Gets the
Form that should be submitted and validated |
protected WindowButtonPanel |
newButtonPanel(String id,
List<WindowButton> buttons)
Gets a new
WindowButtonPanel |
protected void |
onAfterSubmit(org.apache.wicket.ajax.AjaxRequestTarget target,
WindowButton button)
Triggered after the form is submitted, and the validation succeed
Closes the dialog by default |
protected void |
onError(org.apache.wicket.ajax.AjaxRequestTarget target,
WindowButton button)
Triggered when the form is submitted, but the validation failed
|
protected void |
onSubmit(org.apache.wicket.ajax.AjaxRequestTarget target,
WindowButton button)
Triggered when the form is submitted, and the validation succeed
|
close, getTitle, getTitleModel, getWidth, isActionEventEnabled, isCentered, isCloseEventEnabled, isModal, isResizable, newWidgetBehavior, onAction, onBeforeRender, onClose, onConfigure, onInitialize, onOpen, 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 static final String OK
public static final String NO
public static final String YES
public static final String CLOSE
public static final String CANCEL
public static final String SUBMIT
public static final org.apache.wicket.model.IModel<String> LBL_OK
public static final org.apache.wicket.model.IModel<String> LBL_NO
public static final org.apache.wicket.model.IModel<String> LBL_YES
public static final org.apache.wicket.model.IModel<String> LBL_CLOSE
public static final org.apache.wicket.model.IModel<String> LBL_CANCEL
public static final org.apache.wicket.model.IModel<String> LBL_SUBMIT
public Window(String id, String title, WindowButtons buttons)
id - the markup id, an html div suffice to host a window.title - the title of the windowbuttons - the set of predefined buttonspublic Window(String id, String title, List<WindowButton> buttons)
id - the markup id, an html div suffice to host a window.title - the title of the windowbuttons - the list of WindowButtonpublic Window(String id, org.apache.wicket.model.IModel<String> title, WindowButtons buttons)
id - the markup id, an html div suffice to host a window.title - the title of the windowbuttons - the set of predefined buttonspublic Window(String id, org.apache.wicket.model.IModel<String> title, List<WindowButton> buttons)
id - the markup id, an html div suffice to host a window.title - the title of the windowbuttons - the list of WindowButtonpublic Window(String id, String title, org.apache.wicket.model.IModel<T> model, WindowButtons buttons)
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.buttons - the set of predefined buttonspublic Window(String id, String title, org.apache.wicket.model.IModel<T> model, List<WindowButton> buttons)
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.buttons - the list of WindowButtonpublic Window(String id, org.apache.wicket.model.IModel<String> title, org.apache.wicket.model.IModel<T> model, WindowButtons buttons)
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.buttons - the set of predefined buttonspublic Window(String id, org.apache.wicket.model.IModel<String> title, org.apache.wicket.model.IModel<T> model, List<WindowButton> buttons)
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.buttons - the list of WindowButtonprotected abstract org.apache.wicket.markup.html.form.Form<?> getForm()
Form that should be submitted and validatedFormprotected List<WindowButton> getButtons()
WindowButtons This method an be overridden to provide a behavioral helper for instanceWindowButtonsWindowButtonUtils.setDefaultFormProcessing(WindowButtons, boolean)protected void onError(org.apache.wicket.ajax.AjaxRequestTarget target,
WindowButton button)
target - the AjaxRequestTargetbutton - the WindowButtonprotected void onSubmit(org.apache.wicket.ajax.AjaxRequestTarget target,
WindowButton button)
target - the AjaxRequestTargetbutton - the WindowButtonprotected void onAfterSubmit(org.apache.wicket.ajax.AjaxRequestTarget target,
WindowButton button)
target - the AjaxRequestTargetbutton - the WindowButtonprotected WindowButtonPanel newButtonPanel(String id, List<WindowButton> buttons)
WindowButtonPanelid - the markup idbuttons - the list of WindowButtonWindowButtonPanelCopyright © 2021 7thWeb. All rights reserved.