private static class ScreenBuffer.WidgetRecord
extends java.lang.Object
implements java.io.Externalizable
| Modifier and Type | Field and Description |
|---|---|
(package private) int |
id
Widget ID for this widget.
|
(package private) java.lang.Object |
value
Value for the widget.
|
| Constructor and Description |
|---|
WidgetRecord()
Default constructor.
|
WidgetRecord(int id,
java.lang.Object value)
Constructor.
|
WidgetRecord(ScreenBuffer.WidgetRecord other)
Copy constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
readExternal(java.io.ObjectInput in)
Replacement for the default object reading method.
|
java.lang.String |
toString()
Render the instance as text.
|
void |
writeExternal(java.io.ObjectOutput out)
Replacement for the default object writing method.
|
int id
java.lang.Object value
WidgetRecord()
WidgetRecord(int id,
java.lang.Object value)
id - The widget ID.value - The widget value.WidgetRecord(ScreenBuffer.WidgetRecord other)
other - The instance to copy.public java.lang.String toString()
toString in class java.lang.Objectpublic void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablein - The 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.public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizableout - The output destination to which fields will be written.java.io.IOException - In case of I/O errors.