Class PopupWindow
- java.lang.Object
-
- org.eclipse.emfforms.spi.swt.core.util.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 contentComposite
of the popup, which clients may use.void
open()
Opens the popup window.
-
-
-
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 controlmaxHeight
- 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 controlmaxHeight
- the maximum height of the windowstyle
- 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 controlmaxHeight
- the maximum height of the windowstyle
- the style of the windowstretchUp
- 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 controlmaxHeight
- the maximum height of the windowstretchUp
- 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 contentComposite
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()
-
-