Stay organized with collections
Save and categorize content based on your preferences.
Builder
class Builder
Builder for FormWidgetInfo
Summary
Public constructors |
Creates an instance
|
Public constructors
Builder
Builder(
widgetType: Int,
widgetIndex: Int,
widgetRect: Rect,
textValue: String,
accessibilityLabel: String)
Creates an instance
Exceptions |
java.lang.NullPointerException |
if any of widgetRect , textValue , or accessibilityLabel are null |
Public methods
setEditableText
fun setEditableText(editableText: Boolean): FormWidgetInfo.Builder
Sets whether this widget contains editable text. Only supported for comboboxes and text fields
Exceptions |
java.lang.IllegalArgumentException |
if this is not a combobox or text field type widget |
setFontSize
fun setFontSize(fontSize: Float): FormWidgetInfo.Builder
Sets the font size for this widget. Only supported for text fields and comboboxes
Parameters |
fontSize |
Float: Value is 0f or greater |
Exceptions |
java.lang.IllegalArgumentException |
if this is not a combobox or text field, or if a negative font size is supplied |
setListItems
fun setListItems(listItems: MutableList<ListItem!>): FormWidgetInfo.Builder
Sets the choice options for this widget. Only supported for comboboxes and list boxes
Exceptions |
java.lang.IllegalArgumentException |
if this is not a combobox or list box |
java.lang.NullPointerException |
if choiceOptions is null |
setMaxLength
fun setMaxLength(maxLength: Int): FormWidgetInfo.Builder
Sets the maximum character length of input text supported by this widget. Only supported for text fields
Parameters |
maxLength |
Int: Value is 0 or greater |
Exceptions |
java.lang.IllegalArgumentException |
if this is not a text field, or if a negative max length is supplied |
setMultiLineText
fun setMultiLineText(multiLineText: Boolean): FormWidgetInfo.Builder
Sets whether this widget supports multi-line text input. Only supported for text fields
Exceptions |
java.lang.IllegalArgumentException |
if this is not a text field |
setMultiSelect
fun setMultiSelect(multiSelect: Boolean): FormWidgetInfo.Builder
Sets whether this widget supports multiple choice selections. Only supported for list boxes
Exceptions |
java.lang.IllegalArgumentException |
if this is not a list box |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[]]