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:
  • Field Details

    • PAGENAME_DEFAULT

      public static String PAGENAME_DEFAULT
    • PAGENAME_HTML

      public static String 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

      public static Throwable 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

      public String getRequestFocusYes()
    • getRequestFocusNo

      public String getRequestFocusNo()
    • getRequestFocusCancel

      public String getRequestFocusCancel()
    • getYesButtonImage

      public String getYesButtonImage()
    • setYesButtonImage

      public void setYesButtonImage(String yesButtonImage)
    • getNoButtonImage

      public String getNoButtonImage()
    • setNoButtonImage

      public void setNoButtonImage(String noButtonImage)
    • getCancelButtonImage

      public String getCancelButtonImage()
    • setCancelButtonImage

      public void setCancelButtonImage(String cancelButtonImage)
    • getBackgroundColor

      public String getBackgroundColor()
    • setBackgroundColor

      public void setBackgroundColor(String backgroundColor)
    • getImageBackgroundColor

      public String getImageBackgroundColor()
    • setImageBackgroundColor

      public void setImageBackgroundColor(String imageBackgroundColor)
    • setText

      public void setText(String value)
      Set the text that is presented as question to the user.
    • getText

      public String getText()
    • setIcon

      public void setIcon(String value)
    • getIcon

      public String getIcon()
    • getHeadlineRendered

      public boolean getHeadlineRendered()
    • setHeadline

      public void setHeadline(String value)
    • getHeadline

      public String getHeadline()
    • setTextAlign

      public void setTextAlign(String value)
    • getTextAlign

      public String getTextAlign()
    • getTextContentType

      public String getTextContentType()
    • setTextContentType

      public void setTextContentType(String textContentType)
    • setTextYes

      public void setTextYes(String value)
      Set the text of yes-button. If not specified the default text is shown.
    • getTextYes

      public String getTextYes()
    • setTextNo

      public void setTextNo(String value)
      Set the text of no-button. If not specified the default text is shown.
    • getTextNo

      public String getTextNo()
    • setTextCancel

      public void setTextCancel(String value)
      Set the text of cancel-button. If not specified the default text is shown.
    • getTextCancel

      public String getTextCancel()
    • getModalPopup

      public ModalPopup 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 interface BasePopup.IPopupListener
    • setWidth

      public void setWidth(int value)
    • setHeight

      public void setHeight(int value)