Server
API Reference Guide
Product Documentation:

Visualization Server
Documentation Home
List of all members | Public Member Functions
javascript::IlsDynObject Class Reference

IlsDynObject JavaScript proxy More...

#include <javascript/serverside.h>

Inheritance diagram for javascript::IlsDynObject:
javascript::IlsViewed

Public Member Functions

void afterInit (IlsDynObject obj)
 This callback is called after initialization of the dynamic object obj. . More...
 
Boolean beginEdition (IlsDynObject obj, Int status)
 Called when beginning edition. More...
 
Boolean endEdition (IlsDynObject obj, Int status)
 Called when beginning edition. More...
 
Boolean onCut (IlsDynObject obj, Boolean ownrel, Boolean userel)
 This callback is called when the dynamic object obj is cut. More...
 
- Public Member Functions inherited from javascript::IlsViewed
void cut (Boolean ownership, Boolean userel)
 Cuts the object. More...
 

Additional Inherited Members

- Public Attributes inherited from javascript::IlsViewed
String typename
 This property returns the name of the object type. It is the standard property of JavaScript.
 

Detailed Description

IlsDynObject JavaScript proxy

Warning
This class is a JavaScript class, not a C++ one.
See also
IlsDynObject (C++).

Member Function Documentation

◆ afterInit()

void javascript::IlsDynObject::afterInit ( IlsDynObject  obj)

This callback is called after initialization of the dynamic object obj. .

Parameters
objthe object that has just been initialized.
See also
IlsDynObject::afterInit() (C++).

◆ beginEdition()

Boolean javascript::IlsDynObject::beginEdition ( IlsDynObject  obj,
Int  status 
)

Called when beginning edition.

This function is called by the corresponding C++ virtual member function IlsViewed::beginEdition() on the dynamic object obj.

Parameters
objthe edited object.
statusThe status parameter has the following values:
  • 1 = Creation
  • 2 = Modification
  • 3 = Deletion
Returns
If the callback returns false, the current transaction is rolled back.

◆ endEdition()

Boolean javascript::IlsDynObject::endEdition ( IlsDynObject  obj,
Int  status 
)

Called when beginning edition.

This function is called by the corresponding C++ virtual member function IlsViewed::endEdition() on the dynamic object obj.

Parameters
objthe edited object.
statusThe status parameter has the following values:
  • 1 = Creation
  • 2 = Modification
  • 3 = Deletion
Returns
If the callback returns false, the current transaction is rolled back.

◆ onCut()

Boolean javascript::IlsDynObject::onCut ( IlsDynObject  obj,
Boolean  ownrel,
Boolean  userel 
)

This callback is called when the dynamic object obj is cut.

Parameters
objthe object.
ownrelcut the ownership relation.
userelcut the use relations.
Returns
If false, the object is not cut.