public class TextField extends RPCStruct
Parameter List
| Name | Type | Description | SmartDeviceLink Ver. Available |
|---|---|---|---|
| name | TextFieldName | Enumeration identifying the field. | SmartDeviceLink 1.0 |
| characterSet | CharacterSet | The set of characters that are supported by this text field. All text is sent in UTF-8 format, but not all systems may support all of the characters expressed by UTF-8. All systems will support at least ASCII, but they may support more, either the LATIN-1 character set, or the full UTF-8 character set. | SmartDeviceLink 1.0 |
| width | Integer | The number of characters in one row of this field.
|
SmartDeviceLink 1.0 |
| rows | Integer | The number of rows for this text field.
|
SmartDeviceLink 1.0 |
TextFieldName,
Alert,
Show,
PerformInteraction,
ScrollableMessage,
PerformAudioPassThru,
ShowConstantTbt| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_CHARACTER_SET |
static String |
KEY_NAME |
static String |
KEY_ROWS |
static String |
KEY_WIDTH |
KEY_BULK_DATA, KEY_PROTECTED, store| Constructor and Description |
|---|
TextField()
Constructs a newly allocated TextField object
|
TextField(Hashtable<String,Object> hash)
Constructs a newly allocated TextField object indicated by the Hashtable parameter
|
TextField(TextFieldName name,
CharacterSet characterSet,
Integer width,
Integer rows)
Constructs a newly allocated TextField object
|
| Modifier and Type | Method and Description |
|---|---|
CharacterSet |
getCharacterSet()
Get the character set that is supported in this field.
|
TextFieldName |
getName()
Get the enumeration identifying the field.
|
Integer |
getRows()
Get the number of rows for this text field.
|
Integer |
getWidth()
Get the number of characters in one row of this field.
|
TextField |
setCharacterSet(CharacterSet characterSet)
Set the character set that is supported in this field.
|
TextField |
setName(TextFieldName name)
Set the enumeration identifying the field.
|
TextField |
setRows(Integer rows) |
TextField |
setWidth(Integer width)
Set the number of characters in one row of this field.
|
clone, deserializeJSON, equals, format, formatObject, getBoolean, getBulkData, getDouble, getFloat, getInteger, getLong, getMessageTypeName, getObject, getStore, getStoreValue, getString, getValue, getValueForString, hashCode, hasKey, isPayloadProtected, serializeJSON, serializeJSON, setBulkData, setPayloadProtected, setValuepublic static final String KEY_WIDTH
public static final String KEY_CHARACTER_SET
public static final String KEY_ROWS
public static final String KEY_NAME
public TextField()
public TextField(Hashtable<String,Object> hash)
hash - The Hashtable to usepublic TextField(@NonNull
TextFieldName name,
@NonNull
CharacterSet characterSet,
@NonNull
Integer width,
@NonNull
Integer rows)
name - Enumeration identifying the field.characterSet - The set of characters that are supported by this text field.
All text is sent in UTF-8 format, but not all systems may support all of the characters expressed by UTF-8.
All systems will support at least ASCII, but they may support more, either the LATIN-1 character set, or the full UTF-8 character set.width - The number of characters in one row of this field.rows - The number of rows for this text field.public TextFieldName getName()
public TextField setName(@NonNull TextFieldName name)
name - the name of TextFieldpublic CharacterSet getCharacterSet()
public TextField setCharacterSet(@NonNull CharacterSet characterSet)
characterSet - - The set of characters that are supported by this text field.
All text is sent in UTF-8 format, but not all systems may support all of the characters expressed by UTF-8.
All systems will support at least ASCII, but they may support more, either the LATIN-1 character set, or the full UTF-8 character set.public Integer getWidth()
public TextField setWidth(@NonNull Integer width)
width - the number of characters in one row of this fieldpublic Integer getRows()