D0301
HTML Application SDK  A0.101
Classes | Public Member Functions | List of all members
Rs232LanCommand Interface Reference

import"Rs232LanCommand.idl";

Classes

interface  executionResultEvent
 

Public Member Functions

void addEventListener ([in] String event_name, [in] EventListener listener)
 
void execute ([in] String command)
 
void removeEventListener ([in] String event_name, [in] EventListener listener)
 
void removeEventListener ([in] String event_name)
 

Detailed Description

This is a class which implements global RS232LANCommand object.

Member Function Documentation

void Rs232LanCommand.addEventListener ( [in] String  event_name,
[in] EventListener  listener 
)

Adds DOM2 event listener for specified event.

Possible values are: event_name: "executionResultEvent", listener: function that has arguments similar to the executionResultEvent interface properties.

Parameters
event_nameName of the event.
listenerjavascript function that has arguments like the properties listed in the listener's interface.
void Rs232LanCommand.execute ( [in] String  command)

Sends RS232/LAN command to the platform.

var Commands = ['VOLUME 15', 'GETVOLUME'];
Rs232LanCommand.execute(Commands[commandIndex]);
Parameters
commandCommand to execute.
void Rs232LanCommand.removeEventListener ( [in] String  event_name,
[in] EventListener  listener 
)

Removes single DOM2 event listener for specified event

Possible values are: event_name: "executionResultEvent", listener: function that has arguments similar to the executionResultEvent interface properties.

Parameters
event_nameName of the event
listenernamed javascript function that has arguments like the properties listed in the listener's interface.
void Rs232LanCommand.removeEventListener ( [in] String  event_name)

Removes all DOM2 event listeners for specified event

Parameters
event_nameName of the event
See also
removeEventListener([in] String event_name, [in] EventListener listener);

The documentation for this interface was generated from the following file: