Package org.eclipse.swt.browser
Interface VisibilityWindowListener
- All Superinterfaces:
EventListener
- All Known Implementing Classes:
VisibilityWindowAdapter
This listener interface may be implemented in order to receive
a
WindowEvent notification when a window hosting a
Browser needs to be displayed or hidden.- Since:
- 3.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidhide(WindowEvent event) This method is called when the window hosting aBrowseris requested to be hidden.static VisibilityWindowListenerStatic helper method to create aVisibilityWindowListenerfor thehidehide(WindowEvent e)) method, given a lambda expression or a method reference.voidshow(WindowEvent event) This method is called when the window hosting aBrowseris requested to be displayed.static VisibilityWindowListenerStatic helper method to create aVisibilityWindowListenerfor theshow(WindowEvent e)) method, given a lambda expression or a method reference.
-
Method Details
-
hide
This method is called when the window hosting aBrowseris requested to be hidden. Application would typically hide theShellthat hosts theBrowser.The following fields in the
WindowEventapply:- (in) widget the
Browserthat needs to be hidden
- Parameters:
event- theWindowEventthat specifies theBrowserthat needs to be hidden- Since:
- 3.0
- See Also:
- (in) widget the
-
show
This method is called when the window hosting aBrowseris requested to be displayed. Application would typically set the location and the size of theShellthat hosts theBrowser, if a particular location and size are specified. The application would then open thatShell.The following fields in the
WindowEventapply:- (in) widget the
Browserto display - (in) location the requested location for the
Shellhosting the browser. It isnullif no location is set. - (in) size the requested size for the
Browser. The client area of theShellhosting theBrowsershould be large enough to accommodate that size. It isnullif no size is set. - (in) addressBar
trueif theShellhosting theBrowsershould display an address bar orfalseotherwise - (in) menuBar
trueif theShellhosting theBrowsershould display a menu bar orfalseotherwise - (in) statusBar
trueif theShellhosting theBrowsershould display a status bar orfalseotherwise - (in) toolBar
trueif theShellhosting theBrowsershould display a tool bar orfalseotherwise
- Parameters:
event- theWindowEventthat specifies theBrowserthat needs to be displayed- Since:
- 3.0
- See Also:
- (in) widget the
-
hideAdapter
Static helper method to create aVisibilityWindowListenerfor thehidehide(WindowEvent e)) method, given a lambda expression or a method reference.- Parameters:
c- the consumer of the event- Returns:
- LocationListener
- Since:
- 3.107
-
showAdapter
Static helper method to create aVisibilityWindowListenerfor theshow(WindowEvent e)) method, given a lambda expression or a method reference.- Parameters:
c- the consumer of the event- Returns:
- LocationListener
- Since:
- 3.107
-