public abstract class JBCefApp
extends java.lang.Object
CefApp
.
Use getInstance()
to get the app (triggers CEF startup on first call).
Use createClient()
to create a client.
Modifier and Type | Class and Description |
---|---|
static class |
JBCefApp.CefAppConfig |
static interface |
JBCefApp.JBCefSchemeHandlerFactory |
Modifier and Type | Method and Description |
---|---|
static void |
addCefSchemeHandlerFactory(JBCefApp.JBCefSchemeHandlerFactory factory)
Adds a scheme handler factory.
|
JBCefClient |
createClient() |
protected abstract JBCefApp.CefAppConfig |
getCefAppConfig() |
static JBCefApp |
getInstance()
Returns
JBCefApp instance. |
static boolean |
isEnabled()
Deprecated.
should not be used after JCEF is enabled by default
|
public static JBCefApp getInstance()
JBCefApp
instance. If the app has not yet been initialized
then starts up CEF and initializes the app.java.lang.IllegalStateException
- when JCEF initialization is not possible in current env@Deprecated public static boolean isEnabled()
protected abstract JBCefApp.CefAppConfig getCefAppConfig()
public JBCefClient createClient()
public static void addCefSchemeHandlerFactory(JBCefApp.JBCefSchemeHandlerFactory factory)
JBCefApp
initialization
(performed by getInstance()
). For instance, via the IDE application service.java.lang.IllegalStateException
- if the method is called after JBCefApp
initialization