Class OKPopup
java.lang.Object
org.eclnt.jsfserver.defaultscreens.OKPopup
- All Implemented Interfaces:
Serializable
,BasePopup.IPopupListener
,ModalPopup.IModalPopupListener
,ICCServerConstants
public class OKPopup
extends Object
implements Serializable, ModalPopup.IModalPopupListener, ICCServerConstants
Default popup dialog for message output.
Instances of the popup dialog are created using the createInstance* methods.
There are three texts that can be passed:
(.) a title, this is the popup window's title
(.) a text, this is the message
(.) a headline, this is a (typically) short text that you may output as headline in front of the message text. The headline is rendered with a larger font. The headline is optional.
You can register an event listener in order to get notified when the user has pressed the OK-button.
Instances of the popup dialog are created using the createInstance* methods.
There are three texts that can be passed:
(.) a title, this is the popup window's title
(.) a text, this is the message
(.) a headline, this is a (typically) short text that you may output as headline in front of the message text. The headline is rendered with a larger font. The headline is optional.
You can register an event listener in order to get notified when the user has pressed the OK-button.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
static interface
static class
-
Field Summary
Fields inherited from interface org.eclnt.jsfserver.util.ICCServerConstants
CLIENTDEVICETYPE_DESKTOP, CLIENTDEVICETYPE_MOBILE, CLIENTJAVATYPE_FX, CLIENTJAVATYPE_SWING, CLIENTTYPE_APPLET, CLIENTTYPE_APPLICATION, CLIENTTYPE_BROWSER, CLIENTTYPE_RISC, CLIENTTYPE_UI5, CLIENTTYPE_WEBSTART, EXPLICIT_NULL, FOCUSSEQUENCE_FIX_PREFIX, HEADER_ATTRIBUTE_CLIENT, HEADER_ATTRIBUTE_CLIENTJAVATYPE, HEADER_ATTRIBUTE_COOKIESENABLED, HEADER_ATTRIBUTE_COUNTRY, HEADER_ATTRIBUTE_DEVICESCREENHEIGHT, HEADER_ATTRIBUTE_DEVICESCREENWIDTH, HEADER_ATTRIBUTE_DEVICETYPE, HEADER_ATTRIBUTE_LANGUAGE, HEADER_ATTRIBUTE_MEDIADEVICES, HEADER_ATTRIBUTE_ORIGINALURL, HEADER_ATTRIBUTE_PERFORMANCEDATA, HEADER_ATTRIBUTE_REQUESTID, HEADER_ATTRIBUTE_TIMEZONEOFFSET, HEADER_ATTRIBUTE_USERAGENT, HEADER_ATTRIBUTE_XFRAMEOPTIONS, HEADER_RESPONSE_ATTRIBUTE_HTTPSESSIONID, HEADER_RESPONSE_ATTRIBUTE_HTTPSESSIONREFERENCEURL, HEADER_RESPONSE_ATTRIBUTE_HTTPSESSIONTRACKINGMODE, HEADER_RESPONSE_ATTRIBUTE_OVERRIDE, HEADER_RESPONSE_ATTRIBUTE_RELOAD, HEADER_RESPONSE_ATTRIBUTE_STYLE, INPUTMASK_VALUEMODE_WITHMASK, INPUTMASK_VALUEMODE_WITHOUTMASK, LAYOUTEXTENSION_JSP, LAYOUTEXTENSION_XML, QP_CCSTYLE, QP_KEEPDIALOGSESSION, QP_SUBPAGEID, SECURITY_ROLE_CCADMIN, SESSION_TRACKING_COOKIE, SESSION_TRACKING_URL, TEXTPANE_CONTENTTYPE_HTML, TEXTPANE_CONTENTTYPE_PLAIN
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
static OKPopup
createInstance
(String title, String text) static OKPopup
createInstance
(String title, String text, OKPopup.IOKListener okListener) boolean
getIcon()
boolean
getText()
boolean
static void
boolean
void
onCancel
(javax.faces.event.ActionEvent ae) void
onClose
(javax.faces.event.ActionEvent ae) void
void
setBodyBackgroundColor
(String bodyBackgroundColor) void
setBodyBgpaint
(String bodyBgpaint) void
setButtonImage
(String buttonImage) void
setCancelButtonImage
(String cancelButtonImage) void
setHeadline
(String value) void
void
setImageBackgroundColor
(String imageBackgroundColor) void
setImageBgpaint
(String imageBgpaint) void
setShowCancel
(boolean value) By default the popup has an OK button - the user can cancel by closing the popup usRing the normal popup close icon.void
void
setTextAlign
(String value) void
setTextCancel
(String value) Set the text of cancel-button.void
setTextColor
(String value) void
setTextContentType
(String textContentType) void
setTextContentType
(String textContentType, boolean avoidSanitizing) void
Explicitly set the text of the OK button - otherwise the default text will be shown.
-
Field Details
-
PAGENAME_DEFAULT
-
PAGENAME_HTML
-
-
Constructor Details
-
OKPopup
public OKPopup()
-
-
Method Details
-
initialize
public static void initialize() -
createInstance
-
createInstance
-
getBodyBackgroundColor
-
setBodyBackgroundColor
-
setText
-
getText
-
setTextAlign
-
getTextAlign
-
setTextColor
-
getTextColor
-
setTextContentType
- Parameters:
textContentType
-avoidSanitizing
- If set to true then the text content will be inserted into the client side HTML without any sanitizing. You are responsible for ensuring that no e.g. unwanted script is part of the HTML.
-
setTextContentType
-
getTextContentType
-
getTextContentAvoidSanitizing
public boolean getTextContentAvoidSanitizing() -
getButtonImage
-
setButtonImage
-
getCancelButtonImage
-
setCancelButtonImage
-
getImageBackgroundColor
-
setImageBackgroundColor
-
getImageBgpaint
-
setImageBgpaint
-
getHeadlineRendered
public boolean getHeadlineRendered() -
setHeadline
-
getHeadline
-
setIcon
-
getIcon
-
getModalPopup
-
isIconRendered
public boolean isIconRendered() -
onClose
public void onClose(javax.faces.event.ActionEvent ae) -
onCancel
public void onCancel(javax.faces.event.ActionEvent ae) -
close
public void close() -
reactOnPopupClosedByUser
public void reactOnPopupClosedByUser()- Specified by:
reactOnPopupClosedByUser
in interfaceBasePopup.IPopupListener
-
setTextOk
Explicitly set the text of the OK button - otherwise the default text will be shown. -
getTextOk
-
setTextCancel
Set the text of cancel-button. If not specified the default text is shown. -
getTextCancel
-
setShowCancel
public void setShowCancel(boolean value) By default the popup has an OK button - the user can cancel by closing the popup usRing the normal popup close icon. But: if setting showCancel to "true" then the cancel button is shown explicitly. -
getShowCancel
public boolean getShowCancel() -
getBodyBgpaint
-
setBodyBgpaint
-