public class PopupWindow extends Object
Constructor and 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.
|
Modifier and Type | Method and 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.
|
public PopupWindow(org.eclipse.swt.widgets.Control control, int maxHeight)
control
- the reference controlmaxHeight
- the maxHeight of the windowpublic PopupWindow(org.eclipse.swt.widgets.Control control, int maxHeight, int style)
control
- the reference controlmaxHeight
- the maximum height of the windowstyle
- the style of the windowpublic PopupWindow(org.eclipse.swt.widgets.Control control, int maxHeight, int style, boolean stretchUp)
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 maxHeightprotected void configurePopupWindow(org.eclipse.swt.widgets.Control control, int maxHeight, boolean stretchUp)
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 maxHeightpublic org.eclipse.swt.widgets.Composite getContent()
Composite
of the popup, which clients may use.Composite
.public void open()
Shell.open()
public void close()
Shell.close()
Copyright © 2019. All rights reserved.