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
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interfacestatic class -
Field Summary
FieldsFields 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_EMPTY, 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, LITERAL_LINK_PREFIX, LITERAL_TEMP_PREFIX, QP_CCSTYLE, QP_KEEPDIALOGSESSION, QP_SUBPAGEID, SECURITY_ROLE_CCADMIN, SESSION_TRACKING_COOKIE, SESSION_TRACKING_URL, SIZE_UNDEFINED, TEXTPANE_CONTENTTYPE_HTML, TEXTPANE_CONTENTTYPE_PLAIN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()static OKPopupcreateInstance(String title, String text) static OKPopupcreateInstance(String title, String text, OKPopup.IOKListener okListener) booleangetIcon()booleangetText()booleanstatic voidbooleanvoidonCancel(ActionEvent ae) voidonClose(ActionEvent ae) voidvoidsetBodyBackgroundColor(String bodyBackgroundColor) voidsetBodyBgpaint(String bodyBgpaint) voidsetButtonImage(String buttonImage) voidsetCancelButtonImage(String cancelButtonImage) voidsetHeadline(String value) voidvoidsetImageBackgroundColor(String imageBackgroundColor) voidsetImageBgpaint(String imageBgpaint) voidsetShowCancel(boolean value) By default the popup has an OK button - the user can cancel by closing the popup usRing the normal popup close icon.voidvoidsetTextAlign(String value) voidsetTextCancel(String value) Set the text of cancel-button.voidsetTextColor(String value) voidsetTextContentType(String textContentType) voidsetTextContentType(String textContentType, boolean avoidSanitizing) voidExplicitly 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
-
onCancel
-
close
public void close() -
reactOnPopupClosedByUser
public void reactOnPopupClosedByUser()- Specified by:
reactOnPopupClosedByUserin 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
-