| Package | Description |
|---|---|
| com.codename1.cloud |
Provides cloud related services such as storage, binding widgets to the cloud seamlessly so they can be persisted
easily.
|
| com.codename1.components |
Generic elaborate components that make use of both UI elements and storage.
|
| com.codename1.contacts |
Provides access to the contacts list from the device address book
|
| com.codename1.io.services |
Default WebService implementations
|
| com.codename1.ui |
Main widget package containing the component/container "composite" similar
both in terminology and design to Swing/AWT.
|
| com.codename1.ui.list |
Lists are highly customizable and serve as the basis for
ComboBox and
other components (such as carousels etc) they employ a similar MVC approach to
Swing including the renderer pattern, notice that we strongly
discourage usage of lists...ListCellRenderer
allows us to customize the appearance of a list entry, it works as a
"rubber stamp" by drawing the rendered component and discarding its state thus
allowing very large lists with very little component state overhead. |
| com.codename1.ui.spinner |
Spinners allows picking of simple sequential values similarly to combo boxes but of a much wider value set.
|
| Modifier and Type | Class and Description |
|---|---|
class |
CloudListModel
Deprecated.
the cloud storage API is no longer supported, we recommend switching to a solution such as parse4cn1
|
| Modifier and Type | Method and Description |
|---|---|
ListModel<Image> |
ImageViewer.getImageList()
Returns the list model containing the images in the we can swipe through
|
ListModel |
ButtonList.getModel()
Returns the model.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ImageViewer.setImageList(ListModel<Image> model)
By providing this optional list of images you can allows swiping between multiple images
|
void |
ButtonList.setModel(ListModel model) |
| Constructor and Description |
|---|
ButtonList(ListModel model)
Creates a new ButtonList.
|
RadioButtonList(ListModel model)
Creates a new RadioButton list with the given model of options.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ContactsModel
This Contacts model is responsible for querying Contacts from the device
and to cache the data for faster usage
|
| Modifier and Type | Method and Description |
|---|---|
static void |
ImageDownloadService.createImageToFileSystem(String url,
Component targetList,
ListModel model,
int targetOffset,
String targetKey,
String destFile,
Image placeholder,
byte priority)
Deprecated.
Constructs an image request that will automatically populate the given list
when the response arrives, it will cache the file locally as a file
in the file storage.
|
static void |
ImageDownloadService.createImageToStorage(String url,
Component targetList,
ListModel model,
int targetOffset,
String targetKey,
String cacheId,
Image placeholderImage,
byte priority)
Deprecated.
Constructs an image request that will automatically populate the given list
when the response arrives, it will cache the file locally as a file
in the file storage.
|
| Modifier and Type | Method and Description |
|---|---|
ListModel<T> |
List.getModel()
Returns the model underlying the list
|
protected ListModel<String> |
AutoCompleteTextField.getSuggestionModel()
Returns the list model to show within the completion list
|
| Modifier and Type | Method and Description |
|---|---|
void |
List.setModel(ListModel model)
Replaces/sets the model underlying the list
|
| Constructor and Description |
|---|
AutoCompleteTextComponent(ListModel<String> listModel,
AutoCompleteTextComponent.AutoCompleteFilter customFilter)
This constructor allows us to create an AutoCompleteTextComponent with the
given listModel and customFilter
|
AutoCompleteTextField(ListModel<String> listModel)
Constructor with completion suggestions, filtering is automatic in this case
|
ComboBox(ListModel<T> model)
Creates a new instance of ComboBox
|
List(ListModel model)
Creates a new instance of List with the given model
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
MultipleSelectionListModel<T>
Events
ListModel to support multiple selection. |
| Modifier and Type | Class and Description |
|---|---|
class |
DefaultListModel<T>
Default implementation of the list model based on a
List of elements. |
class |
FilterProxyListModel<T>
This class allows filtering/sorting a list model dynamically using a text field
|
| Modifier and Type | Method and Description |
|---|---|
ListModel |
ContainerList.getModel()
Deprecated.
Returns the list model
|
ListModel |
FilterProxyListModel.getUnderlying()
Returns the underlying model which is needed to perform mutations on the list.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ContainerList.setModel(ListModel model)
Deprecated.
Set the model for the container list
|
| Constructor and Description |
|---|
ContainerList(Layout l,
ListModel m)
Deprecated.
Constructs a container list with the given model and layout
|
ContainerList(ListModel m)
Deprecated.
Constructs a container list with the given model
|
FilterProxyListModel(ListModel<T> underlying)
The proxy is applied to the actual model and effectively hides it
|
MultiList(ListModel model)
Constructor that accepts a model for the list
|
| Modifier and Type | Method and Description |
|---|---|
ListModel |
GenericSpinner.getModel()
Deprecated.
|
ListModel |
GenericSpinner.getModel(int offset)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
GenericSpinner.setModel(int offset,
ListModel model)
Deprecated.
|
void |
GenericSpinner.setModel(ListModel model)
Deprecated.
|
Copyright © 2023. All rights reserved.