Class PopupWindow


  • public class PopupWindow
    extends java.lang.Object
    Control used for displaying a popup shell.
    Since:
    1.10
    Author:
    Alexandra Buzila
    • Constructor Summary

      Constructors 
      Constructor Description
      PopupWindow​(org.eclipse.swt.widgets.Control control, int maxHeight)
      Creates a new resizable popup window, with size and location relative to the reference control.
      PopupWindow​(org.eclipse.swt.widgets.Control control, int maxHeight, int style)
      Creates a new resizable popup window, with size and location relative to the reference control.
      PopupWindow​(org.eclipse.swt.widgets.Control control, int maxHeight, int style, boolean stretchUp)
      Creates a new resizable popup window, with size and location relative to the reference control.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()
      Closes the popup window.
      protected void configurePopupWindow​(org.eclipse.swt.widgets.Control control, int maxHeight, boolean stretchUp)
      Configures the site, layout and location of the popup.
      org.eclipse.swt.widgets.Composite getContent()
      Returns the content Composite of the popup, which clients may use.
      void open()
      Opens the popup window.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PopupWindow

        public PopupWindow​(org.eclipse.swt.widgets.Control control,
                           int maxHeight)
        Creates a new resizable popup window, with size and location relative to the reference control.
        Parameters:
        control - the reference control
        maxHeight - the maxHeight of the window
      • PopupWindow

        public PopupWindow​(org.eclipse.swt.widgets.Control control,
                           int maxHeight,
                           int style)
        Creates a new resizable popup window, with size and location relative to the reference control.
        Parameters:
        control - the reference control
        maxHeight - the maximum height of the window
        style - the style of the window
      • PopupWindow

        public PopupWindow​(org.eclipse.swt.widgets.Control control,
                           int maxHeight,
                           int style,
                           boolean stretchUp)
        Creates a new resizable popup window, with size and location relative to the reference control.
        Parameters:
        control - the reference control
        maxHeight - the maximum height of the window
        style - the style of the window
        stretchUp - If the window does not fit on screen vertically, it will stretch up to reach the maxHeight
    • Method Detail

      • configurePopupWindow

        protected void configurePopupWindow​(org.eclipse.swt.widgets.Control control,
                                            int maxHeight,
                                            boolean stretchUp)
        Configures the site, layout and location of the popup.
        Parameters:
        control - the reference control
        maxHeight - the maximum height of the window
        stretchUp - If the window does not fit on screen vertically, it will stretch up to reach the maxHeight
      • getContent

        public org.eclipse.swt.widgets.Composite getContent()
        Returns the content Composite of the popup, which clients may use.
        Returns:
        the content Composite.
      • open

        public void open()
        Opens the popup window.
        See Also:
        Shell.open()
      • close

        public void close()
        Closes the popup window.
        See Also:
        Shell.close()