Class EventInMFNode

java.lang.Object
vrml.eai.field.BaseField
vrml.eai.field.EventIn
vrml.eai.field.EventInMFNode
Direct Known Subclasses:
EventInMFNodeWrapper

public abstract class EventInMFNode extends EventIn
VRML eventIn class for MFNode.

Set the values of a node array to the given values. The java null reference is treated to be equivalent to the VRML NULL field values.

In the cases where this eventIn is used to represent eventIn MFNode fields such as addChildren and removeChildren calling the set methods with a zero length array or null will result in nothing happening. No event will be propagated to the VRML browser scene graph (although the browser native code may receive this information internally).

Where this eventIn is used to represent exposedFields such as the children field of grouping nodes calling the set methods with null or zero length arrays will result in that field being cleared of all its children.

If the eventIn is constructed from an exposedField where the set_ modifier has been specified this shall be treated as though a normal exposedField has been called.

It is legal to construct an array where some members of the array are null pointers. Due to no specification on the intended result in the VRML specification, the response given by the browser is implementation dependent. Calls will not generate an exception, but the value of actual event passed to the scene graph may vary until the issue is resolved.

Version:
1.0 30 April 1998