BBjWebManager / BBjBuiManager
Description
In BBj 14.00 and higher, the BBjWebManager/BBjBuiManager object provides an interface to BUI and DWC application runtime settings.
Note:
In BBj 22.03 and higher, BBjWebManager is an alias for BBjBuiManager.
Creation
BBjAPI > BBjBuiManager
BBjAPI > BBjWebManager
The BBjWebManager/BBjBuiManager object is created through the following BBjAPI methods:
Return Value | Method |
---|---|
BBjBuiManager | getBuiManager() |
BBjWebManager | getWebManager() |
Methods of BBjWebManager
Return Value | Method |
---|---|
void |
addClass(String className) |
BBjBuiAppCloseAction | appAction(String app) |
void | clearCallback(int eventType) |
void | clearCallback(String eventType) |
void | clearCallback(String eventType, int callbackID) |
BBjBuiDefaultCloseAction | defaultAction() |
int | executeAsyncScript(String script) |
Object | executeScript(String script) |
String | getApplicationName() |
String |
getAttribute(String attribute) getAttribute(String attribute, String selector) |
BBjBusyIndicator | getBusyIndicator() |
BBjVector |
getClassList(String selector) |
String |
getComputedStyle(String property) getComputedStyle(String property, String selector) |
String | getDarkTheme() |
BBjBuiCloseAction | getEndAction() |
BBjBuiCloseAction | getErrAction() |
String | getLightTheme() |
boolean | getShowConfirmCloseDialog() |
String |
getStyle(String property) |
String | getTheme() |
String | getTitle() |
String | getUrl() |
void |
injectLinkUrl(String url) injectLinkUrl(String url, boolean top) injectLinkUrl(String url, boolean top, String attributes) injectLinkUrl(String url, boolean top, HashMap attributes) |
void |
injectScript(String script) injectScript(String script, boolean top) injectScript(String script, boolean top, String attributes) injectScript(String script, boolean top, HashMap attributes) |
void |
injectScriptUrl(String url) injectScriptUrl(String url, boolean top) injectScriptUrl(String url, boolean top, String attributes) injectScriptUrl(String url, boolean top, HashMap attributes) |
void |
injectStyle(String style) injectStyle(String style, boolean top) injectStyle(String style, boolean top, String attributes) injectStyle(String style, boolean top, HashMap attributes) |
void |
injectStyleUrl(String url) injectStyleUrl(String url, boolean top) injectStyleUrl(String url, boolean top, String attributes) injectStyleUrl(String url, boolean top, HashMap attributes) |
boolean | isTouchSupported() |
BBjBuiMsgCloseAction | msgAction(String msg) |
BBjWebEventOptions | newEventOptions() |
BBjBuiNoneCloseAction | noneAction() |
void |
removeClass(String className) removeClass(String className, String selector) |
void |
setAttribute(String attribute, String value) setAttribute(String attribute, String value, String selector) |
void | setDarkTheme(String darkTheme) |
void | setLightTheme(String lightTheme) |
void |
setMeta(String name, String content) setMeta(String name, String content, String attributes) |
void | setCallback(int eventType, CustomObject customObject, String method) |
void | setCallback(int eventType, String callback) |
int | setCallback(String eventType, String callback) |
int | setCallback(String eventType, String callback, BBjWebEventOptions options) |
int | setCallback(String eventType, CustomObject customObject, String methodName) |
int | setCallback(String eventType, CustomObject customObject, String methodName, BBjWebEventOptions options) |
void | setEndAction(BBjBuiCloseAction action) |
void | setErrAction(BBjBuiCloseAction action) |
void | setShowConfirmCloseDialog(boolean showConfirmCloseDialog) |
void | setTheme(String theme) |
void | setTitle(String title) |
void |
setStyle(String property, String value) setStyle(String property, String value, String selector) |
boolean |
toggleClass(String className toggleClass(String className, String selector) |
BBjBuiUrlCloseAction | urlAction(String url) |
Events
Callback Code | Object-Oriented Event | Read Record Event | Code |
---|---|---|---|
ON_BROWSER_BACK | BBjBrowserBackEvent | N/A | Z |
ON_BROWSER_CLOSE | BBjBrowserCloseEvent | N/A | Z |
ON_EXECUTE_SCRIPT | BBjExecuteScriptEvent | N/A | x |
ON_LINK_FAILED | BBjLinkFailedEvent | N/A | x |
ON_LINK_LOADED | BBjLinkLoadedEvent | N/A | x |
ON_SCRIPT_FAILED | BBjScriptFailedEvent | N/A | x |
ON_SCRIPT_LOADED | BBjScriptLoadedEvent | N/A | x |
ON_WEB_EVENT | BBjWebEvent | Web Event | x |
Note:
The ON_WEB_EVENT callback code is only a placeholder. In BBj 24.11 and higher, Web Events are registered for String eventType codes using BBjWebManager::setCallback.
The BBjBrowserBackEvent is available when the BUI app is configured to manage the browser history.
Version History
Constants
None.
Example
|
See Also
BBjConfig::releaseOnLostConnection
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.