Class ModelessPopup

java.lang.Object
org.eclnt.jsfserver.defaultscreens.BasePopup
org.eclnt.jsfserver.defaultscreens.ModelessPopup
All Implemented Interfaces:
Serializable, Comparable<ModelessPopup>

public class ModelessPopup extends BasePopup implements Serializable, Comparable<ModelessPopup>
Server side management of modeless popups. Direct Implementations use the static createInstance() method for creating the popup, then hold a reference and work with this reference. - By default you do not use direct implementations, though. E.g. when using page beans (IPageBean) then you create popups via the page bean's method PageBean#openModelessPopup(org.eclnt.jsfserver.pagebean.IPageBean, String, int, int, IModalPopupListener).
See Also:
  • Constructor Details

    • ModelessPopup

      public ModelessPopup()
  • Method Details

    • setOpenasframe

      public void setOpenasframe(boolean value)
      Tells the popup management that this is not a lightweight dialog popup but that it is some application dialog that is outsourced into some own popup.

      Consequences in the RISC-client:
      The normal "lightweight" popup request to be closed when the user hits the escape-key. The "frame" popup does not have some automated closing on escape.
    • setWindowstate

      @Deprecated public void setWindowstate(int windowstate)
      Deprecated.
      Only applicable for frame-dialogs! Otherwise: 0.
      Please note: this option is not available for the RISC client - and only is supported for the Java-Swing client. We did not remove this option due to compatibility.
    • createInstance

      public static ModelessPopup createInstance()
      Direct creation of modeless popup. This method of creating a popup is some quite internal way - which is normally not used by application programming. Please use the PageBean-way of opening popups using PageBean.openModalPopup(org.eclnt.jsfserver.pagebean.IPageBean, String, int, int, org.eclnt.jsfserver.defaultscreens.ModalPopup.IModalPopupListener) or PageBean.openModelessPopup(org.eclnt.jsfserver.pagebean.IPageBean, String, int, int, IModelessPopupListener) instead.
    • setStickyPosition

      public void setStickyPosition(boolean stickyPosition)
      When passing true then the popup will change its position once the component that opened the popup moves its screen position (e.g. due to mouse wheel scrolling). This option should be switched on in very rare cases only (e.g. when a small info popup is opened for a dedicated field).
    • getStickyPosition

      public boolean getStickyPosition()
    • setAlwaysOnTop

      public void setAlwaysOnTop(boolean alwaysOnTop)
      Defines that the popup is alway positioned as top dialog element and never is covered by other popup dialogs. (Well: if several popups are defined to be always on top, then the sequence is not predictable...)

      Please note: the always on top always refers to the dialog layer that the popup is living in. If starting a popup relative to another base popup then the popup will be only positioned top within the context of the base popup. See BasePopup.setStartfromrootwindow(boolean).
    • getAlwaysOnTop

      public boolean getAlwaysOnTop()
    • close

      public void close()
      Close popup.
      Overrides:
      close in class BasePopup
    • addClosedListener

      public void addClosedListener(ModelessPopup.IModelessPopupClosedListener listener)
    • removeClosedListener

      public void removeClosedListener(ModelessPopup.IModelessPopupClosedListener listener)
    • compareTo

      public int compareTo(ModelessPopup o)
      Specified by:
      compareTo in interface Comparable<ModelessPopup>