Index
All Classes and Interfaces|All Packages
A
- addInstanceCloseListener(InstanceCloseListener) - Method in class com.jpro.webapi.WebAPI
-
Adds a listener to this WebAPI, to get triggered as this session is closing.
- addRequestHandler(Function<Request, Response>) - Method in class com.jpro.webapi.server.ServerAPI
-
Adds a request handler to the server.
- afkProperty() - Method in interface com.jpro.webapi.InstanceInfo
-
Returns a property which indicates whether the user is considered as inactive.
- anchorProperty() - Method in interface com.jpro.webapi.JProTextInputControl
-
The anchor of the selection.
B
- backgroundProperty() - Method in interface com.jpro.webapi.InstanceInfo
-
Returns a property which indicates whether the application is running in the background.
- blockKeyboardInputProperty() - Method in class com.jpro.webapi.HTMLView
-
Whether the JPro application will get keyboard events.
- blockMouseInputProperty() - Method in class com.jpro.webapi.HTMLView
-
Whether the JPro application will get mouse events.
C
- callback(String) - Method in interface com.jpro.webapi.WebCallback
-
A callback method, which is used by the
WebAPI
. - caretPositionProperty() - Method in interface com.jpro.webapi.JProTextInputControl
-
Provides access to the caret position property.
- closeInstance() - Method in class com.jpro.webapi.WebAPI
-
Calling this method closes the current instance.
- com.jpro.webapi - package com.jpro.webapi
- com.jpro.webapi.annotation - package com.jpro.webapi.annotation
- com.jpro.webapi.js - package com.jpro.webapi.js
- com.jpro.webapi.server - package com.jpro.webapi.server
- consume(WebAPI) - Method in interface com.jpro.webapi.WebAPIConsumer
-
Consumes the given
WebAPI
. - contentProperty() - Method in class com.jpro.webapi.HTMLView
-
Defines the content of the HTMLView, as an HTML formatted text.
- contentProperty() - Method in class com.jpro.webapi.SVGView
-
Defines the SVG content of the SVGView.
- createJSFile(String, String, long) - Method in class com.jpro.webapi.WebAPI
-
Creates a
WebAPI.JSFile
object. - createPublicFile(URL) - Method in class com.jpro.webapi.WebAPI
-
Creates a public profile for a given
url
. - createUniqueJSName() - Method in class com.jpro.webapi.WebAPI
-
Creates a unique name, which can be used in JavaScript code.
- createUniqueJSName(String) - Method in class com.jpro.webapi.WebAPI
-
Creates a unique name with the given prefix, which can be used in JavaScript code.
- createVirtualImage(String, int, int) - Static method in class com.jpro.webapi.WebAPI
-
Creates a virtual image that does not allocate any memory in the RAM.
- createVirtualImage(String, int, int) - Method in interface com.jpro.webapi.WebAPI.WebAPIStatic
- createVirtualImage(String, int, int, boolean) - Static method in class com.jpro.webapi.WebAPI
-
Creates a virtual image that does not allocate any memory in the RAM.
- createVirtualImage(String, int, int, boolean) - Method in interface com.jpro.webapi.WebAPI.WebAPIStatic
- creationTime() - Method in interface com.jpro.webapi.InstanceInfo
-
Returns the creation time of this instance in milliseconds.
D
- darkMode() - Method in class com.jpro.webapi.WebAPI
-
A boolean property that changes value when the dark mode is activated or deactivated.
- dataReceivedWSProperty() - Method in interface com.jpro.webapi.InstanceInfo
-
Returns a property with the data received via the WebSocket connection.
- dataSentWSProperty() - Method in interface com.jpro.webapi.InstanceInfo
-
Returns a property with the data sent via the WebSocket connection.
- deleteCookie(String) - Method in class com.jpro.webapi.WebAPI
-
Deletes a cookie from the current browser session.
- devicePixelRatio() - Method in class com.jpro.webapi.WebAPI
-
Retrieves the device pixel ratio in the current browser tab.
- downloadResource(String) - Method in class com.jpro.webapi.WebAPI
-
Downloads content from the given resource
url
. - downloadResource(String, Runnable) - Method in class com.jpro.webapi.WebAPI
-
Downloads content from the given resource
url
. - downloadURL(URL) - Method in class com.jpro.webapi.WebAPI
-
Downloads content from the given
url
. - downloadURL(URL, Runnable) - Method in class com.jpro.webapi.WebAPI
-
Downloads content from the given
url
.
E
- editableProperty() - Method in interface com.jpro.webapi.JProTextInputControl
-
Whether the control is editable or not.
- empty() - Static method in class com.jpro.webapi.server.Response
-
Creates an empty response.
- eval(String) - Method in interface com.jpro.webapi.js.JS
-
Executes the given JavaScript code synchronously on the client.
- evalAsync(String) - Method in interface com.jpro.webapi.js.JS
-
Executes the given code in the javascript client.
- evalFuture(String) - Method in interface com.jpro.webapi.js.JS
-
Executes the given code in the javascript client.
- executeJSAsync(String) - Method in class com.jpro.webapi.WebAPI
-
Writes a function which contains asynchronous code and can be accessed with the JSVariable after it's finished.
- executeJSAsyncPromise(String) - Method in class com.jpro.webapi.WebAPI
-
Writes a function which contains asynchronous code.
- executeScript(String) - Method in class com.jpro.webapi.WebAPI
-
Deprecated.
- executeScriptWithFuture(String) - Method in class com.jpro.webapi.WebAPI
-
Deprecated.
- executeScriptWithListener(String, ScriptResultListener) - Method in class com.jpro.webapi.WebAPI
-
Deprecated.
- executeScriptWithReturn(String) - Method in class com.jpro.webapi.WebAPI
-
Executes Javascript
code
in the currently hosting browser. - executeScriptWithVariable(String) - Method in class com.jpro.webapi.WebAPI
-
Deprecated.
- Experimental - Annotation Interface in com.jpro.webapi.annotation
-
Indicates that a public API of the annotated element (class, method or field) is not in stable state yet.
F
- fileDragOverProperty() - Method in interface com.jpro.webapi.WebAPI.FileSelector
-
This value changes to true, when the cursor is dragging a file and is above the associated node.
- FileUploader() - Constructor for class com.jpro.webapi.WebAPI.FileUploader
- futureToPromise(WebAPI, CompletableFuture<JSVariable>) - Static method in class com.jpro.webapi.JSVariable
-
This method converts a CompletableFuture<JSVariable> to a Promise which can be used in JS.
G
- getActiveWindowsCount() - Method in interface com.jpro.webapi.ServerInfo
-
Returns the number of active windows opened.
- getAnchor() - Method in interface com.jpro.webapi.JProTextInputControl
-
Gets the position of the anchor in the text control.
- getBody() - Method in class com.jpro.webapi.server.Request
-
Returns the body of the request.
- getBody() - Method in class com.jpro.webapi.server.Response
-
Gets the body of the response.
- getBrowserSize() - Method in class com.jpro.webapi.WebAPI
-
Retrieves the window size of the currently hosting browser.
- getBrowserURL() - Method in class com.jpro.webapi.WebAPI
-
Returns the URL, which was used to call this session.
- getCaretPosition() - Method in interface com.jpro.webapi.JProTextInputControl
-
Retrieves the current position of the caret (cursor) in the text control.
- getCommittedNonHeapMemory() - Method in interface com.jpro.webapi.ServerInfo
-
Returns the non heap memory commited by the server.
- getContent() - Method in class com.jpro.webapi.HTMLView
-
Gets the value of the property content (a string in HTML format).
- getContent() - Method in class com.jpro.webapi.SVGView
-
Gets the value of the property content.
- getCookies() - Method in class com.jpro.webapi.WebAPI
-
Retrieves the cookies of the current browser window.
- getCpuSystemLoad() - Method in interface com.jpro.webapi.ServerInfo
-
Returns the CPU usage of the system the server is running on.
- getDataReceivedWS() - Method in interface com.jpro.webapi.InstanceInfo
-
Returns the length of the data received via the WebSocket connection.
- getDataSentWS() - Method in interface com.jpro.webapi.InstanceInfo
-
Returns the length of the data sent via the WebSocket connection.
- getDefaultJavaEncoding() - Method in interface com.jpro.webapi.ServerInfo
-
Returns the default file encoding of the system the server is running on.
- getDefaultJavaLocale() - Method in interface com.jpro.webapi.ServerInfo
-
Returns the default locale of the system the server is running on.
- getDefaultJavaTimeZone() - Method in interface com.jpro.webapi.ServerInfo
-
Returns the default timezone of the system the server is running on.
- getDevicePixelRatio() - Method in class com.jpro.webapi.WebAPI
-
Retrieves the current value of the device pixel ratio in the current browser tab.
- getElement(Node) - Method in class com.jpro.webapi.WebAPI
-
This return a JSVariable, which reference the HTMLElement of the given node.
- getFileDragOver() - Method in interface com.jpro.webapi.WebAPI.FileSelector
-
Gets the value of the property fileDragOver.
- getFilename() - Method in interface com.jpro.webapi.WebAPI.JSFile
- getFilesDragOverTypes() - Method in interface com.jpro.webapi.WebAPI.FileSelector
-
The MIME types of the files which are currently dragged above the node.
- getFileSize() - Method in interface com.jpro.webapi.WebAPI.JSFile
-
Returns the size of the file in bytes.
- getFramerate() - Method in interface com.jpro.webapi.ServerInfo
-
Returns the current framerate.
- getFreeDiskSpace() - Method in interface com.jpro.webapi.ServerInfo
-
Returns the free disk space of the system the server is running on.
- getFreeSystemMemory() - Method in interface com.jpro.webapi.ServerInfo
-
Returns the free memory of the system the server is running on.
- getHeaders() - Method in class com.jpro.webapi.server.Request
-
Returns the headers of the request.
- getHeaders() - Method in class com.jpro.webapi.WebAPI
-
Retrieves all the headers provided to this session.
- getHost() - Method in class com.jpro.webapi.server.Request
-
Returns the host of the request.
- getHTMLViewElement(HTMLView) - Method in class com.jpro.webapi.WebAPI
-
This return a JSVariable, which reference the HTMLElement of the given HTMLView.
- getInitialHostName() - Method in interface com.jpro.webapi.InstanceInfo
-
Returns the initial host name of this instance.
- getInstanceID() - Method in class com.jpro.webapi.WebAPI
-
Returns the ID of the current session.
- getInstanceInfo() - Method in class com.jpro.webapi.WebAPI
-
Returns information about this running instance.
- getInstancesActiveCount() - Method in interface com.jpro.webapi.ServerInfo
-
Returns the number of instances active.
- getInstancesAfkCount() - Method in interface com.jpro.webapi.ServerInfo
-
Returns the number of instances not active or afk (away from keyboard).
- getInstancesCreatedCount() - Method in interface com.jpro.webapi.ServerInfo
-
Returns the number of instances created.
- getJavaFXCpuUsage() - Method in interface com.jpro.webapi.ServerInfo
-
Returns the overall JavaFX CPU usage by the server.
- getJavaFXVersion() - Method in interface com.jpro.webapi.ServerInfo
-
Returns the current JavaFX version the server is running on.
- getJavaVersion() - Method in interface com.jpro.webapi.ServerInfo
-
Returns the current Java version the server is running on.
- getJProBuildTime() - Method in interface com.jpro.webapi.ServerInfo
-
Returns the build time of this JPro server.
- getJProDeployment() - Method in interface com.jpro.webapi.ServerInfo
-
Returns deployment method for this JPro server, either via Gradle or Maven.
- getJProGitCommit() - Method in interface com.jpro.webapi.ServerInfo
-
Returns the latest Git commit hash for this JPro server.
- getJProMode() - Method in interface com.jpro.webapi.ServerInfo
-
Returns the current mode the server is running on: dev = development mode prod = production mode
- getJProVersion() - Method in class com.jpro.webapi.server.ServerAPI
-
Return the version of the currently running JPro server.
- getJProVersion() - Method in interface com.jpro.webapi.ServerInfo
-
Returns the current version of the JPro server.
- getJSFile() - Method in interface com.jpro.webapi.WebAPI.SingleFileUploader
-
Gets the value of the property jsFile.
- getJvmSystemLoad() - Method in interface com.jpro.webapi.ServerInfo
-
Returns the JVM CPU usage of the system the server is running on.
- getLanguage() - Method in class com.jpro.webapi.WebAPI
-
Retrieves the preferred language of the currently hosting browser.
- getLanguages() - Method in class com.jpro.webapi.WebAPI
-
Retrieves the list of preferred languages of the currently hosting browser.
- getLastActionTime() - Method in interface com.jpro.webapi.InstanceInfo
-
Returns a value with the time of the last user action in milliseconds.
- getLatency() - Method in interface com.jpro.webapi.InstanceInfo
-
Returns the average latency in milliseconds.
- getLocale() - Method in class com.jpro.webapi.WebAPI
-
Retrieves the preferred locale of the currently hosting browser.
- getMaxMemory() - Method in interface com.jpro.webapi.ServerInfo
-
Returns the max memory available for the server.
- getMethod() - Method in class com.jpro.webapi.server.Request
-
Returns the method of the request.
- getMimeType() - Method in class com.jpro.webapi.server.Response
-
Gets the MIME type of the response.
- getName() - Method in class com.jpro.webapi.JSVariable
-
Gets the code to access the JavaScript variable.
- getNodesCollected() - Method in interface com.jpro.webapi.InstanceInfo
-
Returns the number of nodes collected.
- getNodesCreated() - Method in interface com.jpro.webapi.InstanceInfo
-
Returns the number of nodes created.
- getNodesSynchronized() - Method in interface com.jpro.webapi.InstanceInfo
-
Returns the number of nodes synchronized.
- getObjectURL() - Method in interface com.jpro.webapi.WebAPI.JSFile
-
Returns the Object URL representing the file.
- getOnFileSelected() - Method in interface com.jpro.webapi.WebAPI.SingleFileUploader
- getOpenInstances() - Method in interface com.jpro.webapi.ServerInfo
-
Returns the default country of the system the server is running on.
- getPath() - Method in class com.jpro.webapi.server.Request
-
Returns the path of the request.
- getPlatform() - Method in class com.jpro.webapi.WebAPI
-
Retrieves the String returned by the `navigator.userAgentData.platform` property.
- getPlatformOld() - Method in class com.jpro.webapi.WebAPI
-
Retrieves the String returned by the `navigator.platform` property.
- getProgress() - Method in interface com.jpro.webapi.WebAPI.JSFile
-
Gets the value of the property progress.
- getProgress() - Method in interface com.jpro.webapi.WebAPI.SingleFileUploader
-
Gets the value of the property progress.
- getPromiseString() - Method in class com.jpro.webapi.PromiseJSVariable
-
Resolves the JavaScript promise and retrieves its value as a string.
- getRemoteAddress() - Method in interface com.jpro.webapi.InstanceInfo
-
Returns the instance ID of this instance.
- getRunningTime() - Method in interface com.jpro.webapi.ServerInfo
-
Returns the running time of the server.
- getSelectedFile() - Method in interface com.jpro.webapi.WebAPI.SingleFileUploader
-
Gets the value of the property selectedFile.
- getSelectedFileSize() - Method in interface com.jpro.webapi.WebAPI.SingleFileUploader
-
Gets the value of the property selectedFileSize
- getSelectFileOnClick() - Method in interface com.jpro.webapi.WebAPI.FileSelector
-
Gets the value of the property selectFileOnClick
- getSelectFileOnDrop() - Method in interface com.jpro.webapi.WebAPI.FileSelector
-
Gets the value of the property selectFileOnDrop
- getSelectionMode() - Method in interface com.jpro.webapi.WebAPI.FileSelector
-
Gets the value of the property selectionMode.
- getServer() - Method in class com.jpro.webapi.WebAPI
-
Returns the server address used to instantiate the currently running session.
- getServerAPI() - Static method in class com.jpro.webapi.server.ServerAPI
-
Returns the singleton instance of the server API.
- getServerInfo() - Static method in class com.jpro.webapi.WebAPI
-
Returns information about the current running server.
- getServerInfo() - Method in interface com.jpro.webapi.WebAPI.WebAPIStatic
- getServerName() - Method in class com.jpro.webapi.WebAPI
-
Deprecated.
- getStage() - Method in class com.jpro.webapi.StageView
-
Gets the value of the property stage.
- getStartTime() - Method in interface com.jpro.webapi.ServerInfo
-
Returns the start time of the server in milliseconds.
- getStats() - Method in interface com.jpro.webapi.ServerInfo
-
Returns stats information provided as a map.
- getStatusCode() - Method in class com.jpro.webapi.server.Response
-
Gets the HTTP status code of the response.
- getString() - Method in class com.jpro.webapi.JSVariable
-
Executes a script to get the string representation of the JavaScript variable.
- getText() - Method in interface com.jpro.webapi.JProTextInputControl
-
Retrieves the current text from the text input control.
- getTimeZone() - Method in class com.jpro.webapi.WebAPI
-
Retrieves the preferred time zone of the currently hosting browser.
- getTotalDiskSpace() - Method in interface com.jpro.webapi.ServerInfo
-
Returns the total disk space of the system the server is running on.
- getTotalSystemMemory() - Method in interface com.jpro.webapi.ServerInfo
-
Returns the total memory of the system the server is running on.
- getUploadedFile() - Method in interface com.jpro.webapi.WebAPI.JSFile
-
Gets the value of the property uploadedFile.
- getUploadedFile() - Method in interface com.jpro.webapi.WebAPI.SingleFileUploader
-
Gets the value of the property uploadedFile.
- getUploadedFileFuture() - Method in interface com.jpro.webapi.WebAPI.JSFile
-
This returns the file when the upload is finished.
- getURI() - Method in class com.jpro.webapi.server.Request
-
Returns the URI of the request.
- getURLQueryParams() - Method in class com.jpro.webapi.WebAPI
-
Retrieves all query parameters from the URL that was used to create the current session.
- getUsedHeapMemory() - Method in interface com.jpro.webapi.ServerInfo
-
Returns the heap memory used by the server.
- getUsedHeapMemoryPercent() - Method in interface com.jpro.webapi.ServerInfo
-
Returns the heap memory used by the server in percentage.
- getUsedNonHeapMemory() - Method in interface com.jpro.webapi.ServerInfo
-
Returns the non heap memory used by the server.
- getViewsActiveCount() - Method in interface com.jpro.webapi.ServerInfo
-
Returns the number of views active.
- getViewsAfkCount() - Method in interface com.jpro.webapi.ServerInfo
-
Returns the number of views not active or afk (away from keyboard).
- getViewsCreatedCount() - Method in interface com.jpro.webapi.ServerInfo
-
Returns the number of views created.
- getVkType() - Method in interface com.jpro.webapi.JProTextInputControl
-
Retrieves the type of virtual keyboard that is used with this control.
- getWebAPI() - Method in class com.jpro.webapi.JProApplication
-
Gets the value of the application's
WebAPI
. - getWebAPI() - Method in class com.jpro.webapi.JSVariable
-
Gets the WebAPI associated with this JSVariable.
- getWebAPI(Node, WebAPIConsumer) - Static method in class com.jpro.webapi.WebAPI
-
Returns the WebAPI implementation interface for the platform the application is currently running on.
- getWebAPI(Scene) - Static method in class com.jpro.webapi.WebAPI
-
Returns the WebAPI implementation interface for the platform the application is currently running on.
- getWebAPI(Window) - Static method in class com.jpro.webapi.WebAPI
-
Returns the WebAPI implementation interface for the platform the application is currently running on.
- getWebsocketCookies() - Method in class com.jpro.webapi.WebAPI
-
Retrieves the cookies associated with the WebSocket connection.
H
- handle() - Method in interface com.jpro.webapi.InstanceCloseListener
-
A handle in which actions are defined, to be executed as the instance is closed.
- handle(String) - Method in interface com.jpro.webapi.ScriptResultListener
-
A handle in which actions are defined, to be executed as a Javascript method is finished.
- handle(String) - Method in interface com.jpro.webapi.WebAPI.FileSelectedListener
- HTMLView - Class in com.jpro.webapi
-
HTMLView is a JavaFX node, which contains HTML content to be rendered in the browser by JPro.
- HTMLView() - Constructor for class com.jpro.webapi.HTMLView
-
Creates an empty instance of the HTMLView, an instance with no content.
- HTMLView(String) - Constructor for class com.jpro.webapi.HTMLView
-
Creates a new instance of HTMLView, with the content provided.
I
- InstanceCloseListener - Interface in com.jpro.webapi
-
This is a functional interface, which is used by the
WebAPI
. - InstanceInfo - Interface in com.jpro.webapi
-
Holds information about the current running instance.
- isAfk() - Method in interface com.jpro.webapi.InstanceInfo
-
Returns a boolean value which indicates whether the user is considered as inactive.
- isBackground() - Method in interface com.jpro.webapi.InstanceInfo
-
Returns a boolean value which indicates whether the application is running in the background.
- isBlockKeyboardInput() - Method in class com.jpro.webapi.HTMLView
-
Gets the value of the property blockKeyboardInput.
- isBlockMouseInput() - Method in class com.jpro.webapi.HTMLView
-
Gets the value of the property blockMouseInput.
- isBrowser() - Static method in class com.jpro.webapi.WebAPI
-
Returns
true
if the implementation is for a browser. - isDarkMode() - Method in class com.jpro.webapi.WebAPI
-
Retrieves the current value of the property
WebAPI.darkMode()
. - isEditable() - Method in interface com.jpro.webapi.JProTextInputControl
-
Checks if the text input control is editable.
- isEmpty() - Method in class com.jpro.webapi.server.Response
-
Checks if the response is empty.
- isMobile() - Method in class com.jpro.webapi.WebAPI
-
Determines whether the current session is running on a mobile device (Android or iOS).
- isPromise() - Method in class com.jpro.webapi.JSVariable
-
This method checks if the JSVariable is a Promise.
- isTextArea() - Method in interface com.jpro.webapi.JProTextInputControl
-
Determines whether the text input control is a TextArea.
J
- jpro.webapi - module jpro.webapi
-
Module descriptor for the JPro WebAPI module.
- JProApplication - Class in com.jpro.webapi
-
This class can be used as the starting point of your application.
- JProApplication() - Constructor for class com.jpro.webapi.JProApplication
- JProTextInputControl - Interface in com.jpro.webapi
-
This interface can be implemented by a JavaFX
Node
. - js() - Method in class com.jpro.webapi.WebAPI
-
Returns as JS object, with which JavaScript code can be executed.
- JS - Interface in com.jpro.webapi.js
-
This interface defines provides the main API for executing JavaScript code on a client.
- jsFileProperty() - Method in interface com.jpro.webapi.WebAPI.SingleFileUploader
-
The current JSFile, which was selected by the client.
- JSVariable - Class in com.jpro.webapi
-
Represents a JavaScript variable managed within a Java environment.
- JSVariable(WebAPI, String) - Constructor for class com.jpro.webapi.JSVariable
-
Constructs a new JSVariable with the specified WebAPI and variable name.
- JSVariable(WebAPI, String, String) - Constructor for class com.jpro.webapi.JSVariable
-
Constructs a new JSVariable with the specified WebAPI, variable name, and cleanup script.
- JSVariable(WebAPI, String, String, CompletableFuture<Void>) - Constructor for class com.jpro.webapi.JSVariable
-
Constructs a JSVariable with the specified WebAPI, variable name, cleanup script, and future representing the completion of the variable.
L
- lastActionTimeProperty() - Method in interface com.jpro.webapi.InstanceInfo
-
Returns a property with the time of the last user action in milliseconds.
- latencyProperty() - Method in interface com.jpro.webapi.InstanceInfo
-
Returns a property with the average latency in milliseconds.
- layoutRoot(Scene) - Method in class com.jpro.webapi.WebAPI
-
Updates the width and height of the provided Scene.
- loadCSSFile(URL) - Method in class com.jpro.webapi.WebAPI
-
Loads a CSS file into the browser.
- loadJSFile(URL) - Method in class com.jpro.webapi.WebAPI
-
Loads and executes the js file in the currently hosting browser.
- loadNode(Node) - Method in class com.jpro.webapi.WebAPI
-
This loads the node into the browser.
M
- makeFileUploadNode(Node) - Method in class com.jpro.webapi.WebAPI
-
Returns a
FileUploader
for a specificnode
. - makeFileUploadNodeStatic(Node) - Static method in class com.jpro.webapi.WebAPI
-
Returns a
FileUploader
for a specificnode
- makeFileUploadNodeStatic(Node) - Method in interface com.jpro.webapi.WebAPI.WebAPIStatic
- makeMultiFileUploadNode(Node) - Method in class com.jpro.webapi.WebAPI
-
Returns a
WebAPI.MultiFileUploader
for a specificnode
. - makeMultiFileUploadNodeStatic(Node) - Static method in class com.jpro.webapi.WebAPI
-
Returns a
MultiFileUploader
for a specificnode
- makeMultiFileUploadNodeStatic(Node) - Method in interface com.jpro.webapi.WebAPI.WebAPIStatic
N
- nodesCollectedProperty() - Method in interface com.jpro.webapi.InstanceInfo
-
Returns a property with the number of nodes collected.
- nodesCreatedProperty() - Method in interface com.jpro.webapi.InstanceInfo
-
Returns a property with the number of nodes created.
- nodesSynchronizedProperty() - Method in interface com.jpro.webapi.InstanceInfo
-
Returns a property with the number of nodes synchronized.
O
- objectURLProperty() - Method in interface com.jpro.webapi.WebAPI.SingleFileUploader
- of(byte[]) - Static method in class com.jpro.webapi.server.Response
-
Creates a response with the given body.
- of(byte[], String) - Static method in class com.jpro.webapi.server.Response
-
Creates a response with the given body and MIME type.
- of(byte[], String, int) - Static method in class com.jpro.webapi.server.Response
-
Creates a response with the given body, MIME type, and status code.
- onComplete() - Method in class com.jpro.webapi.JSVariable
-
Returns a Future, which will be completed when the JSVariable is set to a value.
- onError(Consumer<Throwable>) - Method in class com.jpro.webapi.JSVariable
-
This method registers an error handler which will be called when an error occurs.
- onFileSelectedProperty() - Method in interface com.jpro.webapi.WebAPI.SingleFileUploader
-
Defines a function to be called when a file is dropped.
- onFilesSelectedProperty() - Method in interface com.jpro.webapi.WebAPI.MultiFileUploader
-
Defines a function to be called when a files are selected.
- onPromiseComplete() - Method in class com.jpro.webapi.PromiseJSVariable
-
Returns a CompletableFuture that is completed when the underlying JavaScript promise is resolved.
- onPromiseError(Consumer<Throwable>) - Method in class com.jpro.webapi.PromiseJSVariable
-
Registers an error handler for the promise.
- openLocalResource(String) - Method in class com.jpro.webapi.WebAPI
-
Opens content from the given resource
url
. - openLocalURL(URL) - Method in class com.jpro.webapi.WebAPI
-
Opens content from the given
url
. - openStageAsPopup(Stage) - Method in class com.jpro.webapi.WebAPI
-
Opens the given stage in a new popup.
- openStageAsTab(Stage) - Method in class com.jpro.webapi.WebAPI
-
Opens the given stage in a new tab.
- openStageAsTab(Stage, String) - Method in class com.jpro.webapi.WebAPI
-
Opens the given stage in a new tab.
- openURL(String) - Method in class com.jpro.webapi.WebAPI
-
Opens the given
url
in the current tab. - openURLAsPopup(String) - Method in class com.jpro.webapi.WebAPI
-
Opens the given
url
in a new popup. - openURLAsTab(String) - Method in class com.jpro.webapi.WebAPI
-
Opens the given
url
in a new tab.
P
- progressProperty() - Method in interface com.jpro.webapi.WebAPI.JSFile
-
Defines the progress of uploading the file.
- progressProperty() - Method in interface com.jpro.webapi.WebAPI.SingleFileUploader
-
Defines the progress of uploading the file.
- PromiseJSVariable - Class in com.jpro.webapi
-
This class represents a variable in the JS-scope of the client, which is a promise.
- PromiseJSVariable(JSVariable) - Constructor for class com.jpro.webapi.PromiseJSVariable
-
Constructs a new PromiseJSVariable using an existing JSVariable.
- promiseToFuture(WebAPI, JSVariable) - Static method in class com.jpro.webapi.JSVariable
-
This method converts a JSVariable of a promise to a CompletableFuture<JSVariable> which will be resolved when the promise is resolved.
R
- registerJavaFunction(WebCallback) - Method in class com.jpro.webapi.WebAPI
-
Writes a function which can be accessed with the js-variable.
- registerJavaFunction(String, WebCallback) - Method in class com.jpro.webapi.WebAPI
-
Writes a function into the javascript-variable jpro.*name*.
- registerJavaFunctionWithVariable(Consumer<JSVariable>) - Method in class com.jpro.webapi.WebAPI
-
Writes a function which can be accessed with the js-variable.
- registerValue(String, String) - Method in class com.jpro.webapi.WebAPI
-
Deprecated.
- registerValue(String, Node) - Method in class com.jpro.webapi.WebAPI
-
Deprecated.
- registerWindow(Window) - Method in class com.jpro.webapi.WebAPI
-
This method returns an id, which can be used to start the specified window in a new JProTag.
- removeInstanceCloseListener(InstanceCloseListener) - Method in class com.jpro.webapi.WebAPI
-
Removes a listener from this WebAPI.
- removeRequestHandler(Function<Request, Response>) - Method in class com.jpro.webapi.server.ServerAPI
-
Removes a request handler from the server.
- Request - Class in com.jpro.webapi.server
-
Represents a request with properties such as path, URI, host, and method.
- Request() - Constructor for class com.jpro.webapi.server.Request
- requestLayout(Scene) - Method in class com.jpro.webapi.WebAPI
-
Deprecated.
- resolveVariable() - Method in class com.jpro.webapi.PromiseJSVariable
-
Resolves the underlying JavaScript promise and returns a CompletableFuture that contains the JSVariable representing the resolved promise.
- Response - Class in com.jpro.webapi.server
-
Represents a server response.
- Response(byte[]) - Constructor for class com.jpro.webapi.server.Response
-
Creates a response with the given body.
- Response(byte[], int) - Constructor for class com.jpro.webapi.server.Response
-
Creates a response with the given body and status code.
- runAfterUpdate(Runnable) - Method in class com.jpro.webapi.WebAPI
S
- ScriptResultListener - Interface in com.jpro.webapi
-
This is a functional interface, which is used by the WebAPI.
- selectedFileProperty() - Method in interface com.jpro.webapi.WebAPI.SingleFileUploader
-
Contains the filename, which was selected by the client.
- selectedFileSizeProperty() - Method in interface com.jpro.webapi.WebAPI.SingleFileUploader
-
Contains the size in bytes of the selected file.
- selectFileOnClickProperty() - Method in interface com.jpro.webapi.WebAPI.FileSelector
-
When true, clicking the node will open a file chooser.
- selectFileOnDropProperty() - Method in interface com.jpro.webapi.WebAPI.FileSelector
-
When true, dropping a file over this node selects the dropped file.
- selectionModeProperty() - Method in interface com.jpro.webapi.WebAPI.FileSelector
-
Defines the selection mode of the file chooser.
- selectRange(int, int) - Method in interface com.jpro.webapi.JProTextInputControl
-
Selects a range of text in the text input control.
- ServerAPI - Class in com.jpro.webapi.server
-
This class provides some basic functionality to interact with the server.
- ServerAPI() - Constructor for class com.jpro.webapi.server.ServerAPI
- ServerInfo - Interface in com.jpro.webapi
-
Holds information for the current running JPro server.
- setAnchor(int) - Method in interface com.jpro.webapi.JProTextInputControl
-
Sets the position of the anchor in the text control.
- setBlockKeyboardInput(boolean) - Method in class com.jpro.webapi.HTMLView
-
Sets the value of the blockKeyboardInput property.
- setBlockMouseInput(boolean) - Method in class com.jpro.webapi.HTMLView
-
Sets the value of the property blockMouseInput.
- setCaretPosition(int) - Method in interface com.jpro.webapi.JProTextInputControl
-
Sets the position of the caret (cursor) in the text control.
- setContent(String) - Method in class com.jpro.webapi.HTMLView
-
Sets the value of the property content (a string in HTML format).
- setContent(String) - Method in class com.jpro.webapi.SVGView
-
Sets the value of the property content.
- setCookie(String, String) - Method in class com.jpro.webapi.WebAPI
-
Sets a new cookie in the current browser session.
- setLossless(Image, boolean) - Method in class com.jpro.webapi.WebAPI
-
Sets whether the Image must be transmitted lossless.
- setLosslessStatic(Image, boolean) - Static method in class com.jpro.webapi.WebAPI
-
Sets whether the Image must be transmitted lossless.
- setLosslessStatic(Image, boolean) - Method in interface com.jpro.webapi.WebAPI.WebAPIStatic
- setOnFileSelected(WebAPI.FileSelectedListener) - Method in interface com.jpro.webapi.WebAPI.SingleFileUploader
- setOnFilesSelected(Consumer<List<WebAPI.JSFile>>) - Method in interface com.jpro.webapi.WebAPI.MultiFileUploader
-
Sets the value of the property onFileSelected.
- setSelectFileOnClick(Boolean) - Method in interface com.jpro.webapi.WebAPI.FileSelector
-
Sets the value of the property selectFileOnClick.
- setSelectFileOnDrop(Boolean) - Method in interface com.jpro.webapi.WebAPI.FileSelector
-
Sets the value of the property selectFileOnDrop.
- setSelectionMode(SelectionMode) - Method in interface com.jpro.webapi.WebAPI.FileSelector
-
Sets the value of the property selectionMode.
- setServerAPI(ServerAPI) - Static method in class com.jpro.webapi.server.ServerAPI
-
Sets the singleton instance of the server API.
- setStage(Stage) - Method in class com.jpro.webapi.StageView
-
Sets the value of the property stage.
- setText(String) - Method in interface com.jpro.webapi.JProTextInputControl
-
Sets the text in the text input control to the specified string.
- setVkType(String) - Method in interface com.jpro.webapi.JProTextInputControl
-
Sets the type of virtual keyboard to be used with this control.
- setWebAPI(WebAPI) - Method in class com.jpro.webapi.JProApplication
-
Sets the value of the application's
WebAPI
to the specifiedwebAPI
This method is used internally by JPro. - setWebAPIImpl(Class<?>, BiConsumer<Node, WebAPIConsumer>, WebAPI.WebAPIStatic) - Static method in class com.jpro.webapi.WebAPI
-
Internal method.
- shouldCreateObjectURLProperty() - Method in interface com.jpro.webapi.WebAPI.SingleFileUploader
-
Defines whether an object url should be created.
- stageProperty() - Method in class com.jpro.webapi.StageView
- StageView - Class in com.jpro.webapi
-
StageViews are used to incorporate an arbitrary number of stages anywhere in the scenegraph.
- StageView(Stage) - Constructor for class com.jpro.webapi.StageView
-
Creates a new StageView, containing a stage.
- supportedExtensions() - Method in interface com.jpro.webapi.WebAPI.FileSelector
-
Makes sure only files are selectable, which filename ends with at least one of the Strings.
- SVGView - Class in com.jpro.webapi
-
SVGView is a JavaFX node, which shows SVG-Content in JPro.
- SVGView() - Constructor for class com.jpro.webapi.SVGView
-
Creates a new empty SVGView.
- SVGView(String) - Constructor for class com.jpro.webapi.SVGView
-
Creates a new SVGView, with the content in SVG format.
T
- textProperty() - Method in interface com.jpro.webapi.JProTextInputControl
-
The text that is displayed in the control.
- toPromise() - Method in class com.jpro.webapi.JSVariable
-
Wraps the JSVariable in a PromiseJSVariable, which provides additional promise-specific functionalities.
- toString() - Method in class com.jpro.webapi.server.Request
U
- uploadedFileProperty() - Method in interface com.jpro.webapi.WebAPI.JSFile
-
Contains the file, which was uploaded.
- uploadedFileProperty() - Method in interface com.jpro.webapi.WebAPI.SingleFileUploader
-
Contains the file, which was uploaded.
- uploadFile() - Method in interface com.jpro.webapi.WebAPI.JSFile
-
Starts uploading the selected file.
- uploadFile() - Method in interface com.jpro.webapi.WebAPI.SingleFileUploader
-
Starts uploading the selected file.
V
- value() - Element in annotation interface com.jpro.webapi.annotation.Experimental
-
Provides a description or additional information about the experimental element.
- vkTypeProperty() - Method in interface com.jpro.webapi.JProTextInputControl
-
The text that is displayed in the control.
W
- WebAPI - Class in com.jpro.webapi
-
Used to interface with the browser.
- WebAPI() - Constructor for class com.jpro.webapi.WebAPI
- WebAPI.FileSelectedListener - Interface in com.jpro.webapi
-
This is a functional interface, which is used by the FileUploader.
- WebAPI.FileSelector - Interface in com.jpro.webapi
- WebAPI.FileUploader - Class in com.jpro.webapi
- WebAPI.JSFile - Interface in com.jpro.webapi
- WebAPI.MultiFileUploader - Interface in com.jpro.webapi
- WebAPI.SingleFileUploader - Interface in com.jpro.webapi
-
This class is used for uploading a file.
- WebAPI.WebAPIStatic - Interface in com.jpro.webapi
-
Internal class
- WebAPIConsumer - Interface in com.jpro.webapi
-
This is a functional interface, which is used by the
WebAPI
. - WebCallback - Interface in com.jpro.webapi
-
This is a functional interface, which is used by the
WebAPI
. - wrapNode(String, Node) - Method in class com.jpro.webapi.WebAPI
-
Wraps a node in a tag.
All Classes and Interfaces|All Packages
WebAPI.getBrowserURL()
instead.