org.efaps.ui.wicket.components.modalwindow
Class ModalWindowContainer

java.lang.Object
  extended by org.apache.wicket.Component
      extended by org.apache.wicket.MarkupContainer
          extended by org.apache.wicket.markup.html.WebMarkupContainer
              extended by org.apache.wicket.markup.html.WebMarkupContainerWithAssociatedMarkup
                  extended by org.apache.wicket.markup.html.panel.Panel
                      extended by org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow
                          extended by org.efaps.ui.wicket.components.modalwindow.ModalWindowContainer
All Implemented Interfaces:
java.io.Serializable, org.apache.wicket.IClusterable, org.apache.wicket.IConverterLocator, org.apache.wicket.markup.html.IHeaderPartContainerProvider

public class ModalWindowContainer
extends org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow

This is a wrapper class for a modal window.

Version:
$Id:ModalWindowContainer.java 1510 2007-10-18 14:35:40Z jmox $
Author:
jmox
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.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
 
Nested classes/interfaces inherited from class org.apache.wicket.Component
org.apache.wicket.Component.ComponentModelChange, org.apache.wicket.Component.EnabledChange, org.apache.wicket.Component.IVisitor<T extends org.apache.wicket.Component>, org.apache.wicket.Component.VisibilityChange
 
Field Summary
 
Fields inherited from class org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow
CSS_CLASS_BLUE, CSS_CLASS_GRAY
 
Fields inherited from class org.apache.wicket.Component
ENABLE, FLAG_REMOVING_FROM_HIERARCHY, FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, FLAG_RESERVED6, FLAG_RESERVED7, FLAG_RESERVED8, PATH_SEPARATOR, RENDER
 
Constructor Summary
ModalWindowContainer(java.lang.String _wicketId)
          Constructor.
 
Method Summary
 void close(org.apache.wicket.ajax.AjaxRequestTarget _target)
          Method is called when the modal window is closed.
static java.lang.String getCloseJavacript()
          This method is a exact copy of the private method getCloseJavacript() in #org.efaps.ui.wicket.components.modalwindow.ModalWindow, but it has to be public.
 java.lang.String getReloadJavaScript()
          Method creates a JavaScript to reload the parent page.
 boolean isReloadChild()
          This is the getter method for the instance variable reloadChild.
 boolean isUpdateParent()
          This is the getter method for the instance variable updateParent .
protected  org.apache.wicket.util.string.AppendingStringBuffer postProcessSettings(org.apache.wicket.util.string.AppendingStringBuffer _settings)
           
 void reset()
          This method sets this ModalWindowContainer into the state like it was just created.
 org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow setInitialHeight(int _initialHeight)
          Check it the size of the modal window is not to big and reduces it if necessary.
 org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow setInitialWidth(int _initialWidth)
          Check it the size of the modal window is not to big and reduces it if necessary.
 void setReloadChild(boolean _reloadchild)
          This is the setter method for the instance variable reloadChild.
 void setUpdateParent(boolean _updateParent)
          This is the setter method for the instance variable updateParent .
 
Methods inherited from class org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow
closeCurrent, getContent, getContentId, getCookieName, getCssClassName, getHeightUnit, getInitialHeight, getInitialWidth, getMaskType, getMinimalHeight, getMinimalWidth, getPageMapName, getTitle, getWidthUnit, getWindowOpenJavascript, isResizable, isShown, isUseInitialHeight, makeContentVisible, onBeforeRender, onComponentTag, onDetach, remove, setCloseButtonCallback, setContent, setCookieName, setCssClassName, setHeightUnit, setMaskType, setMinimalHeight, setMinimalWidth, setPageCreator, setPageMapName, setResizable, setTitle, setTitle, setUseInitialHeight, setWidthUnit, setWindowClosedCallback, show
 
Methods inherited from class org.apache.wicket.markup.html.panel.Panel
onComponentTagBody, renderHead
 
Methods inherited from class org.apache.wicket.markup.html.WebMarkupContainerWithAssociatedMarkup
newHeaderPartContainer, renderHeadFromAssociatedMarkupFile
 
Methods inherited from class org.apache.wicket.markup.html.WebMarkupContainer
getMarkupType, getWebPage, getWebRequest
 
Methods inherited from class org.apache.wicket.MarkupContainer
add, addOrReplace, autoAdd, autoAdd, contains, findMarkupStream, get, get, getAssociatedMarkupStream, getMarkupStream, hasAssociatedMarkup, internalAdd, isTransparentResolver, iterator, iterator, newMarkupResourceStream, onRender, remove, removeAll, renderAll, renderAssociatedMarkup, renderComponentTagBody, renderNext, replace, setDefaultModel, setMarkupStream, size, swap, toString, toString, visitChildren, visitChildren
 
Methods inherited from class org.apache.wicket.Component
add, addStateChange, afterRender, beforeRender, callOnBeforeRenderIfNotVisible, checkComponentTag, checkComponentTagAttribute, checkHierarchyChange, continueToOriginalDestination, debug, detach, detachBehaviors, detachModel, detachModels, determineVisibility, error, exceptionMessage, fatal, findPage, findParent, findParentWithAssociatedMarkup, getApplication, getBehaviors, getBehaviors, getBehaviorsRawList, getClassRelativePath, getComponentBorder, getConverter, getConverter, getDefaultModel, getDefaultModelObject, getDefaultModelObjectAsString, getDefaultModelObjectAsString, getEscapeModelStrings, getFeedbackMessage, getFlag, getFlag, getId, getInnermostModel, getInnermostModel, getLocale, getLocalizer, getMarkupAttributes, getMarkupId, getMarkupId, getMarkupIdImpl, getMetaData, getModelComparator, getOutputMarkupId, getOutputMarkupPlaceholderTag, getPage, getPageRelativePath, getParent, getPath, getRenderBodyOnly, getRequest, getRequestCycle, getResponse, getSession, getSizeInBytes, getStatelessHint, getString, getString, getString, getStyle, getVariation, hasBeenRendered, hasErrorMessage, hasFeedbackMessage, info, initModel, internalAttach, internalDetach, internalOnAttach, internalOnDetach, internalOnModelChanged, isActionAuthorized, isAncestorOf, isAttached, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isRenderAllowed, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, locateMarkupStream, markAttached, markRendering, modelChanged, modelChanging, onAfterRender, onAttach, onBeginRequest, onEndRequest, onModelChanged, onModelChanging, onRemove, prepareForRender, prepareForRender, redirectToInterceptPage, remove, remove, render, render, renderComponent, renderComponent, renderComponentTag, rendered, renderPlaceholderTag, replaceComponentTagBody, replaceWith, sameInnermostModel, sameInnermostModel, setAuto, setComponentBorder, setDefaultModelObject, setEnabled, setEscapeModelStrings, setFlag, setFlag, setIgnoreAttributeModifier, setMarkupId, setMarkupIdImpl, setMetaData, setOutputMarkupId, setOutputMarkupPlaceholderTag, setRedirect, setRenderBodyOnly, setResponsePage, setResponsePage, setResponsePage, setVersioned, setVisibilityAllowed, setVisible, urlFor, urlFor, urlFor, urlFor, urlFor, urlFor, visitParents, warn, wrap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ModalWindowContainer

public ModalWindowContainer(java.lang.String _wicketId)
Constructor.

Parameters:
_wicketId - wicket id of this component
Method Detail

isReloadChild

public boolean isReloadChild()
This is the getter method for the instance variable reloadChild.

Returns:
value of instance variable reloadChild

setReloadChild

public void setReloadChild(boolean _reloadchild)
This is the setter method for the instance variable reloadChild.

Parameters:
_reloadchild - the reloadParent to set

close

public void close(org.apache.wicket.ajax.AjaxRequestTarget _target)
Method is called when the modal window is closed.

Overrides:
close in class org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow
Parameters:
_target - AjaxRequestTarget

getReloadJavaScript

public java.lang.String getReloadJavaScript()
Method creates a JavaScript to reload the parent page.

Returns:
JavaScript

isUpdateParent

public boolean isUpdateParent()
This is the getter method for the instance variable updateParent .

Returns:
value of instance variable updateParent

setUpdateParent

public void setUpdateParent(boolean _updateParent)
This is the setter method for the instance variable updateParent .

Parameters:
_updateParent - the updateParent to set

reset

public void reset()
This method sets this ModalWindowContainer into the state like it was just created. It uses the default values as they are defined in org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow


getCloseJavacript

public static java.lang.String getCloseJavacript()
This method is a exact copy of the private method getCloseJavacript() in #org.efaps.ui.wicket.components.modalwindow.ModalWindow, but it has to be public.

Returns:
JavaScript

setInitialHeight

public org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow setInitialHeight(int _initialHeight)
Check it the size of the modal window is not to big and reduces it if necessary.

Overrides:
setInitialHeight in class org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow
Parameters:
_initialHeight - height
Returns:
this Modalwindow
See Also:
ModalWindow.setInitialHeight(int)

setInitialWidth

public org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow setInitialWidth(int _initialWidth)
Check it the size of the modal window is not to big and reduces it if necessary.

Overrides:
setInitialWidth in class org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow
Parameters:
_initialWidth - width
Returns:
this Modalwindow
See Also:
ModalWindow.setInitialWidth(int)

postProcessSettings

protected org.apache.wicket.util.string.AppendingStringBuffer postProcessSettings(org.apache.wicket.util.string.AppendingStringBuffer _settings)
Overrides:
postProcessSettings in class org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow
Parameters:
_settings - AppendingStringBuffer
Returns:
AppendingStringBuffer
See Also:
postProcessSettings(org.apache.wicket.util.string.AppendingStringBuffer)


Copyright © 2003-2010 The eFaps Team. All Rights Reserved.