Package com.openfin.desktop
Class WebContent
- java.lang.Object
-
- com.openfin.desktop.WebContent
-
- Direct Known Subclasses:
PlatformView,Window
public abstract class WebContent extends 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
-
-
-
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 String getUuid()
Gets UUID- Returns:
- UUID
-
getName
public String getName()
Gets name- Returns:
- name
-
getEventTopicName
protected abstract String getEventTopicName()
-
addEventListener
public CompletionStage<Ack> addEventListener(String type, EventListener listener)
-
removeEventListener
public CompletionStage<Ack> removeEventListener(String type, EventListener listener)
-
getConnection
public DesktopConnection getConnection()
Get DesktopConnection of this window- Returns:
- DesktopConnection
-
executeJavaScript
public CompletionStage<org.json.JSONObject> executeJavaScript(String code)
-
getZoomLevel
public CompletionStage<Double> getZoomLevel()
-
setZoomLevel
public CompletionStage<Void> setZoomLevel(double zoom)
-
navigate
public CompletionStage<Void> navigate(String url)
-
navigateBack
public CompletionStage<Void> navigateBack()
-
navigateForward
public CompletionStage<Void> navigateForward()
-
stopNavigation
public CompletionStage<Void> stopNavigation()
-
reloadAsync
public CompletionStage<Void> reloadAsync(boolean ignoreCache)
-
printAsync
public CompletionStage<Void> printAsync(PrintOptions opts)
-
findInPage
public CompletionStage<Void> findInPage(String searchTerm, FindInPageOptions opts)
-
stopFindInPage
public CompletionStage<Void> stopFindInPage(String action)
-
getPrinters
public CompletionStage<List<PrinterInfo>> getPrinters()
-
focusAsync
public CompletionStage<Void> focusAsync()
-
showDeveloperTools
public CompletionStage<Void> showDeveloperTools()
-
-