Package org.eclipse.swt.browser
Interface OpenWindowListener
-
- All Superinterfaces:
EventListener,SWTEventListener
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface OpenWindowListener extends SWTEventListener
This listener interface may be implemented in order to receive aWindowEventnotification when a newBrowserneeds to be provided by the application.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidopen(WindowEvent event)This method is called when a new window needs to be created.
-
-
-
Method Detail
-
open
void open(WindowEvent event)
This method is called when a new window needs to be created.A particular
Browsercan be passed to the event.browser field to host the content of a new window.A standalone system browser is used to host the new window if the event.required field value is
falseand if the event.browser field is leftnull. The event.required field istrueon platforms that don't support a standalone system browser for new window requests.The navigation is cancelled if the event.required field is set to
trueand the event.browser field is leftnull.The following fields in the
WindowEventapply:- (in/out)
WindowEvent.required: true if the platform requires the user to provide aBrowserto handle the new window or false otherwise. - (out)
WindowEvent.browser: the new (unique)Browserthat will host the content of the new window. - (in) widget the
Browserthat is requesting to open a new window
- Parameters:
event- theWindowEventthat needs to be passed a newBrowserto handle the new window request- Since:
- 3.0
- (in/out)
-
-