public class DialogWindow extends org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow implements IDialogService
org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow.CloseButtonBehavior, org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow.CloseButtonCallback, org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow.MaskType, org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow.PageCreator, org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow.WindowClosedCallback
IDialogService.Dialog
CONTENT_ID, CSS_CLASS_BLUE, CSS_CLASS_GRAY
ENABLE, FLAG_INITIALIZED, FLAG_REMOVING_FROM_HIERARCHY, FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, FLAG_RESERVED8, PARENT_PATH, PATH_SEPARATOR, RENDER
DIALOG_WICKET_ID
Constructor and Description |
---|
DialogWindow(String id) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the current dialog.
|
protected CharSequence |
getShowJavaScript()
Revert ModalWindow change committed in https://issues.apache.org/jira/browse/WICKET-5101.
|
void |
hide(IDialogService.Dialog dialog)
Hides the dialog, if it is currently shown, or removes it from the list of to-be-shown dialogs.
|
boolean |
isShowingDialog()
If a dialog is opened and still open, isShowingDialog() returns true until
the previous opened dialog is closed.
|
boolean |
isShown() |
protected boolean |
makeContentVisible() |
protected org.apache.wicket.util.string.AppendingStringBuffer |
postProcessSettings(org.apache.wicket.util.string.AppendingStringBuffer settings)
Adds the full dialog title for use in a tooltip.
|
void |
render(PluginRequestTarget target)
Invoked during the pre-rendering registration.
|
void |
renderHead(org.apache.wicket.markup.html.internal.HtmlHeaderContainer container) |
void |
renderHead(org.apache.wicket.markup.head.IHeaderResponse response) |
void |
show(org.apache.wicket.ajax.AjaxRequestTarget target)
Shows the modal window.
|
void |
show(IDialogService.Dialog dialog)
Show a dialog.
|
void |
showPending() |
close, closeCurrent, getCloseJavacript, getContent, getContentId, getCookieName, getCssClassName, getHeightUnit, getInitialHeight, getInitialWidth, getMaskType, getMinimalHeight, getMinimalWidth, getTitle, getWidthUnit, getWindowOpenJavaScript, isAutoSize, isCustomComponent, isResizable, isUseInitialHeight, newCloseButtonBehavior, newCssResource, onBeforeRender, onComponentTag, onDetach, remove, setAutoSize, setCloseButtonCallback, setContent, setCookieName, setCssClassName, setHeightUnit, setInitialHeight, setInitialWidth, setMaskType, setMinimalHeight, setMinimalWidth, setPageCreator, setResizable, setTitle, setTitle, setUseInitialHeight, setWidthUnit, setWindowClosedCallback, showUnloadConfirmation, showUnloadConfirmation
getWebApplication, getWebPage, getWebRequest, getWebResponse, getWebSession
add, addOrReplace, autoAdd, contains, get, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, getMarkupType, internalAdd, internalInitialize, iterator, iterator, onAfterRenderChildren, onComponentTagBody, onRender, 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, isRendering, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, markRendering, modelChanged, modelChanging, onAfterRender, onConfigure, onEvent, onInitialize, onModelChanged, onModelChanging, onReAdd, onRemove, prepareForRender, redirectToInterceptPage, remove, remove, render, renderComponentTag, rendered, 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
public DialogWindow(String id)
public void renderHead(org.apache.wicket.markup.head.IHeaderResponse response)
renderHead
in interface org.apache.wicket.markup.html.IHeaderContributor
renderHead
in class org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow
protected CharSequence getShowJavaScript()
getShowJavaScript
in class org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow
protected org.apache.wicket.util.string.AppendingStringBuffer postProcessSettings(org.apache.wicket.util.string.AppendingStringBuffer settings)
postProcessSettings
in class org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow
settings
- buffer containing a JS snippetpublic void show(IDialogService.Dialog dialog)
IDialogService
show
in interface IDialogService
public void hide(IDialogService.Dialog dialog)
dialog
- The dialog to hidepublic void showPending()
public void close()
IDialogService
close
in interface IDialogService
public void renderHead(org.apache.wicket.markup.html.internal.HtmlHeaderContainer container)
renderHead
in class org.apache.wicket.Component
public boolean isShowingDialog()
IDialogService
isShowingDialog
in interface IDialogService
public void render(PluginRequestTarget target)
IDialogService
render
in interface IDialogService
public boolean isShown()
isShown
in class org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow
public void show(org.apache.wicket.ajax.AjaxRequestTarget target)
show
in class org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow
target
- Request target associated with current ajax request.protected boolean makeContentVisible()
makeContentVisible
in class org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow
Copyright © 2007–2017 Hippo B.V. (http://www.onehippo.com). All rights reserved.