public class BasicWebViewFactory extends java.lang.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(java.awt.Dimension frameSize)
Create a WebView for Linux.
|
protected WebView |
createMacWebView(java.awt.Dimension frameSize)
Create a WebView for Mac OS.
|
protected WebView |
createUnknownOSWebView(java.awt.Dimension frameSize)
Create a WebView for an operating system other than Windows, Mac, or Linux.
|
WebView |
createWebView(java.awt.Dimension frameSize)
Returns a new WebView with the specified
frameSize . |
protected WebView |
createWindowsWebView(java.awt.Dimension frameSize)
Create a WebView for Windows.
|
protected WebView createLinuxWebView(java.awt.Dimension frameSize)
frameSize
- The size in pixels of the WebView's window frame.java.lang.UnsupportedOperationException
- Linux WebView is not supported at this time.protected WebView createMacWebView(java.awt.Dimension frameSize)
frameSize
- The size in pixels of the WebView's window frame.protected WebView createUnknownOSWebView(java.awt.Dimension frameSize)
frameSize
- The size in pixels of the WebView's window frame.java.lang.UnsupportedOperationException
- WebView is only implemented for Windows and Mac at this time.public WebView createWebView(java.awt.Dimension frameSize)
frameSize
.createWebView
in interface WebViewFactory
frameSize
- The size in pixels of the WebView's window frame.frameSize
.protected WebView createWindowsWebView(java.awt.Dimension frameSize)
frameSize
- The size in pixels of the WebView's window frame.