public class BasicWebViewFactory extends Object implements WebViewFactory
WindowsWebView
. On Mac OS, it
creates MacWebView
. Other operating systems are not supported at this time.Constructor and Description |
---|
BasicWebViewFactory()
Create the factory.
|
Modifier and Type | Method and Description |
---|---|
protected WebView |
createLinuxWebView(Dimension frameSize)
Create a WebView for Linux.
|
protected WebView |
createMacWebView(Dimension frameSize)
Create a WebView for Mac OS.
|
protected WebView |
createUnknownOSWebView(Dimension frameSize)
Create a WebView for an operating system other than Windows, Mac, or Linux.
|
WebView |
createWebView(Dimension frameSize)
Returns a new WebView with the specified
frameSize . |
protected WebView |
createWindowsWebView(Dimension frameSize)
Create a WebView for Windows.
|
protected WebView createLinuxWebView(Dimension frameSize)
frameSize
- The size in pixels of the WebView's window frame.UnsupportedOperationException
- Linux WebView is not supported at this time.protected WebView createMacWebView(Dimension frameSize)
frameSize
- The size in pixels of the WebView's window frame.protected WebView createUnknownOSWebView(Dimension frameSize)
frameSize
- The size in pixels of the WebView's window frame.UnsupportedOperationException
- WebView is only implemented for Windows and Mac at this time.public WebView createWebView(Dimension frameSize)
frameSize
.createWebView
in interface WebViewFactory
frameSize
- The size in pixels of the WebView's window frame.frameSize
.