public class JavaFxHtmlPanel extends java.lang.Object implements Disposable
Disposable.Parent
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
JAVAFX_INITIALIZATION_INCOMPLETE_PROPERTY |
protected JFXPanel |
myPanel |
protected WebView |
myWebView |
Constructor and Description |
---|
JavaFxHtmlPanel() |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Usually not invoked directly, see class javadoc.
|
javax.swing.JComponent |
getComponent() |
protected java.net.URL |
getJavaFxStyle(boolean isDarcula) |
protected java.net.URL |
getStyle(boolean isDarcula) |
protected WebView |
getWebViewGuaranteed() |
protected java.lang.String |
prepareHtml(java.lang.String html) |
protected void |
registerListeners(WebEngine engine) |
void |
render() |
protected void |
runInPlatformWhenAvailable(java.lang.Runnable runnable) |
void |
setBackground(java.awt.Color background) |
void |
setHtml(java.lang.String html) |
static javafx.scene.paint.Color |
toFxColor(java.awt.Color background) |
public static final java.lang.String JAVAFX_INITIALIZATION_INCOMPLETE_PROPERTY
protected JFXPanel myPanel
protected WebView myWebView
public static javafx.scene.paint.Color toFxColor(java.awt.Color background)
public void setBackground(java.awt.Color background)
protected void registerListeners(WebEngine engine)
protected void runInPlatformWhenAvailable(java.lang.Runnable runnable)
public javax.swing.JComponent getComponent()
public void setHtml(java.lang.String html)
protected java.lang.String prepareHtml(java.lang.String html)
public void render()
protected java.net.URL getStyle(boolean isDarcula)
WebEngine#setUserStyleSheetLocation(String)
,
getJavaFxStyle(boolean)
protected java.net.URL getJavaFxStyle(boolean isDarcula)
Scene#getStylesheets()
,
getStyle(boolean)
public void dispose()
Disposable
dispose
in interface Disposable
protected WebView getWebViewGuaranteed()