class SwingUI

Description:

Main SwingUI class that handles all communication between JavaScript and GUI.
It also contains utility methods not related to specific GUI components.
Do not use this class directly, but instead use ui global variable, which is an instance of this class.

See usage example below.

Constructor

constructor(dir)

NOTE: Do not instantiate this class. It's already instantiated and assigned to a global variable <b>ui</b>.

Parameters:

Name Type Description

dir

string

Module directory.

Members

Methods

From this class:

Examples:

Usage examples:

const data = ui.clipboard();
ui.openURL("http://google.com/");

Also See: