16 protected Object userData;
26 public String toString() {
28 str =
new String(
"Field with command " +
command +
" for node " + node);
32 public X3DFieldDefinition getDefinition()
throws InvalidFieldException, ConnectionException{
36 public boolean isReadable()
throws InvalidFieldException, ConnectionException {
38 int type = fieldDef.getAccessType();
44 public boolean isWritable()
throws InvalidFieldException, ConnectionException {
46 int type = fieldDef.getAccessType();
52 public void addX3DEventListener (X3DFieldEventListener l)
throws ConnectionException, InvalidFieldException {
55 evType = fieldDef.getFieldType();
56 browser.RegisterListener(l, (Object) userData, nodePtr, offset, dataType, datasize, evType);
59 public void removeX3DEventListener(X3DFieldEventListener l)
throws ConnectionException, InvalidFieldException {
62 evType = fieldDef.getFieldType();
63 browser.unRegisterListener(l, nodePtr, offset, dataType, datasize, evType);
66 public void setUserData(Object data)
throws InvalidFieldException, ConnectionException {
71 public Object getUserData()
throws InvalidFieldException, ConnectionException {
76 public void dispose() {
80 public void checkValid() {
82 throw new InvalidFieldException(
"This field has been disposed");
86 public void setCommand(String com) {
90 public void setNode(String nod) {
94 public void setDataType (String dt) {
98 public void setNodePtr(String np) {
102 public void setOffset(String off) {
106 public void setDataSize(String ds) {
110 public void setScriptType(String st) {
114 public String getDataSize() {
118 public String getScriptType() {
122 public String getCommand() {
126 public String getNode() {
130 public String getDataType() {
134 public String getNodePtr() {
138 public String getOffset() {