Package vrml.eai.field
Class EventOut
java.lang.Object
vrml.eai.field.BaseField
vrml.eai.field.EventOut
- Direct Known Subclasses:
EventOutMField
,EventOutSFBool
,EventOutSFColor
,EventOutSFFloat
,EventOutSFImage
,EventOutSFInt32
,EventOutSFNode
,EventOutSFRotation
,EventOutSFString
,EventOutSFTime
,EventOutSFVec2f
,EventOutSFVec3f
A VRML eventOut class. Represents the VRML read only access type.
The user can encapsulate data and associate that with this field. The user can register themselves as listeners for the output of this event changing by adding themselves as a VRMLEvent listener.
- Version:
- 1.0 7th March 1998
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract void
Add a listener for changes in this eventOut.abstract Object
Get the user data that is associated with this eventOutabstract void
Remove a listener for changes in this eventOut.abstract void
setUserData
(Object data) Associate user data with this event.
-
Constructor Details
-
EventOut
protected EventOut(int type) Construct an instance of this class.- Parameters:
type
- The type of the field
-
-
Method Details
-
addVrmlEventListener
Add a listener for changes in this eventOut.- Parameters:
l
- The listener to add
-
removeVrmlEventListener
Remove a listener for changes in this eventOut.- Parameters:
l
- The listener to remove
-
setUserData
Associate user data with this event. Whenever an event is generated on this eventOut. this data will be available with the Event through its getData method.- Parameters:
data
- The data to associate with this eventOut instance
-
getUserData
Get the user data that is associated with this eventOut- Returns:
- The user data, if any, associated with this eventOut
-