Class DialogWindow

  • All Implemented Interfaces:
    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.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, IDialogService
    Direct Known Subclasses:
    DialogService

    public class DialogWindow
    extends org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow
    implements IDialogService
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow

        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
    • Field Summary

      • Fields inherited from class org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow

        CONTENT_ID, CSS_CLASS_BLUE, CSS_CLASS_GRAY
      • Fields inherited from class org.apache.wicket.markup.html.panel.Panel

        PANEL
      • Fields inherited from class org.apache.wicket.Component

        ENABLE, FLAG_INITIALIZED, FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, FLAG_RESERVED8, PARENT_PATH, PATH_SEPARATOR, RENDER, RFLAG_CONTAINER_DEQUEING, RFLAG_CONTAINER_HAS_REMOVALS
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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.
      void internalRenderHead​(org.apache.wicket.markup.html.internal.HtmlHeaderContainer container)  
      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 void postProcessSettings​(com.github.openjson.JSONObject 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.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()  
      • Methods inherited from class org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow

        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, show, showUnloadConfirmation, showUnloadConfirmation
      • 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, onInitialize, onRender, queue, 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, 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, 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, isActionAuthorized, isAuto, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isInitialized, isRenderAllowed, isRendering, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, markRendering, modelChanged, modelChanging, onAfterRender, 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 interface org.apache.wicket.IQueueRegion

        dequeue, newDequeueContext
    • Constructor Detail

      • DialogWindow

        public DialogWindow​(String id)
    • Method Detail

      • renderHead

        public void renderHead​(org.apache.wicket.markup.head.IHeaderResponse response)
        Specified by:
        renderHead in interface org.apache.wicket.markup.html.IHeaderContributor
        Overrides:
        renderHead in class org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow
      • getShowJavaScript

        protected CharSequence getShowJavaScript()
        Revert ModalWindow change committed in https://issues.apache.org/jira/browse/WICKET-5101. Dialogs should be created synchronously, otherwise other initialization code inside the dialogs (e.g. initializing YUI accordions) fails.
        Overrides:
        getShowJavaScript in class org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow
      • postProcessSettings

        protected void postProcessSettings​(com.github.openjson.JSONObject settings)
        Adds the full dialog title for use in a tooltip. This value shouldn't be HTML-escaped, but requires JavaScript quote-escaping.
        Overrides:
        postProcessSettings in class org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow
        Parameters:
        settings - JSONObject
      • show

        public void show​(IDialogService.Dialog dialog)
        Description copied from interface: IDialogService
        Show a dialog. When a dialog is already shown, the dialog is enqueued to be displayed when the current dialog is closed.
        Specified by:
        show in interface IDialogService
      • hide

        public void hide​(IDialogService.Dialog dialog)
        Hides the dialog, if it is currently shown, or removes it from the list of to-be-shown dialogs. The onClose() method is not invoked on the dialog.
        Parameters:
        dialog - The dialog to hide
      • showPending

        public void showPending()
      • internalRenderHead

        public void internalRenderHead​(org.apache.wicket.markup.html.internal.HtmlHeaderContainer container)
        Overrides:
        internalRenderHead in class org.apache.wicket.Component
      • isShowingDialog

        public boolean isShowingDialog()
        Description copied from interface: IDialogService
        If a dialog is opened and still open, isShowingDialog() returns true until the previous opened dialog is closed.
        Specified by:
        isShowingDialog in interface IDialogService
        Returns:
        true if dialog is pending, otherwise false
      • isShown

        public boolean isShown()
        Overrides:
        isShown in class org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow
      • show

        public void show​(org.apache.wicket.ajax.AjaxRequestTarget target)
        Shows the modal window.
        Parameters:
        target - Request target associated with current ajax request.
      • makeContentVisible

        protected boolean makeContentVisible()
        Overrides:
        makeContentVisible in class org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow