org.wicketstuff.modalx.optional
Class ModalXPage

java.lang.Object
  extended by org.apache.wicket.Component
      extended by org.apache.wicket.MarkupContainer
          extended by org.apache.wicket.Page
              extended by org.apache.wicket.markup.html.WebPage
                  extended by org.wicketstuff.modalx.optional.ModalXPage
All Implemented Interfaces:
Serializable, Iterable<Component>, IEventSink, IEventSource, IConverterLocator, IRedirectListener, IRequestListener, IHeaderContributor, IManageablePage, IRequestableComponent, IRequestablePage, IHierarchical<Component>, IClusterable, ModalMgr

public class ModalXPage
extends WebPage
implements ModalMgr

Class Name : ModalXPage Diagram : Optional Project : Echobase framework Type : concrete Convenience class that can be used by applications as the base class for all application pages to allow fast integration of ModalX. If it is not possible ot introduce this class into the Page class hierarchy then simply make an existing class in the hierarchy implement the ModalMgr interface and copy methods and attributes from this class to that class.

Author:
Chris Colman
See Also:
Serialized Form

Field Summary
static int MAX_MODALS
          Maximum depth of stacked modal windos supported.
protected  ModalContentWindow[] modalContentWindows
          Array of ModalContentWindows - each stacked modal needs a unique ModalContentWindow otherwise after closing the topmost one the one beneath it becomes unusable.
 
Fields inherited from class org.apache.wicket.Component
ENABLE, FLAG_INITIALIZED, FLAG_REMOVING_FROM_HIERARCHY, FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, FLAG_RESERVED8, PARENT_PATH, PATH_SEPARATOR, RENDER
 
Fields inherited from interface org.apache.wicket.IRedirectListener
INTERFACE
 
Constructor Summary
ModalXPage(PageParameters iParameters)
           
 
Method Summary
 ModalContentWindow allocateModalWindow()
          Allocates a ModalContentWindow.
 void releaseModalWindow(ModalContentWindow modalContentWindow)
          Releases a ModalContentWindow
 void trackModalVisit(IWicketModalVisit iWicketModalVisit)
          Records a visit to the modal.
 
Methods inherited from class org.apache.wicket.markup.html.WebPage
configureResponse, dirty, getMarkupType, homePageLink, onAfterRender, onRender, renderXmlDecl, setHeaders
 
Methods inherited from class org.apache.wicket.Page
componentChanged, componentRendered, detachModels, dirty, endComponentRender, getAutoIndex, getId, getPageClass, getPageId, getPageParameters, getPageReference, getRenderCount, getSizeInBytes, getStatelessHint, hierarchyAsString, internalOnModelChanged, internalPrepareForRender, isBookmarkable, isErrorPage, isPageStateless, onBeforeRender, onDetach, onRedirect, renderPage, setFreezePageId, setNumericId, setStatelessHint, setWasCreatedBookmarkable, startComponentRender, toString, wasCreatedBookmarkable, wasRendered
 
Methods inherited from class org.apache.wicket.MarkupContainer
add, addOrReplace, autoAdd, contains, get, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, internalAdd, internalInitialize, iterator, iterator, onAfterRenderChildren, onComponentTagBody, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderNext, replace, setDefaultModel, size, swap, toString, visitChildren, visitChildren, visitChildren, visitChildren
 
Methods inherited from class org.apache.wicket.Component
add, addStateChange, afterRender, beforeRender, canCallListenerInterface, checkComponentTag, checkComponentTagAttribute, checkHierarchyChange, configure, continueToOriginalDestination, debug, detach, detachModel, determineVisibility, error, exceptionMessage, fatal, findMarkupStream, findPage, findParent, findParentWithAssociatedMarkup, getAjaxRegionMarkupId, getApplication, getBehaviorById, getBehaviorId, getBehaviors, getBehaviors, getClassRelativePath, getConverter, getDefaultModel, getDefaultModelObject, getDefaultModelObjectAsString, getDefaultModelObjectAsString, getEscapeModelStrings, getFeedbackMessages, getFlag, 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, getString, getString, getString, getStyle, getVariation, hasBeenRendered, hasErrorMessage, hasFeedbackMessage, info, initModel, internalRenderComponent, isActionAuthorized, isAuto, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isRenderAllowed, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, markRendering, modelChanged, modelChanging, newMarkupSourcingStrategy, onComponentTag, onConfigure, onEvent, onInitialize, onModelChanged, onModelChanging, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.wicket.request.component.IRequestableComponent
detach, get, getBehaviorById, getBehaviorId, getPage, getPageRelativePath
 
Methods inherited from interface org.apache.wicket.page.IManageablePage
detach
 

Field Detail

modalContentWindows

protected ModalContentWindow[] modalContentWindows
Array of ModalContentWindows - each stacked modal needs a unique ModalContentWindow otherwise after closing the topmost one the one beneath it becomes unusable.


MAX_MODALS

public static final int MAX_MODALS
Maximum depth of stacked modal windos supported.

See Also:
Constant Field Values
Constructor Detail

ModalXPage

public ModalXPage(PageParameters iParameters)
           throws StringValueConversionException
Throws:
StringValueConversionException
Method Detail

trackModalVisit

public void trackModalVisit(IWicketModalVisit iWicketModalVisit)
Records a visit to the modal.

Specified by:
trackModalVisit in interface ModalMgr

releaseModalWindow

public void releaseModalWindow(ModalContentWindow modalContentWindow)
Releases a ModalContentWindow

Specified by:
releaseModalWindow in interface ModalMgr

allocateModalWindow

public ModalContentWindow allocateModalWindow()
Allocates a ModalContentWindow.

Specified by:
allocateModalWindow in interface ModalMgr


Copyright © 2007-2013. All Rights Reserved.