Class ModelessPopup
java.lang.Object
org.eclnt.jsfserver.defaultscreens.BasePopup
org.eclnt.jsfserver.defaultscreens.ModelessPopup
- All Implemented Interfaces:
Serializable
,Comparable<ModelessPopup>
Server side management of modeless 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#openModelessPopup(org.eclnt.jsfserver.pagebean.IPageBean, String, int, int, IModalPopupListener)
.- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
static interface
Simple version of interface - that covers the event, when the user closes the popup (by pressing top-right close icon or by alt-F4...).static interface
Extended version of listener inteface.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
void
close()
Close popup.int
static ModelessPopup
Direct creation of modeless popup.boolean
boolean
void
void
setAlwaysOnTop
(boolean alwaysOnTop) Defines that the popup is alway positioned as top dialog element and never is covered by other popup dialogs.void
setOpenasframe
(boolean value) Tells the popup management that this is not a lightweight dialog popup but that it is some application dialog that is outsourced into some own popup.void
setStickyPosition
(boolean stickyPosition) When passing true then the popup will change its position once the component that opened the popup moves its screen position (e.g. due to mouse wheel scrolling).void
setWindowstate
(int windowstate) Deprecated.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
-
ModelessPopup
public ModelessPopup()
-
-
Method Details
-
setOpenasframe
public void setOpenasframe(boolean value) Tells the popup management that this is not a lightweight dialog popup but that it is some application dialog that is outsourced into some own popup.
Consequences in the RISC-client:
The normal "lightweight" popup request to be closed when the user hits the escape-key. The "frame" popup does not have some automated closing on escape. -
setWindowstate
Deprecated.Only applicable for frame-dialogs! Otherwise: 0.
Please note: this option is not available for the RISC client - and only is supported for the Java-Swing client. We did not remove this option due to compatibility. -
createInstance
Direct creation of modeless 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.openModelessPopup(org.eclnt.jsfserver.pagebean.IPageBean, String, int, int, IModelessPopupListener)
instead. -
setStickyPosition
public void setStickyPosition(boolean stickyPosition) When passing true then the popup will change its position once the component that opened the popup moves its screen position (e.g. due to mouse wheel scrolling). This option should be switched on in very rare cases only (e.g. when a small info popup is opened for a dedicated field). -
getStickyPosition
public boolean getStickyPosition() -
setAlwaysOnTop
public void setAlwaysOnTop(boolean alwaysOnTop) Defines that the popup is alway positioned as top dialog element and never is covered by other popup dialogs. (Well: if several popups are defined to be always on top, then the sequence is not predictable...)
Please note: the always on top always refers to the dialog layer that the popup is living in. If starting a popup relative to another base popup then the popup will be only positioned top within the context of the base popup. SeeBasePopup.setStartfromrootwindow(boolean)
. -
getAlwaysOnTop
public boolean getAlwaysOnTop() -
close
public void close()Close popup. -
addClosedListener
-
removeClosedListener
-
compareTo
- Specified by:
compareTo
in interfaceComparable<ModelessPopup>
-