BBjHtmlView
Description
The BBjHtmlView control displays HTML files, and can act as a complete embedded web browser, with support for HTML5, CSS, and JavaScript.
The BBjHtmlView can be configured through STBL options to be either an embedded WebKit browser using JavaFX, or an embedded Chromium-based browser. See STBL Options for BBjHtmlView below.
Access to the JAVAFX_HTMLVIEW and CHROMIUM_HTMLVIEW features requires an active Software Asset Management (SAM) subscription. See Benefits of ‘Software Asset Management' Feature Line.
Implemented Interfaces
DragSource, DropTarget, Focusable, TabTraversable
Creation
BBjAPI > BBjSysGui > BBjWindow > BBjHtmlView
A BBjHtmlView object is created through the following BBjWindow methods:
Return Value | Method |
---|---|
BBjHtmlView |
addHtmlView(int ID, number x, number y, number w, number h, string html) |
BBjHtmlView |
addHtmlView(int ID, number x, number y, number w, number h, string html, string flags) |
BBjHtmlView |
addHtmlView(int ID, number x, number y, number w, number h, string html, string flags, string chromium_switches$) |
BBjHtmlView |
addHtmlView(int ID, String html) |
BBjHtmlView |
addHtmlView(int ID, String html, string flags) |
BBjHtmlView |
addHtmlView(int ID, String html, string flags, string chromium_switches) |
BBjHtmlView |
addHtmlView(String html) |
BBjHtmlView |
addHtmlView(String html, string flags) |
BBjHtmlView |
addHtmlView(String html, string flags, string chromium_switches) |
Methods of BBjHtmlView
Return Value | Method |
---|---|
int | executeAsyncScript(String script) |
int | executeAsyncScript(String script, boolean await) |
int | executeAsyncScript(String script, boolean await, boolean event) |
Object | executeScript(String script) |
Object | executeScript(String script, boolean await) |
boolean |
|
string |
|
string |
|
string | getDownloadDirectory() |
getImage() |
|
string |
getText() |
string |
getUrl() |
string |
|
void |
injectScript(String script) |
void |
injectScript(String script, boolean top) |
void |
injectUrl(String url) |
void |
injectUrl(String url, boolean top) |
boolean |
print() |
void |
setAutoNavigate(boolean autoNavigate) |
void | setDownloadDirectory(String directory) |
void |
setUrl(String url) |
void |
setUrl(String url, boolean reload) |
void |
setUserAgent(String userAgent) |
Methods of BBjHtmlView implemented for DragSource
Methods of BBjHtmlView implemented for DropTarget
Methods of BBjHtmlView implemented for Focusable
Methods of BBjHtmlView implemented for TabTraversable
Methods of BBjHtmlView inherited from BBjControl
Constants inherited from BBjControl
Events
BUI CSS
STBL Options for BBjHtmlView
Version History
- BBj 24.11: Added an optional event argument for executeAsyncScript.
Example
|
See Also
CALLBACK Verb - Register BBj Subroutine
STBL("!OPTIONS") JAVAFX_HTMLVIEW
STBL("!OPTIONS") CHROMIUM_HTMLVIEW
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.