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
Modifier and TypeClassDescriptionstatic interface
static interface
static class
static class
-
Field Summary
Fields inherited from interface org.eclnt.jsfserver.util.ICCServerConstants
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 TypeMethodDescriptionstatic boolean
Checks if already the instance of the popup is opened.static YESNOPopup
createInstance
(String title, String text, YESNOPopup.IYesNoListener yesNoListener) Create and open a YESNOPopup.boolean
getIcon()
static Throwable
Passes back the last throwable (for analyzing the stack trace) of the last operation that opened the popup.boolean
getText()
static void
boolean
void
onCancel
(javax.faces.event.ActionEvent ae) void
onNo
(javax.faces.event.ActionEvent ae) void
onYes
(javax.faces.event.ActionEvent ae) void
void
setBackgroundColor
(String backgroundColor) void
setCancelButtonImage
(String cancelButtonImage) void
setHeadline
(String value) void
setHeight
(int value) void
void
setImageBackgroundColor
(String imageBackgroundColor) void
void
void
void
setNoButtonImage
(String noButtonImage) 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.void
Set the text that is presented as question to the user.void
setTextAlign
(String value) void
setTextCancel
(String value) Set the text of cancel-button.void
setTextContentType
(String textContentType) void
Set the text of no-button.void
setTextYes
(String value) Set the text of yes-button.void
setWidth
(int value) void
setYesButtonImage
(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
public void onYes(javax.faces.event.ActionEvent ae) -
onNo
public void onNo(javax.faces.event.ActionEvent ae) -
onCancel
public void onCancel(javax.faces.event.ActionEvent ae) -
reactOnPopupClosedByUser
public void reactOnPopupClosedByUser()- Specified by:
reactOnPopupClosedByUser
in interfaceBasePopup.IPopupListener
-
setWidth
public void setWidth(int value) -
setHeight
public void setHeight(int value)
-