| Package | Description |
|---|---|
| com.codename1.components |
Generic elaborate components that make use of both UI elements and storage.
|
| 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.html |
This package is deprecated and used only for legacy support, use the WebBrowser component
from the components package.
|
| 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.plaf |
Look of the application can be fully customized via this package, it represents
a rendering layer that can be plugged in separately in runtime and themed to
provide any custom look.
|
| com.codename1.ui.util |
Utility features that are either too domain specific or don't "fit" into any
other packages including the Resource file format loading API.
|
| Modifier and Type | Class and Description |
|---|---|
class |
RSSReader
A List implementing an RSS reader that automatically populates itself with content
from the RSS chanel.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Ads.selectionChanged(int oldSelected,
int newSelected,
HTMLComponent htmlC,
List list,
HTMLElement element)
Deprecated.
Called when the user selects an item in a List inside the HTMLComponent
Note: Selection is traversing through the items - once the user has actually decided, an ActionEvent will be sent as well
This method will be called only if HTMLComponent.isEventsEnabled() is true
|
| Modifier and Type | Method and Description |
|---|---|
static void |
ImageDownloadService.createImageToFileSystem(String url,
List targetList,
int targetOffset,
String targetKey,
String destFile,
Dimension toScale)
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,
List targetList,
int targetOffset,
String targetKey,
String cacheId,
Dimension scale)
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.
|
| Constructor and Description |
|---|
ImageDownloadService(String url,
List targetList,
int targetOffset,
String targetKey)
Deprecated.
Constructs an image request that will automatically populate the given list
when the response arrives.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ComboBox<T>
A
ComboBox is a list that allows only one selection at a time, when a user clicks
the ComboBox a popup button with the full list of elements allows the selection of
a single element. |
| Modifier and Type | Method and Description |
|---|---|
protected List |
MenuBar.createCommandList(Vector commands)
Creates the list component containing the commands within the given vector
used for showing the menu dialog
|
protected List |
Toolbar.createOverflowCommandList(Vector commands)
Creates the list component containing the commands within the given
vector used for showing the menu dialog
|
protected List<T> |
ComboBox.createPopupList()
Creates the list object used within the popup dialog.
|
| Modifier and Type | Method and Description |
|---|---|
protected Dialog |
ComboBox.createPopupDialog(List<T> l)
Subclasses can override this method to change the creation of the dialog
|
protected Command |
ComboBox.showPopupDialog(Dialog popupDialog,
List l)
Shows the popup dialog for the combo box and returns the resulting command.
|
| Modifier and Type | Method and Description |
|---|---|
void |
DefaultHTMLCallback.selectionChanged(int oldSelected,
int newSelected,
HTMLComponent htmlC,
List list,
HTMLElement element)
{Called when the user selects an item in a List inside the HTMLComponent
Note: Selection is traversing through the items - once the user has actually decided, an ActionEvent will be sent as well
This method will be called only if HTMLComponent.isEventsEnabled() is true}
|
void |
HTMLCallback.selectionChanged(int oldSelected,
int newSelected,
HTMLComponent htmlC,
List list,
HTMLElement element)
Called when the user selects an item in a List inside the HTMLComponent
Note: Selection is traversing through the items - once the user has actually decided, an ActionEvent will be sent as well
This method will be called only if HTMLComponent.isEventsEnabled() is true
|
| Modifier and Type | Class and Description |
|---|---|
class |
MultiList
A list with a
MultiButton renderer, notice that
we strongly
discourage usage of lists.. |
| Modifier and Type | Method and Description |
|---|---|
Component |
GenericListCellRenderer.getListCellRendererComponent(List list,
T value,
int index,
boolean isSelected)
Returns a component instance that is already set to render "value".
|
Component |
ListCellRenderer.getListCellRendererComponent(List list,
T value,
int index,
boolean isSelected)
Returns a component instance that is already set to render "value".
|
Component |
DefaultListCellRenderer.getListCellRendererComponent(List list,
T value,
int index,
boolean isSelected)
Returns a component instance that is already set to render "value".
|
Component |
GenericListCellRenderer.getListFocusComponent(List list)
Returns a component instance that is painted under the currently focused renderer
and is animated to provide smooth scrolling.
|
Component |
ListCellRenderer.getListFocusComponent(List list)
Returns a component instance that is painted under the currently focused renderer
and is animated to provide smooth scrolling.
|
Component |
DefaultListCellRenderer.getListFocusComponent(List list)
Returns a component instance that is painted under the currently focused renderer
and is animated to provide smooth scrolling.
|
static void |
FilterProxyListModel.install(TextField search,
List l)
Installs a search field on a list making sure the filter method is invoked properly
|
| Modifier and Type | Method and Description |
|---|---|
void |
DefaultLookAndFeel.drawComboBox(Graphics g,
List cb)
Deprecated.
Invoked for drawing a combo box widget
|
abstract void |
LookAndFeel.drawComboBox(Graphics g,
List cb)
Deprecated.
Invoked for drawing a combo box widget
|
void |
DefaultLookAndFeel.drawList(Graphics g,
List l)
Deprecated.
Invoked for drawing a list widget
|
abstract void |
LookAndFeel.drawList(Graphics g,
List l)
Deprecated.
Invoked for drawing a list widget
|
Dimension |
DefaultLookAndFeel.getComboBoxPreferredSize(List cb)
Deprecated.
Calculate the preferred size of the component
|
abstract Dimension |
LookAndFeel.getComboBoxPreferredSize(List box)
Deprecated.
Calculate the preferred size of the component
|
Dimension |
DefaultLookAndFeel.getListPreferredSize(List l)
Deprecated.
Calculate the preferred size of the component
|
abstract Dimension |
LookAndFeel.getListPreferredSize(List l)
Deprecated.
Calculate the preferred size of the component
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
UIBuilder.setListModel(List cmp)
Allows a subclass to set the list model for the given component
|
Copyright © 2021. All rights reserved.