Class ModalPopup
java.lang.Object
org.eclnt.jsfserver.defaultscreens.BasePopup
org.eclnt.jsfserver.defaultscreens.ModalPopup
- All Implemented Interfaces:
Serializable
,Comparable<ModalPopup>
Server side management of modal popups. Direct implementations use the
static createInstance() method for creating the popup, then hold
a reference and work with this reference. - By default you do not
use direct implementations, though. E.g. when using page beans (IPageBean)
then you create popups via the page bean's method
PageBean.openModalPopup(org.eclnt.jsfserver.pagebean.IPageBean, String, int, int, IModalPopupListener)
.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclnt.jsfserver.defaultscreens.BasePopup
BasePopup.IPopupListener, BasePopup.IPopupListener2, BasePopup.IUpdatePersistedPosition
-
Field Summary
Fields inherited from class org.eclnt.jsfserver.defaultscreens.BasePopup
m_animationtype, m_avoidfocussingofopener, m_avoidfocussingofpopup, m_bgpaint, m_clientname, m_closeonclickoutside, m_closeonmouseactivity, m_closeonmouseexit, m_contentReplace, m_contentReplaceDrillDown, m_height, m_id, m_ignoreroundtripvetosonclose, m_image, m_ismaximized, m_isnew, m_left, m_lefttopreference, m_maxmintrigger, m_opacity, m_openasframe, m_opened, m_owner, m_page, m_parentHotkeysActive, m_persistid, m_popupListener, m_positionshift, m_sizeableIfUndecorated, m_sizeAnimationtype, m_skipBlockingOnClose, m_startfromrootwindow, m_styleseq, m_styleseqdecoration, m_title, m_top, m_undecorated, m_updatedPersistedPositionCallBack, m_updateisolation, m_width, m_windowstate, m_withanimation, m_withcloseicon, m_withmaximizeicon, POS_CENTER, s_defaultBgpaint, WINDOWSTATE_ICONIFIED, WINDOWSTATE_MAXIMIZED, WINDOWSTATE_NORMAL
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Close popup.int
static ModalPopup
Direct creation of modal popup.boolean
void
setHighlightReference
(boolean highlightReference) If set to true then the screen background that is drawn below the popup is built in a way that the component that is directly referenced (e.g. byBasePopup.setLeftTopReferenceComponentIdLeft(String)
) is not part of the background - and is highlighted as consequence.void
setScreenBackgroundColor
(String screenBackgroundColor) Defines the color of the screen background that is drawn "behind" the modal popup dialog.void
Indicate that this is the popup that should be shown on top of other modal popups if two modal popups are opened at same point of time.void
showAsTopPopup
(boolean value) Same asshowAsTopPopup()
but now with explicit passing of parameter.Methods inherited from class org.eclnt.jsfserver.defaultscreens.BasePopup
getAnimationtype, getAvoidfocussingofopener, getAvoidfocussingofpopup, getBgpaint, getClientname, getCloseonclickoutside, getCloseonmouseactivity, getCloseonmouseexit, getContentReplace, getContentReplaceDrillDown, getHeight, getId, getIgnoreroundtripvetosonclose, getImage, getIndex, getIsmaximized, getIsnew, getLeft, getLefttopreference, getMaxmintrigger, getOpacity, getOpenasframe, getOpened, getOwner, getPage, getParentHotkeysActive, getPersistid, getPopupListener, getPopupPageBeanExpression, getPositionShift, getRequestFocus, getSizeableIfUndecorated, getSizeAnimationtype, getSkipBlockingOnClose, getStartfromrootwindow, getStyleseq, getStyleseqdecoration, getTitle, getTop, getUndecorated, getUpdatedPersistedPositionCallBack, getUpdateIsolation, getWidth, getWindowstate, getWithanimation, getWithcloseicon, getWithmaximizeicon, hideCloseIcon, hideMaximizeIcon, ignoreRoundtripVetosOnClose, initialize, initializeHeightDeltaDecorated, loadPersistedPosition, maximize, onPopupClosedByUser, open, persistPosition, requestFocus, setAnimationtype, setAvoidfocussingofopener, setAvoidfocussingofpopup, setBgpaint, setClientname, setCloseonclickoutside, setCloseonmouseactivity, setCloseonmouseexit, setContentReplace, setContentReplaceDrillDown, setHeight, setImage, setIndex, setLeft, setLefTopReferenceComponentId, setLefTopReferenceComponentIdBottom, setLefTopReferenceComponentIdTop, setLeftTopMousePosition, setLefttopreference, setLeftTopReferenceBottom, setLeftTopReferenceCentered, setLeftTopReferenceComponentIdCentered, setLeftTopReferenceComponentIdLeft, setLeftTopReferenceComponentIdOver, setLeftTopReferenceComponentIdRight, setLeftTopReferenceLeft, setLeftTopReferenceRight, setLeftTopReferenceTop, setLeftTopScreenBottom, setLeftTopScreenLeft, setLeftTopScreenRight, setLeftTopScreenTop, setOpacity, setOpened, setOwner, setPage, setParentHotkeysActive, setPersistid, setPopupListener, setPopupPageBeanExpression, setPositionShift, setSizeableIfUndecorated, setSizeAnimationtype, setSkipBlockingOnClose, setStartfromrootwindow, setStyleseq, setStyleseqdecoration, setTitle, setTop, setUndecorated, setUpdatedPersistedPositionCallBack, setUpdateIsolation, setWidth, setWidthHeightToDesiredSize, setWidthHeightToSizeOfReference, setWithanimation, toString
-
Constructor Details
-
ModalPopup
public ModalPopup()
-
-
Method Details
-
createInstance
Direct creation of modal popup. This method of creating a popup is some quite internal way - which is normally not used by application programming. Please use the PageBean-way of opening popups usingPageBean.openModalPopup(org.eclnt.jsfserver.pagebean.IPageBean, String, int, int, org.eclnt.jsfserver.defaultscreens.ModalPopup.IModalPopupListener)
orPageBean.openModalPopup(org.eclnt.jsfserver.pagebean.IPageBean, String, int, int, IModalPopupListener)
instead. -
close
public void close()Close popup. -
compareTo
- Specified by:
compareTo
in interfaceComparable<ModalPopup>
-
setHighlightReference
public void setHighlightReference(boolean highlightReference) If set to true then the screen background that is drawn below the popup is built in a way that the component that is directly referenced (e.g. byBasePopup.setLeftTopReferenceComponentIdLeft(String)
) is not part of the background - and is highlighted as consequence. -
getHighlightReference
public boolean getHighlightReference() -
setScreenBackgroundColor
Defines the color of the screen background that is drawn "behind" the modal popup dialog. The default is taken from the CSS style, but you may override e.g. in order to make it transparent or in order to assign a special color. -
getScreenBackgroundColor
-
showAsTopPopup
public void showAsTopPopup()Indicate that this is the popup that should be shown on top of other modal popups if two modal popups are opened at same point of time.
This is the short version of the calling the methodshowAsTopPopup(boolean)
with parameter true. -
showAsTopPopup
public void showAsTopPopup(boolean value) Same asshowAsTopPopup()
but now with explicit passing of parameter.
Why is there a version with explicit passing the value as parameter? ...because the default popups of CaptainCasa (OKPopup, YESNOPopup) automatically requiest to be shown as top popup. In cases you want to reset this, you may call this method with parameter "false".
-