public class MessageReturnValue
extends java.lang.Object
implements java.io.Externalizable
BaseDataType
and an int
key code.
These are made public to keep the interface simple. This class provides
a very simple container used to return data from the MESSAGE
language statement.Modifier and Type | Field and Description |
---|---|
int |
keycode
The key code of the last key pressed (during any variable set/update
or during a pause) or -1 if no key was pressed.
|
BaseDataType |
var
The variable that was edited or
null if no edit occurred. |
Constructor and Description |
---|
MessageReturnValue()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
void |
readExternal(java.io.ObjectInput in)
Replacement for the default object reading method.
|
void |
writeExternal(java.io.ObjectOutput out)
Replacement for the default object writing method.
|
public BaseDataType var
null
if no edit occurred.public int keycode
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
out
- The output destination to which fields will be saved.java.io.IOException
- In case of I/O errors.public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
in
- Input source from which fields will be restored.java.io.IOException
- In case of I/O errors.java.lang.ClassNotFoundException
- If payload can't be instantiated.