Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Documentation
Sidebar

Class TextField

Hierarchy

java.lang.Object
     com.smartdevicelink.proxy.RPCStruct

Package
com.smartdevicelink.proxy.rpc

Overview

Struct defining the characteristics of a displayed field on the HMI.

Parameter List

Name Type Description SmartDeviceLink Ver. Available
name TextFieldName Enumeration identifying the field. SmartDeviceLink 1.0
characterSet CharacterSet The character set that is supported in this field. SmartDeviceLink 1.0
width Integer The number of characters in one row of this field.
  • Minvalue="1"
  • maxvalue="500"
SmartDeviceLink 1.0
rows Integer The number of rows for this text field.
  • Minvalue="1"
  • maxvalue="3"
SmartDeviceLink 1.0

Fields

KEY_WIDTH

public static final java.lang.String KEY_WIDTH
Constant Value
"width"

KEY_CHARACTER_SET

public static final java.lang.String KEY_CHARACTER_SET
Constant Value
"characterSet"

KEY_ROWS

public static final java.lang.String KEY_ROWS
Constant Value
"rows"

KEY_NAME

public static final java.lang.String KEY_NAME
Constant Value
"name"

Inherited Fields

From Class Fields
com.smartdevicelink.proxy.RPCStruct KEY_BULK_DATA, KEY_PROTECTED, store

Constructors

TextField()

Constructs a newly allocated TextField object

public TextField()

TextField( java.util.Hashtable<java.lang.String, java.lang.Object> hash )

Constructs a newly allocated TextField object indicated by the Hashtable parameter

public TextField(java.util.Hashtable<java.lang.String, java.lang.Object> hash)

Parameters

hash
The Hashtable to use

TextField( TextFieldName name, CharacterSet characterSet, Integer width, Integer rows )

Constructs a newly allocated TextField object

public TextField(TextFieldName name,CharacterSet characterSet,Integer width,Integer rows)

Parameters

name
Enumeration identifying the field.
characterSet
The character set that is supported in this field.
width
The number of characters in one row of this field.
rows
The number of rows for this text field.

Methods

getName()

Get the enumeration identifying the field.

public com.smartdevicelink.proxy.rpc.enums.TextFieldName getName()

setName( TextFieldName name )

Set the enumeration identifying the field.

public void setName(TextFieldName name)

Parameters

name
the name of TextField

getCharacterSet()

Get the character set that is supported in this field.

public com.smartdevicelink.proxy.rpc.enums.CharacterSet getCharacterSet()

setCharacterSet( CharacterSet characterSet )

Set the character set that is supported in this field.

public void setCharacterSet(CharacterSet characterSet)

Parameters

characterSet
- the character set

getWidth()

Get the number of characters in one row of this field.

  • Minvalue="1"
  • maxvalue="500"

public java.lang.Integer getWidth()

setWidth( Integer width )

Set the number of characters in one row of this field.

  • Minvalue="1"
  • maxvalue="500"

public void setWidth(Integer width)

Parameters

width
the number of characters in one row of this field

getRows()

Get the number of rows for this text field.

  • Minvalue="1"
  • maxvalue="3"

public java.lang.Integer getRows()

setRows( Integer rows )

public void setRows(Integer rows)

Parameters

rows

Inherited Methods

From Class Methods
com.smartdevicelink.proxy.RPCStruct getStoreValue, getStore, deserializeJSON, deserializeJSONObject, serializeJSON, serializeJSON, format, getBulkData, setBulkData, setPayloadProtected, isPayloadProtected, getMessageTypeName, hasKey, setValue, getValue, getObject, formatObject, getValueForString, getString, getInteger, getDouble, getFloat, getBoolean, getLong
java.lang.Object getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize
View on GitHub.com
Previous Section Next Section