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 DesktopConnectionconnectionprotected Identityidentity
-
Constructor Summary
Constructors Modifier Constructor Description protectedWebContent(Identity identity, DesktopConnection connection)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods 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()DesktopConnectiongetConnection()Get DesktopConnection of this windowprotected abstract java.lang.StringgetEventTopicName()IdentitygetIdentity()java.lang.StringgetName()Gets namejava.util.concurrent.CompletionStage<java.util.List<PrinterInfo>>getPrinters()java.lang.StringgetUuid()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 Detail
-
connection
protected DesktopConnection connection
-
identity
protected Identity identity
-
-
Constructor Detail
-
WebContent
protected WebContent(Identity identity, DesktopConnection connection)
-
-
Method Detail
-
getIdentity
public Identity 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
public DesktopConnection 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
public java.util.concurrent.CompletionStage<java.lang.Void> printAsync(PrintOptions opts)
-
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
public java.util.concurrent.CompletionStage<java.util.List<PrinterInfo>> getPrinters()
-
focusAsync
public java.util.concurrent.CompletionStage<java.lang.Void> focusAsync()
-
showDeveloperTools
public java.util.concurrent.CompletionStage<java.lang.Void> showDeveloperTools()
-
-