T - the type of the model objectpublic abstract class AbstractWindow<T> extends org.apache.wicket.markup.html.panel.GenericPanel<T> implements com.googlecode.wicket.jquery.core.IJQueryWidget, IWindowListener
| Modifier and Type | Field and Description |
|---|---|
protected static String |
ACTION_CLOSE |
protected static String |
ACTION_CUSTOM |
protected static String |
ACTION_MAXIMIZE |
protected static String |
ACTION_MINIMIZE |
protected static String |
ACTION_PIN |
protected static String |
ACTION_REFRESH |
ENABLE, 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 |
|---|
AbstractWindow(String id,
org.apache.wicket.model.IModel<String> title)
Constructor
|
AbstractWindow(String id,
org.apache.wicket.model.IModel<String> title,
boolean modal)
Constructor
|
AbstractWindow(String id,
org.apache.wicket.model.IModel<String> title,
org.apache.wicket.model.IModel<T> model)
Constructor
|
AbstractWindow(String id,
org.apache.wicket.model.IModel<String> title,
org.apache.wicket.model.IModel<T> model,
boolean modal)
Constructor
|
AbstractWindow(String id,
String title)
Constructor
|
AbstractWindow(String id,
String title,
boolean modal)
Constructor
|
AbstractWindow(String id,
String title,
org.apache.wicket.model.IModel<T> model)
Constructor
|
AbstractWindow(String id,
String title,
org.apache.wicket.model.IModel<T> model,
boolean modal)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
close(org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler)
Closes the window in ajax.
|
String |
getTitle()
Gets the window's title
|
org.apache.wicket.model.IModel<String> |
getTitleModel()
Gets the window's title
|
int |
getWidth()
Gets the window's with
|
boolean |
isActionEventEnabled()
Indicates whether the action events are enabled.
If true, the IWindowListener.onAction(AjaxRequestTarget, String) event will be triggered |
boolean |
isCentered()
Indicates whether the window is centered
|
boolean |
isCloseEventEnabled()
Indicates whether the close event is enabled.
|
boolean |
isModal()
Gets the modal flag
|
boolean |
isResizable()
Indicates whether the window is resizable
|
WindowBehavior |
newWidgetBehavior(String selector) |
void |
onAction(org.apache.wicket.ajax.AjaxRequestTarget target,
String action)
Triggered when an action button is clicked.
|
void |
onBeforeRender(com.googlecode.wicket.jquery.core.JQueryBehavior behavior) |
void |
onClose(org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler)
Triggered when then the Window closes, either trough the 'X' icon or the 'escape' key (
IWindowListener.isCloseEventEnabled() should return true), or if close(IPartialPageRequestHandler) has been called |
void |
onConfigure(com.googlecode.wicket.jquery.core.JQueryBehavior behavior) |
protected void |
onInitialize() |
protected void |
onOpen(org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler)
Triggered when the window opens
|
void |
open(org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler)
Opens the window in ajax.
|
void |
setTitle(org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler,
String title)
Sets the window's title dynamically
|
void |
setTitle(String title)
Sets the window's title
|
void |
setTitleModel(org.apache.wicket.model.IModel<String> model)
Sets the window's title
|
void |
setTitleModel(org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler,
org.apache.wicket.model.IModel<String> model)
Sets the window's title dynamically
|
String |
widget()
Gets the Kendo UI widget
|
getModel, 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, spliteratorprotected static final String ACTION_PIN
protected static final String ACTION_CLOSE
protected static final String ACTION_REFRESH
protected static final String ACTION_CUSTOM
protected static final String ACTION_MINIMIZE
protected static final String ACTION_MAXIMIZE
public AbstractWindow(String id, String title)
id - the markup id, an html div suffice to host a window.title - the title of the windowpublic AbstractWindow(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 windowpublic AbstractWindow(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 window.public AbstractWindow(String id, org.apache.wicket.model.IModel<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 window.public AbstractWindow(String id, String title, boolean modal)
id - the markup id, an html div suffice to host a window.title - the title of the windowmodal - indicates whether the window is modalpublic AbstractWindow(String id, org.apache.wicket.model.IModel<String> title, boolean modal)
id - the markup id, an html div suffice to host a window.title - the title of the windowmodal - indicates whether the window is modalpublic AbstractWindow(String id, String title, org.apache.wicket.model.IModel<T> model, boolean modal)
id - the markup id, an html div suffice to host a window.title - the title of the windowmodal - indicates whether the window is modalmodel - the model to be used in the windowpublic AbstractWindow(String id, org.apache.wicket.model.IModel<String> title, org.apache.wicket.model.IModel<T> model, boolean modal)
id - the markup id, an html div suffice to host a window.title - the title of the windowmodal - indicates whether the window is modalmodel - the model to be used in the windowpublic String widget()
public final void open(org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler)
handler - the IPartialPageRequestHandlerpublic final void close(org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler)
handler - the IPartialPageRequestHandlerpublic int getWidth()
WIDTH by defaultpublic String getTitle()
public void setTitle(String title)
title - the window's titlepublic void setTitle(org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler,
String title)
handler - the IPartialPageRequestHandlertitle - the window's titlepublic org.apache.wicket.model.IModel<String> getTitleModel()
public void setTitleModel(org.apache.wicket.model.IModel<String> model)
model - the window's titlepublic void setTitleModel(org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler,
org.apache.wicket.model.IModel<String> model)
handler - the IPartialPageRequestHandlermodel - the window's titlepublic final boolean isModal()
public boolean isCentered()
true by defaultpublic boolean isResizable()
false by defaultWindowBehavior.isCentered()public boolean isActionEventEnabled()
IWindowListenerIWindowListener.onAction(AjaxRequestTarget, String) event will be triggeredisActionEventEnabled in interface IWindowListenerpublic boolean isCloseEventEnabled()
IWindowListenerIWindowListener.onClose(IPartialPageRequestHandler) event will be triggeredisCloseEventEnabled in interface IWindowListenerprotected void onInitialize()
onInitialize in class org.apache.wicket.MarkupContainerpublic void onConfigure(com.googlecode.wicket.jquery.core.JQueryBehavior behavior)
onConfigure in interface com.googlecode.wicket.jquery.core.IJQueryWidgetpublic void onBeforeRender(com.googlecode.wicket.jquery.core.JQueryBehavior behavior)
onBeforeRender in interface com.googlecode.wicket.jquery.core.IJQueryWidgetprotected void onOpen(org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler)
handler - the IPartialPageRequestHandlerpublic void onAction(org.apache.wicket.ajax.AjaxRequestTarget target,
String action)
IWindowListeneronAction in interface IWindowListenertarget - the AjaxRequestTargetaction - the action that fired the eventpublic void onClose(org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler)
IWindowListenerIWindowListener.isCloseEventEnabled() should return true), or if close(IPartialPageRequestHandler) has been calledonClose in interface IWindowListenerhandler - the IPartialPageRequestHandlerpublic WindowBehavior newWidgetBehavior(String selector)
newWidgetBehavior in interface com.googlecode.wicket.jquery.core.IJQueryWidgetIJQueryWidget.newWidgetBehavior(String)Copyright © 2021 7thWeb. All rights reserved.