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 |
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.ajax.AjaxRequestTarget target)
Closes the window in ajax.
|
org.apache.wicket.model.IModel<String> |
getTitle()
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.ajax.AjaxRequestTarget target)
Triggered when then the Window closes, either trough the 'X' icon or the 'escape' key (
IWindowListener.isCloseEventEnabled() should return true ), or if close(AjaxRequestTarget) has been called |
void |
onConfigure(com.googlecode.wicket.jquery.core.JQueryBehavior behavior) |
protected void |
onInitialize() |
protected void |
onOpen(org.apache.wicket.ajax.AjaxRequestTarget target)
Triggered when the window opens
|
void |
open(org.apache.wicket.ajax.AjaxRequestTarget target)
Opens the window in ajax.
|
void |
setTitle(org.apache.wicket.ajax.AjaxRequestTarget target,
org.apache.wicket.model.IModel<String> title)
Sets the window's title dynamically
|
void |
setTitle(org.apache.wicket.ajax.AjaxRequestTarget target,
String title)
Sets the window's title dynamically
|
void |
setTitle(org.apache.wicket.model.IModel<String> title)
Sets the window's title
|
getModel, getModelObject, setModel, setModelObject
getWebPage, getWebRequest, getWebResponse, getWebSession
add, addOrReplace, autoAdd, contains, get, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, getMarkupType, internalAdd, internalInitialize, iterator, iterator, onAfterRenderChildren, onComponentTagBody, onRender, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderNext, replace, setDefaultModel, size, swap, toString, toString, visitChildren, visitChildren, visitChildren, visitChildren
add, addStateChange, afterRender, beforeRender, canCallListenerInterface, checkComponentTag, checkComponentTagAttribute, checkHierarchyChange, clearOriginalDestination, configure, continueToOriginalDestination, 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, isActionAuthorized, isAuto, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isRenderAllowed, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, markRendering, modelChanged, modelChanging, onAfterRender, onBeforeRender, onComponentTag, onConfigure, onDetach, onEvent, onModelChanged, onModelChanging, onReAdd, onRemove, prepareForRender, redirectToInterceptPage, remove, remove, render, renderComponentTag, rendered, renderHead, 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, wrap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
protected 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 final void open(org.apache.wicket.ajax.AjaxRequestTarget target)
target
- the AjaxRequestTarget
public final void close(org.apache.wicket.ajax.AjaxRequestTarget target)
target
- the AjaxRequestTarget
public int getWidth()
WIDTH
by defaultpublic org.apache.wicket.model.IModel<String> getTitle()
public void setTitle(org.apache.wicket.model.IModel<String> title)
title
- the window's titlepublic void setTitle(org.apache.wicket.ajax.AjaxRequestTarget target, String title)
target
- the AjaxRequestTarget
title
- the window's titlepublic void setTitle(org.apache.wicket.ajax.AjaxRequestTarget target, org.apache.wicket.model.IModel<String> title)
target
- the AjaxRequestTarget
title
- the window's titlepublic final boolean isModal()
public boolean isCentered()
public boolean isResizable()
WindowBehavior.isCentered()
public boolean isActionEventEnabled()
IWindowListener
IWindowListener.onAction(AjaxRequestTarget, String)
event will be triggeredisActionEventEnabled
in interface IWindowListener
public boolean isCloseEventEnabled()
IWindowListener
IWindowListener.onClose(AjaxRequestTarget)
event will be triggeredisCloseEventEnabled
in interface IWindowListener
protected void onInitialize()
onInitialize
in class org.apache.wicket.Component
public void onConfigure(com.googlecode.wicket.jquery.core.JQueryBehavior behavior)
onConfigure
in interface com.googlecode.wicket.jquery.core.IJQueryWidget
public void onBeforeRender(com.googlecode.wicket.jquery.core.JQueryBehavior behavior)
onBeforeRender
in interface com.googlecode.wicket.jquery.core.IJQueryWidget
protected void onOpen(org.apache.wicket.ajax.AjaxRequestTarget target)
target
- the AjaxRequestTarget
public void onAction(org.apache.wicket.ajax.AjaxRequestTarget target, String action)
IWindowListener
onAction
in interface IWindowListener
target
- the AjaxRequestTarget
action
- the action that fired the eventpublic void onClose(org.apache.wicket.ajax.AjaxRequestTarget target)
IWindowListener
IWindowListener.isCloseEventEnabled()
should return true
), or if close(AjaxRequestTarget)
has been calledonClose
in interface IWindowListener
target
- the AjaxRequestTarget
public WindowBehavior newWidgetBehavior(String selector)
newWidgetBehavior
in interface com.googlecode.wicket.jquery.core.IJQueryWidget
IJQueryWidget.newWidgetBehavior(String)
Copyright © 2015 7thWeb. All rights reserved.