Package org.eclipse.swt.browser
Class VisibilityWindowAdapter
- java.lang.Object
-
- org.eclipse.swt.browser.VisibilityWindowAdapter
-
- All Implemented Interfaces:
EventListener,VisibilityWindowListener,SWTEventListener
public abstract class VisibilityWindowAdapter extends Object implements VisibilityWindowListener
This adapter class provides default implementations for the methods described by theVisibilityWindowListenerinterface.Classes that wish to deal with
WindowEvent's can extend this class and override only the methods which they are interested in.An alternative to this class are the static helper methods in
VisibilityWindowListener, which accept a lambda expression or a method reference that implements the event consumer.- Since:
- 3.0
- See Also:
- Sample code and further information
-
-
Constructor Summary
Constructors Constructor Description VisibilityWindowAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhide(WindowEvent event)This method is called when the window hosting aBrowseris requested to be hidden.voidshow(WindowEvent event)This method is called when the window hosting aBrowseris requested to be displayed.
-
-
-
Method Detail
-
hide
public void hide(WindowEvent event)
Description copied from interface:VisibilityWindowListenerThis 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
- Specified by:
hidein interfaceVisibilityWindowListener- Parameters:
event- theWindowEventthat specifies theBrowserthat needs to be hidden- See Also:
Shell.setVisible(boolean)
- (in) widget the
-
show
public void show(WindowEvent event)
Description copied from interface:VisibilityWindowListenerThis 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
- Specified by:
showin interfaceVisibilityWindowListener- Parameters:
event- theWindowEventthat specifies theBrowserthat needs to be displayed- See Also:
Control.setLocation(org.eclipse.swt.graphics.Point),Control.setSize(org.eclipse.swt.graphics.Point),Shell.open()
- (in) widget the
-
-