| 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.table |
Table component for editing and viewing tabular data and arranging Codename One components in a tabular form
|
| com.codename1.ui.validation |
The validation framework allows us to mark invalid input in text components and disable components
in the case of invalid input
|
| Modifier and Type | Method and Description |
|---|---|
Constraint |
UiBinding.BoundTableModel.getValidationConstraint(int row,
int column)
If the cell has a validation constraint it's returned here
|
| Modifier and Type | Method and Description |
|---|---|
void |
UiBinding.BoundTableModel.setValidationConstraint(PropertyBase prop,
Constraint c)
Sets a validator constraint on the table
|
| Modifier and Type | Method and Description |
|---|---|
Constraint |
SortableTableModel.getValidationConstraint(int row,
int column)
If the cell has a validation constraint it's returned here
|
Constraint |
AbstractTableModel.getValidationConstraint(int row,
int column)
If the cell has a validation constraint it's returned here
|
| Modifier and Type | Class and Description |
|---|---|
class |
ExistInConstraint
Creates a validation constraint to ensure input value exists in a list of items
|
class |
GroupConstraint
Groups several constraints as if they are one constraint
|
class |
LengthConstraint
Creates a validation constraint based on minimum input length
|
class |
NotConstraint
Negates a group of constraints, such that, if any of its child constraints is true, it returns false.
|
class |
NumericConstraint
Forces the value to be a number potentially within specific bounds
|
class |
RegexConstraint
Creates a validation constraint based on a regular expression
|
| Modifier and Type | Method and Description |
|---|---|
static Constraint |
RegexConstraint.validEmail()
Generates a valid email constraint by using a regular expression
|
static Constraint |
RegexConstraint.validEmail(String errorMessage)
Generates a valid email constraint by using a regular expression
|
static Constraint |
RegexConstraint.validURL()
Generates a valid URL constraint by using a regular expression
|
static Constraint |
RegexConstraint.validURL(String errorMessage)
Generates a valid URL constraint by using a regular expression
|
| Modifier and Type | Method and Description |
|---|---|
Validator |
Validator.addConstraint(Component cmp,
Constraint... c)
Places a constraint on the validator, returns this object so constraint
additions can be chained.
|
| Constructor and Description |
|---|
GroupConstraint(Constraint... group)
Create a new constraint group
|
NotConstraint(Constraint... children)
Creates a new NotConstraint
|
NotConstraint(String failMessage,
Constraint... children)
Creates a new NotConstraint
|
Copyright © 2023. All rights reserved.