Package vrml.eai.field
Class EventIn
java.lang.Object
vrml.eai.field.BaseField
vrml.eai.field.EventIn
- Direct Known Subclasses:
EventInMFColor
,EventInMFFloat
,EventInMFInt32
,EventInMFNode
,EventInMFRotation
,EventInMFString
,EventInMFTime
,EventInMFVec2f
,EventInMFVec3f
,EventInSFBool
,EventInSFColor
,EventInSFFloat
,EventInSFImage
,EventInSFInt32
,EventInSFNode
,EventInSFRotation
,EventInSFString
,EventInSFTime
,EventInSFVec2f
,EventInSFVec3f
A VRML eventIn class. Represents the VRML write only access type.
The user can associate data and also listen for events on this eventIn. These events are notified to the listener at the time that they arrive at the field. This allows the addition of extra features like monitoring a particular field for certain values being set (e.g. for debugging purposes) without having to know every single node that has a ROUTE to this eventIn.
- Version:
- 1.0 7th March 1998
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Object
Get the user data that is associated with this eventInabstract void
setUserData
(Object data) Associate user data with this event.
-
Constructor Details
-
EventIn
protected EventIn(int type) Construct an instance of this class.- Parameters:
type
- The type of the field
-
-
Method Details
-
setUserData
Associate user data with this event. Whenever an event is generated on this eventIn. this data will be available with the Event through its getData method.- Parameters:
data
- The data to associate with this eventIn instance
-
getUserData
Get the user data that is associated with this eventIn- Returns:
- The user data, if any, associated with this eventIn
-