public class KeyboardLayoutsSettings
extends java.lang.Object
implements java.io.Externalizable
Modifier and Type | Class and Description |
---|---|
static class |
KeyboardLayoutsSettings.KeyboardLayout
It is a container for the keyboard layout data.
|
Modifier and Type | Field and Description |
---|---|
int |
defaultKeyboardLayoutIndex
Defines the index of the default keyboard layout within the array of keyboard layouts.
|
KeyboardLayoutsSettings.KeyboardLayout[] |
layouts
Defines supported keyboard layouts.
|
Constructor and Description |
---|
KeyboardLayoutsSettings()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
Compares two objects for equality.
|
void |
readExternal(java.io.ObjectInput in)
Fills this object from the given object stream.
|
java.lang.String |
toJSON()
Serializes this object as JSON string.
|
void |
writeExternal(java.io.ObjectOutput out)
Serializes this object into the given object stream.
|
public KeyboardLayoutsSettings.KeyboardLayout[] layouts
public int defaultKeyboardLayoutIndex
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- Object to compare with.true
if instances are equal and
false
otherwise.public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
out
- The given object streamjava.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
- The given object streamjava.io.IOException
- In case of I/O errors.java.lang.ClassNotFoundException
- If payload can't be instantiated.public java.lang.String toJSON()