|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvrml.eai.field.BaseField
vrml.eai.field.EventIn
public abstract class EventIn
Abstract ancestor of all event-in slots. This class simply
defines methods that allows to attach arbitrary
application-specific data to event-in slots. This is an
abstract class, i.e. you cannot create instances of this
class. The only way to retrieve instances of this class is
the Node.getEventIn(java.lang.String)
method. Usually you
do not use this class directly, but cast it to one of its
descendants for the respective VRML data types.
The following example demonstrates how to get a reference to the "addChildren" event-in slot of a "Group" node:
vrml.eai.Node group = browser.getNode(...); vrml.eai.field.EventInMFNode addChildren = (vrml.eai.field.EventInMFNode)group.getEventIn("addChildren");
Field Summary |
---|
Fields inherited from class vrml.eai.field.BaseField |
---|
MFColor, MFFloat, MFInt32, MFNode, MFRotation, MFString, MFTime, MFVec2f, MFVec3f, SFBool, SFColor, SFFloat, SFImage, SFInt32, SFNode, SFRotation, SFString, SFTime, SFVec2f, SFVec3f |
Method Summary | |
---|---|
abstract java.lang.Object |
getUserData()
Returns the application-specific user data attached to this event-in slot. |
abstract void |
setUserData(java.lang.Object data)
Attaches application-specific user data to this event-in slot. |
Methods inherited from class vrml.eai.field.BaseField |
---|
getType |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public abstract java.lang.Object getUserData()
The following example demonstrates how to retrieve a data object ("myData") attached to an event-in slot:
vrml.eai.field.EventIn eventIn = ...; MyClass myData = (MyClass)eventIn.getUserData();
public abstract void setUserData(java.lang.Object data)
The following example demonstrates how to attach a data object ("myData") to an event-in slot:
MyClass myData = ...; vrml.eai.field.EventIn eventIn = ...; eventIn.setUserData(myData);
data
- The application-specific user data.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |