public abstract class BasePopup
extends java.lang.Object
implements java.io.Serializable
ModalPopup and ModelessPopup.| Modifier and Type | Class and Description |
|---|---|
static interface |
BasePopup.IPopupListener
Listener interface for "popup openers".
|
static interface |
BasePopup.IPopupListener2 |
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
m_animationtype |
protected boolean |
m_avoidfocussingofopener |
protected boolean |
m_avoidfocussingofpopup |
protected java.lang.String |
m_bgpaint |
protected java.lang.String |
m_clientname |
protected boolean |
m_closeonclickoutside |
protected boolean |
m_closeonmouseactivity |
protected boolean |
m_closeonmouseexit |
protected java.lang.String |
m_contentReplace |
protected java.lang.String |
m_contentReplaceDrillDown |
protected int |
m_height |
protected int |
m_id |
protected java.lang.String |
m_image |
protected boolean |
m_ismaximized |
protected boolean |
m_isnew |
protected int |
m_left |
protected java.lang.String |
m_lefttopreference |
protected java.lang.Integer |
m_opacity |
protected boolean |
m_openasframe |
protected boolean |
m_opened |
protected BasePopup |
m_owner |
protected java.lang.String |
m_page |
protected java.lang.String |
m_persistid |
protected BasePopup.IPopupListener |
m_popupListener |
protected java.lang.String |
m_positionshift |
protected boolean |
m_sizeableIfUndecorated |
protected boolean |
m_startfromrootwindow |
protected java.lang.String |
m_styleseq |
protected java.lang.String |
m_title |
protected int |
m_top |
protected boolean |
m_undecorated |
protected boolean |
m_updateisolation |
protected int |
m_width |
protected int |
m_windowstate |
protected boolean |
m_withanimation |
static int |
POS_CENTER
Special integer value that you can pass into left/top position for indicating
that the popup is to be positioned within the center.
|
static java.lang.String |
s_defaultBgpaint |
static int |
WINDOWSTATE_ICONIFIED |
static int |
WINDOWSTATE_MAXIMIZED |
static int |
WINDOWSTATE_NORMAL |
| Constructor and Description |
|---|
BasePopup() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close popup.
|
java.lang.String |
getAnimationtype()
When a dialog opens up then some animation might directly be triggered.
|
boolean |
getAvoidfocussingofopener() |
boolean |
getAvoidfocussingofpopup() |
java.lang.String |
getBgpaint() |
java.lang.String |
getClientname() |
boolean |
getCloseonclickoutside() |
boolean |
getCloseonmouseactivity()
If set to true then the popup is closed when the user moves the mouse somewhere
within the dialogs of the application.
|
boolean |
getCloseonmouseexit()
If set to true then the popup is closed when the user leave the popup
with the mouse.
|
java.lang.String |
getContentReplace() |
java.lang.String |
getContentReplaceDrillDown() |
int |
getHeight() |
int |
getId() |
java.lang.String |
getImage() |
int |
getIndex() |
boolean |
getIsmaximized() |
boolean |
getIsnew() |
int |
getLeft() |
java.lang.String |
getLefttopreference() |
java.lang.Integer |
getOpacity() |
boolean |
getOpenasframe() |
boolean |
getOpened() |
BasePopup |
getOwner() |
java.lang.String |
getPage() |
java.lang.String |
getPersistid() |
BasePopup.IPopupListener |
getPopupListener() |
java.lang.String |
getPositionShift()
Deprecated.
|
long |
getRequestFocus() |
boolean |
getSizeableIfUndecorated() |
boolean |
getStartfromrootwindow() |
java.lang.String |
getStyleseq()
By default style class "riscdialog_popup" is used for the dialog's background - but
you can define a different style class to be used as well.
|
java.lang.String |
getTitle()
Text that is shown as title.
|
int |
getTop() |
boolean |
getUndecorated() |
boolean |
getUpdateIsolation() |
int |
getWidth() |
int |
getWindowstate()
Only applicable for frame-dialogs!
|
boolean |
getWithanimation()
Not used anymore in the RISC client.
|
static void |
initialize(java.lang.String defaultBgpaint)
Initialize popup look and feel settings - that are applied to all modal
and modeless popup dialogs.
|
void |
loadPersistedPosition() |
void |
maximize(boolean value) |
void |
onPopupClosedByUser(ActionEvent event)
Internal use only.
|
void |
open(java.lang.String page,
java.lang.String title,
int width,
int height,
BasePopup.IPopupListener popupListener)
Open popup.
|
void |
persistPosition() |
void |
requestFocus() |
void |
setAnimationtype(java.lang.String animationtype) |
void |
setAvoidfocussingofopener(boolean avoidfocussingofopener)
By default a popup re-focusses the component that opened up the popup.
|
void |
setAvoidfocussingofpopup(boolean value)
By default a popup dialog receives the focus when being opened.
|
void |
setBgpaint(java.lang.String bgpaint)
By default the BGPAINT of the POPUP is defined by the
initialize(String) method for
all popups of the session. |
void |
setClientname(java.lang.String value)
The name that is used for identifying the client side popups for
e.g. automated test software.
|
void |
setCloseonclickoutside(boolean value)
If set to true then the popup is closed when the user clicks
outside the popup window.
|
void |
setCloseonmouseactivity(boolean closeonmouseactivity) |
void |
setCloseonmouseexit(boolean closeonmouseexit) |
void |
setContentReplace(java.lang.String value) |
void |
setContentReplaceDrillDown(java.lang.String value) |
void |
setHeight(int height)
Set the height in pixels.
|
void |
setImage(java.lang.String value) |
void |
setIndex(int index) |
void |
setLeft(int left)
Set the "left"-coordinate of the popup.
|
void |
setLefTopReferenceComponentId(java.lang.String value)
Pass element id that is the base for the xy-position calculation
on client side.
|
void |
setLefTopReferenceComponentIdBottom(java.lang.String value)
Pass element id that is the base for the xy-position calculation
on client side.
|
void |
setLefTopReferenceComponentIdTop(java.lang.String value)
Pass element id that is the base for the xy-position calculation
on client side.
|
void |
setLeftTopReferenceBottom()
The popup will be positioned on bottom of the component that triggered
the opening of the popup.
|
void |
setLeftTopReferenceCentered()
The popup will be opened in the center of the screen from which
it was opened.
|
void |
setLeftTopReferenceComponentIdCentered(java.lang.String value)
Pass element id that is the base for the xy-position calculation
on client side.
|
void |
setLeftTopReferenceComponentIdLeft(java.lang.String value)
Pass element id that is the base for the xy-position calculation
on client side.
|
void |
setLeftTopReferenceComponentIdOver(java.lang.String value)
Pass element id that is the base for the xy-position calculation
on client side.
|
void |
setLeftTopReferenceComponentIdRight(java.lang.String value)
Pass element id that is the base for the xy-position calculation
on client side.
|
void |
setLeftTopReferenceLeft()
The popup will be positioned on the left of the component that triggered
the opening of the popup.
|
void |
setLeftTopReferenceRight()
The popup will be positioned on the right of the component that triggered
the opening of the popup.
|
void |
setLeftTopReferenceTop()
The popup will be positioned on top of the component that triggered
the opening of the popup.
|
void |
setOpacity(java.lang.Integer opacity)
A dialog may be transparent so that the background of the popup shines through.
|
void |
setOpened(boolean opened) |
void |
setOwner(BasePopup value) |
void |
setPage(java.lang.String page) |
void |
setPersistid(java.lang.String persistid) |
void |
setPopupListener(BasePopup.IPopupListener popupListener) |
void |
setPositionShift(java.lang.String positionshift)
Deprecated.
|
void |
setSizeableIfUndecorated(boolean sizeableIfUndecorated)
Only supported in HTML-RISC-Client: if a popup is defined to be
undecorated, then this by default means that the user cannot resize it.
|
void |
setStartfromrootwindow(boolean value) |
void |
setStyleseq(java.lang.String styleseq) |
void |
setTitle(java.lang.String title) |
void |
setTop(int top)
Set the "top"-coordinate of the popup.
|
void |
setUndecorated(boolean value)
Is set to true then the popup is rendered without border,
titlebar and close button.
|
void |
setUpdateIsolation(boolean updateisolation)
Sets the "updateisolation" attribute in the ROWINCLUDE that is internally
managed for the popup.
|
void |
setWidth(int width)
Set the width in pixels.
|
void |
setWidthHeightToDesiredSize()
The width and the height is set to the size that is required by the popup content.
|
void |
setWidthHeightToSizeOfReference()
The width an the height is set to the size of the component that is
the reference of this popup dialog.
|
void |
setWithanimation(boolean withanimation)
Not used anymore in the RISC client.
|
java.lang.String |
toString() |
public static final int WINDOWSTATE_NORMAL
public static final int WINDOWSTATE_ICONIFIED
public static final int WINDOWSTATE_MAXIMIZED
public static java.lang.String s_defaultBgpaint
public static int POS_CENTER
protected int m_id
protected boolean m_opened
protected boolean m_undecorated
protected boolean m_sizeableIfUndecorated
protected java.lang.String m_page
protected java.lang.String m_title
protected int m_left
protected int m_top
protected int m_width
protected int m_height
protected int m_windowstate
protected java.lang.String m_lefttopreference
protected BasePopup.IPopupListener m_popupListener
protected java.lang.String m_contentReplace
protected java.lang.String m_contentReplaceDrillDown
protected boolean m_isnew
protected boolean m_ismaximized
protected boolean m_closeonclickoutside
protected boolean m_closeonmouseexit
protected boolean m_closeonmouseactivity
protected boolean m_startfromrootwindow
protected BasePopup m_owner
protected boolean m_updateisolation
protected boolean m_openasframe
protected java.lang.String m_image
protected boolean m_avoidfocussingofopener
protected boolean m_avoidfocussingofpopup
protected java.lang.Integer m_opacity
protected boolean m_withanimation
protected java.lang.String m_animationtype
protected java.lang.String m_bgpaint
protected java.lang.String m_positionshift
protected java.lang.String m_persistid
protected java.lang.String m_clientname
protected java.lang.String m_styleseq
public static void initialize(java.lang.String defaultBgpaint)
public void open(java.lang.String page,
java.lang.String title,
int width,
int height,
BasePopup.IPopupListener popupListener)
page - title - width - height - modalPopupListener - public int getId()
public void setAvoidfocussingofopener(boolean avoidfocussingofopener)
public boolean getAvoidfocussingofopener()
public void setAvoidfocussingofpopup(boolean value)
public boolean getAvoidfocussingofpopup()
public void setImage(java.lang.String value)
public java.lang.String getImage()
public void setContentReplace(java.lang.String value)
public java.lang.String getContentReplace()
public void setContentReplaceDrillDown(java.lang.String value)
public java.lang.String getContentReplaceDrillDown()
public boolean getOpened()
public void setOpened(boolean opened)
public java.lang.String getPage()
public void setPage(java.lang.String page)
public java.lang.String getTitle()
public void setTitle(java.lang.String title)
public void setLeft(int left)
public int getLeft()
public void setTop(int top)
public int getTop()
public void setWidth(int width)
setWidthHeightToDesiredSize().public int getWidth()
public void setWidthHeightToDesiredSize()
public void setWidthHeightToSizeOfReference()
setLefTopReferenceComponentId(String).public void setHeight(int height)
setWidthHeightToDesiredSize().public int getHeight()
public int getWindowstate()
public BasePopup getOwner()
public void setOwner(BasePopup value)
public void setStartfromrootwindow(boolean value)
public boolean getStartfromrootwindow()
public void setOpacity(java.lang.Integer opacity)
opacity - Value between 0 (fully transparent) and 100 (fully shown).public java.lang.Integer getOpacity()
public boolean getWithanimation()
public void setWithanimation(boolean withanimation)
public java.lang.String getAnimationtype()
public void setAnimationtype(java.lang.String animationtype)
public void setClientname(java.lang.String value)
public java.lang.String getClientname()
public java.lang.String getLefttopreference()
public java.lang.String toString()
toString in class java.lang.Objectpublic void setLefTopReferenceComponentId(java.lang.String value)
public void setLeftTopReferenceComponentIdRight(java.lang.String value)
setLefTopReferenceComponentId(String).
The x-position is the right border of the referenced component.
setLeft(int) and setTop(int). This additional
information is then calculated on top of the basic positioning.public void setLeftTopReferenceRight()
setLeft(int) and setTop(int). This additional
information is then calculated on top of the basic positioning.public void setLeftTopReferenceComponentIdLeft(java.lang.String value)
setLeft(int) and setTop(int). This additional
information is then calculated on top of the basic positioning.public void setLeftTopReferenceLeft()
setLeft(int) and setTop(int). This additional
information is then calculated on top of the basic positioning.public void setLeftTopReferenceBottom()
setLeft(int) and setTop(int). This additional
information is then calculated on top of the basic positioning.public void setLefTopReferenceComponentIdBottom(java.lang.String value)
setLefTopReferenceComponentId(String).
setLeft(int) and setTop(int). This additional
information is then calculated on top of the basic positioning.public void setLeftTopReferenceTop()
setLeft(int) and setTop(int). This additional
information is then calculated on top of the basic positioning.public void setLefTopReferenceComponentIdTop(java.lang.String value)
setLeft(int) and setTop(int). This additional
information is then calculated on top of the basic positioning.public void setLeftTopReferenceCentered()
setLeft(int) and setTop(int). This additional
information is then calculated on top of the basic positioning.public void setLeftTopReferenceComponentIdCentered(java.lang.String value)
setLeft(int) and setTop(int). This additional
information is then calculated on top of the basic positioning.public void setLeftTopReferenceComponentIdOver(java.lang.String value)
setLeft(int) and setTop(int). This additional
information is then calculated on top of the basic positioning.public void setUndecorated(boolean value)
public boolean getUndecorated()
public void setSizeableIfUndecorated(boolean sizeableIfUndecorated)
public boolean getSizeableIfUndecorated()
public boolean getUpdateIsolation()
public void setUpdateIsolation(boolean updateisolation)
public void setCloseonclickoutside(boolean value)
public boolean getCloseonclickoutside()
public boolean getCloseonmouseexit()
public void setCloseonmouseexit(boolean closeonmouseexit)
public boolean getCloseonmouseactivity()
public void setCloseonmouseactivity(boolean closeonmouseactivity)
public boolean getIsnew()
public boolean getIsmaximized()
public boolean getOpenasframe()
public long getRequestFocus()
public void requestFocus()
public final int getIndex()
public final void setIndex(int index)
public java.lang.String getStyleseq()
public void setStyleseq(java.lang.String styleseq)
public java.lang.String getBgpaint()
public void setBgpaint(java.lang.String bgpaint)
initialize(String) method for
all popups of the session. But you can explicitly define a BGPAINT for the current popup.@Deprecated public void setPositionShift(java.lang.String positionshift)
@Deprecated public java.lang.String getPositionShift()
public void close()
public void onPopupClosedByUser(ActionEvent event)
public void maximize(boolean value)
public BasePopup.IPopupListener getPopupListener()
public void setPopupListener(BasePopup.IPopupListener popupListener)
public java.lang.String getPersistid()
public void setPersistid(java.lang.String persistid)
public void persistPosition()
public void loadPersistedPosition()
Copyright © CaptainCasa Gmbh. All Rights Reserved.