Package com.openfin.desktop
Class WebContent
java.lang.Object
com.openfin.desktop.WebContent
- Direct Known Subclasses:
PlatformView
,Window
public abstract class WebContent
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description protected DesktopConnection
connection
protected Identity
identity
-
Constructor Summary
Constructors Modifier Constructor Description protected
WebContent(Identity identity, DesktopConnection connection)
-
Method Summary
Modifier and Type Method Description java.util.concurrent.CompletionStage<Ack>
addEventListener(java.lang.String type, EventListener listener)
java.util.concurrent.CompletionStage<org.json.JSONObject>
executeJavaScript(java.lang.String code)
java.util.concurrent.CompletionStage<java.lang.Void>
findInPage(java.lang.String searchTerm, FindInPageOptions opts)
java.util.concurrent.CompletionStage<java.lang.Void>
focusAsync()
DesktopConnection
getConnection()
Get DesktopConnection of this windowprotected abstract java.lang.String
getEventTopicName()
Identity
getIdentity()
java.lang.String
getName()
Gets namejava.util.concurrent.CompletionStage<java.util.List<PrinterInfo>>
getPrinters()
java.lang.String
getUuid()
Gets UUIDjava.util.concurrent.CompletionStage<java.lang.Double>
getZoomLevel()
java.util.concurrent.CompletionStage<java.lang.Void>
navigate(java.lang.String url)
java.util.concurrent.CompletionStage<java.lang.Void>
navigateBack()
java.util.concurrent.CompletionStage<java.lang.Void>
navigateForward()
java.util.concurrent.CompletionStage<java.lang.Void>
printAsync(PrintOptions opts)
java.util.concurrent.CompletionStage<java.lang.Void>
reloadAsync(boolean ignoreCache)
java.util.concurrent.CompletionStage<Ack>
removeEventListener(java.lang.String type, EventListener listener)
java.util.concurrent.CompletionStage<java.lang.Void>
setZoomLevel(double zoom)
java.util.concurrent.CompletionStage<java.lang.Void>
showDeveloperTools()
java.util.concurrent.CompletionStage<java.lang.Void>
stopFindInPage(java.lang.String action)
java.util.concurrent.CompletionStage<java.lang.Void>
stopNavigation()
-
Field Details
-
Constructor Details
-
Method Details
-
getIdentity
-
getUuid
public java.lang.String getUuid()Gets UUID- Returns:
- UUID
-
getName
public java.lang.String getName()Gets name- Returns:
- name
-
getEventTopicName
protected abstract java.lang.String getEventTopicName() -
addEventListener
public java.util.concurrent.CompletionStage<Ack> addEventListener(java.lang.String type, EventListener listener) -
removeEventListener
public java.util.concurrent.CompletionStage<Ack> removeEventListener(java.lang.String type, EventListener listener) -
getConnection
Get DesktopConnection of this window- Returns:
- DesktopConnection
-
executeJavaScript
public java.util.concurrent.CompletionStage<org.json.JSONObject> executeJavaScript(java.lang.String code) -
getZoomLevel
public java.util.concurrent.CompletionStage<java.lang.Double> getZoomLevel() -
setZoomLevel
public java.util.concurrent.CompletionStage<java.lang.Void> setZoomLevel(double zoom) -
navigate
public java.util.concurrent.CompletionStage<java.lang.Void> navigate(java.lang.String url) -
navigateBack
public java.util.concurrent.CompletionStage<java.lang.Void> navigateBack() -
navigateForward
public java.util.concurrent.CompletionStage<java.lang.Void> navigateForward() -
stopNavigation
public java.util.concurrent.CompletionStage<java.lang.Void> stopNavigation() -
reloadAsync
public java.util.concurrent.CompletionStage<java.lang.Void> reloadAsync(boolean ignoreCache) -
printAsync
-
findInPage
public java.util.concurrent.CompletionStage<java.lang.Void> findInPage(java.lang.String searchTerm, FindInPageOptions opts) -
stopFindInPage
public java.util.concurrent.CompletionStage<java.lang.Void> stopFindInPage(java.lang.String action) -
getPrinters
-
focusAsync
public java.util.concurrent.CompletionStage<java.lang.Void> focusAsync() -
showDeveloperTools
public java.util.concurrent.CompletionStage<java.lang.Void> showDeveloperTools()
-