Xj3D 2.0 VRML/X3D Code API

org.web3d.vrml.scripting.external.buffer
Interface ExternalEventAdapter

All Known Implementing Classes:
BaseExternalEventAdapter

public interface ExternalEventAdapter

ExternalEventAdapter is an adapter between the underlying event model and the EAI or SAI callbacks. The particular details are handled by the appropriate implementing classes.

The purpose of having this interface is to support having the event changed callbacks occuring in the same thread as the event model, or occuring outside the event model's thread.


Method Summary
 void addListener(int fieldID, java.lang.Object listener)
          Add a listener for one of the fields of this node.
 void generateBroadcast(int fieldID, double timestamp)
          Broadcast an eventOutChanged event for a given field.
 void removeListener(int fieldID, java.lang.Object listener)
          Remove a listener for one of the fields of this node.
 

Method Detail

addListener

void addListener(int fieldID,
                 java.lang.Object listener)
Add a listener for one of the fields of this node. Implementors are allowed to restrict and enforce that the event listener conforms to various interfaces.

Parameters:
fieldID - The ID of the field.
listener - The listener to add.

generateBroadcast

void generateBroadcast(int fieldID,
                       double timestamp)
Broadcast an eventOutChanged event for a given field.

Parameters:
fieldID - The field which changed.
timestamp - When the change occurred.

removeListener

void removeListener(int fieldID,
                    java.lang.Object listener)
Remove a listener for one of the fields of this node. Implementors are allowed to restrict and enforce that the event listener conforms to various interfaces.

Parameters:
fieldID - The ID of the field.
listener - The listener to remove.

Xj3D 2.0 VRML/X3D Code API

Copyright © 2001 - 2006 Web3D Consortium