| Package | Description |
|---|---|
| com.codename1.properties |
High level property objects that allow us to replace getters/setters in business objects with more convenient
storage/parsing mappings while retaining type safety.
|
| com.codename1.ui |
Main widget package containing the component/container "composite" similar
both in terminology and design to Swing/AWT.
|
| Modifier and Type | Method and Description |
|---|---|
void |
UiBinding.TextComponentAdapter.assignTo(PropertyType value,
TextComponent cmp) |
void |
UiBinding.TextComponentAdapter.bindListener(TextComponent cmp,
ActionListener<ActionEvent> l) |
PropertyType |
UiBinding.TextComponentAdapter.getFrom(TextComponent cmp) |
void |
UiBinding.TextComponentAdapter.removeListener(TextComponent cmp,
ActionListener<ActionEvent> l) |
| Modifier and Type | Class and Description |
|---|---|
class |
AutoCompleteTextComponent
A
TextComponent version of AutoCompleteTextField
This component was contributed here https://github.com/codenameone/CodenameOne/issues/2705 |
class |
TextComponentPassword
TextComponent extended to automatically add mask/unmask password button near
the TextField; it acts like a normal TextComponent if the Constraint is not
TextArea.PASSWORD
|
| Modifier and Type | Method and Description |
|---|---|
TextComponent |
TextComponent.action(char icon)
Overridden for covariant return type
Sets the icon for the action button
|
TextComponent |
TextComponent.actionAsButton(boolean asButton)
Overridden for covariant return type
Indicates the action should behave as a button next to the component
and not layered on top of the text component.
|
TextComponent |
TextComponent.actionClick(ActionListener c)
Overridden for covariant return type
Binds an event for the action button
|
TextComponent |
TextComponent.actionText(String text)
Overridden for covariant return type
Provides the text of the action button
|
TextComponent |
TextComponent.actionUIID(String uiid)
Overridden for covariant return type
Sets the UIID for the action button
|
TextComponent |
TextComponent.columns(int columns)
Sets the columns in the text field
|
TextComponent |
TextComponent.constraint(int constraint)
Sets the constraint for text input matching the constraints from the text area class
|
TextComponent |
TextComponent.descriptionMessage(String descriptionMessage)
Overridden for covariant return type
Sets the text of the description label which currently only applies in the onTop mode.
|
TextComponent |
TextComponent.errorMessage(String errorMessage)
Overridden for covariant return type
Sets the text of the error label
|
TextComponent |
TextComponent.focusAnimation(boolean focusAnimation)
The focus animation mode forces the hint and text to be identical and animates the hint to the label when
focus is in the text field as is common on Android.
|
TextComponent |
TextComponent.hint(Image hint)
Sets the hint of the field
|
TextComponent |
TextComponent.hint(String hint)
Sets the hint of the field
|
TextComponent |
TextComponent.label(String text)
Overridden for covariant return type
Sets the text of the label
|
TextComponent |
TextComponent.labelAndHint(String text)
Convenience method for setting the label and hint together
|
TextComponent |
TextComponent.multiline(boolean multiline)
Sets the text field to multiline or single line
|
TextComponent |
TextComponent.onTopMode(boolean onTopMode)
Overridden for covariant return type
Sets the on top mode which places the label above the text when true.
|
TextComponent |
TextComponent.rows(int rows)
Sets the rows in the text field
|
TextComponent |
TextComponent.text(String text)
Sets the text of the field
|
Copyright © 2022. All rights reserved.