|Manuals

TJSObject Class

Description

The TJSObject class represents a custom remotable object that allows defining an object model reflected on the client side.

Key Features

  • Data synchronization: Facilitates the connection between the web client application and the remote Windows application
  • Properties: Supports IJSProperties interfaces for defining properties
  • Methods: Implements IJSMethods that execute on the server when invoked from the client
  • Events: Uses IJSEvents that fire on the client when generated on the server
  • Child objects: Allows containing additional child objects

Bidirectional Synchronization

Property value changes propagate from server to client and vice versa, keeping data synchronized in both directions.

Class Hierarchy

Pascal Declaration

TJSObject = class(TInterfacedObject, IJSObject);

Technical Information

Attribute Detail
File VirtualUI_SDK
Namespace VirtualUI_SDK Namespace

Methods

Method Description
FireEvent Fires an event in the client-side JavaScript API
ApplyChanges Sends property changes to the client
ApplyModel Propagates the complete JSObject definition to the JavaScript client

Properties

Property Description
Id Object identifier (must be unique among sibling objects)
Properties List containing all object properties
Methods List containing all object methods
Events List containing all object events
Objects List containing all child objects

Events

Event Description
OnExecuteMethod Fires when a method is executed on the remote object
OnPropertyChange Fires when a property value changes on the remote object

Members

Type Link
Methods Methods
Properties Properties
Events Events