Class YESNOPopup
java.lang.Object
org.eclnt.jsfserver.defaultscreens.YESNOPopup
- All Implemented Interfaces:
Serializable,BasePopup.IPopupListener,ModalPopup.IModalPopupListener,ICCServerConstants
public class YESNOPopup
extends Object
implements Serializable, ModalPopup.IModalPopupListener, ICCServerConstants
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interfacestatic classstatic 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 TypeMethodDescriptionstatic booleanChecks if already the instance of the popup is opened.static YESNOPopupcreateInstance(String title, String text, YESNOPopup.IYesNoListener yesNoListener) Create and open a YESNOPopup.booleangetIcon()static ThrowablePasses back the last throwable (for analyzing the stack trace) of the last operation that opened the popup.booleangetText()static voidbooleanvoidonCancel(ActionEvent ae) voidonNo(ActionEvent ae) voidonYes(ActionEvent ae) voidvoidsetBackgroundColor(String backgroundColor) voidsetCancelButtonImage(String cancelButtonImage) voidsetHeadline(String value) voidsetHeight(int value) voidvoidsetImageBackgroundColor(String imageBackgroundColor) voidvoidvoidvoidsetNoButtonImage(String noButtonImage) voidsetShowCancel(boolean value) By default the popup has a Yes and a No button - the user can cancel by closing the popup usRing the normal popup close icon.voidSet the text that is presented as question to the user.voidsetTextAlign(String value) voidsetTextCancel(String value) Set the text of cancel-button.voidsetTextContentType(String textContentType) voidSet the text of no-button.voidsetTextYes(String value) Set the text of yes-button.voidsetWidth(int value) voidsetYesButtonImage(String yesButtonImage)
-
Field Details
-
PAGENAME_DEFAULT
-
PAGENAME_HTML
-
-
Constructor Details
-
YESNOPopup
public YESNOPopup()
-
-
Method Details
-
initialize
public static void initialize() -
createInstance
public static YESNOPopup createInstance(String title, String text, YESNOPopup.IYesNoListener yesNoListener) Create and open a YESNOPopup. Dependent from the type of the listener the popup is shown with (IYesNoListener) or without cancel button (IYesNoCancelLitener).
Please note: this popup can only be opened once, i.e. it cannot be opened mulitple times! When attempting to call it twice then a RuntimeException is thrown. -
checkIfAlreadyOpened
public static boolean checkIfAlreadyOpened()Checks if already the instance of the popup is opened. -
getLastCallStackTrace
Passes back the last throwable (for analyzing the stack trace) of the last operation that opened the popup. May return null. This information typically is useful when you try to open the popup, receive a runtime exception that it is already opened and do not know who was the first caller of the popup. -
setInitialFocusToYes
public void setInitialFocusToYes() -
setInitialFocusToNo
public void setInitialFocusToNo() -
setInitialFocusToCancel
public void setInitialFocusToCancel() -
getRequestFocusYes
-
getRequestFocusNo
-
getRequestFocusCancel
-
getYesButtonImage
-
setYesButtonImage
-
getNoButtonImage
-
setNoButtonImage
-
getCancelButtonImage
-
setCancelButtonImage
-
getBackgroundColor
-
setBackgroundColor
-
getImageBackgroundColor
-
setImageBackgroundColor
-
setText
Set the text that is presented as question to the user. -
getText
-
setIcon
-
getIcon
-
getHeadlineRendered
public boolean getHeadlineRendered() -
setHeadline
-
getHeadline
-
setTextAlign
-
getTextAlign
-
getTextContentType
-
setTextContentType
-
setTextYes
Set the text of yes-button. If not specified the default text is shown. -
getTextYes
-
setTextNo
Set the text of no-button. If not specified the default text is shown. -
getTextNo
-
setTextCancel
Set the text of cancel-button. If not specified the default text is shown. -
getTextCancel
-
getModalPopup
-
isIconRendered
public boolean isIconRendered() -
setShowCancel
public void setShowCancel(boolean value) By default the popup has a Yes and a No 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() -
onYes
-
onNo
-
onCancel
-
reactOnPopupClosedByUser
public void reactOnPopupClosedByUser()- Specified by:
reactOnPopupClosedByUserin interfaceBasePopup.IPopupListener
-
setWidth
public void setWidth(int value) -
setHeight
public void setHeight(int value)
-