Xj3D 2.0 VRML/X3D Code API

org.web3d.vrml.scripting.sai
Interface FieldAccessListener

All Known Implementing Classes:
JavaSAIScriptWrapper

public interface FieldAccessListener

Internal listener for allowing a SAI field wrapper class to callback to the containing script wrapper to modify the field access notification.

This interface is to solve the problem of users directly adding field listeners to external nodes other than the script's own fields. In this case the nodes are generating their field event to the listener which is then being directly translated into the X3DFieldEventListener callback. Users are allowed to directly interact with other fields at this point, not just the field that generated this event. To allow access to these other fields, the field itself (represented by BaseField) has to tell "the system" that access is currently valid. This is the callback that goes from that field wrapper directly to the ScriptWrapper so that it can iterate through everything and allow direct access.

Version:
$Revision: 1.2 $
Author:
Justin Couch

Method Summary
 void childRequiresAccessStateChange(boolean state)
          Notify that the child field now requires access to be valid or not valid as the case may be from the various flags.
 

Method Detail

childRequiresAccessStateChange

void childRequiresAccessStateChange(boolean state)
Notify that the child field now requires access to be valid or not valid as the case may be from the various flags.

Parameters:
state - true if access should be currently valid.

Xj3D 2.0 VRML/X3D Code API

Copyright © 2001 - 2006 Web3D Consortium