private static class ScreenBuffer.StatefulWidgetRecord extends ScreenBuffer.WidgetRecord
Modifier and Type | Field and Description |
---|---|
(package private) byte |
state
Current state for the widget.
|
id, value
Constructor and Description |
---|
StatefulWidgetRecord()
Default constructor.
|
StatefulWidgetRecord(int id,
BaseDataType value,
byte state)
Constructor.
|
StatefulWidgetRecord(ScreenBuffer.StatefulWidgetRecord 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.
|
StatefulWidgetRecord()
StatefulWidgetRecord(int id, BaseDataType value, byte state)
id
- The widget ID.value
- The widget value.StatefulWidgetRecord(ScreenBuffer.StatefulWidgetRecord other)
other
- The instance to copy.public java.lang.String toString()
toString
in class ScreenBuffer.WidgetRecord
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
readExternal
in class ScreenBuffer.WidgetRecord
in
- 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.Externalizable
writeExternal
in class ScreenBuffer.WidgetRecord
out
- The output destination to which fields will be written.java.io.IOException
- In case of I/O errors.