| Package | Description |
|---|---|
| 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. |
| Modifier and Type | Field and Description |
|---|---|
static URLImage.ImageAdapter |
URLImage.RESIZE_FAIL
Will fail if the downloaded image has a different size from the placeholder image
|
static URLImage.ImageAdapter |
URLImage.RESIZE_SCALE
Scales the image to match the size of the new image exactly
|
static URLImage.ImageAdapter |
URLImage.RESIZE_SCALE_TO_FILL
Scales the image to match to fill the area while preserving aspect ratio
|
| Modifier and Type | Method and Description |
|---|---|
static URLImage.ImageAdapter |
URLImage.createMaskAdapter(Image imageMask)
Creates an adapter that uses an image as a Mask, this is roughly the same as SCALE_TO_FILL with the
exception that a mask will be applied later on.
|
static URLImage.ImageAdapter |
URLImage.createMaskAdapter(Object mask) |
| Modifier and Type | Method and Description |
|---|---|
static URLImage |
URLImage.createToFileSystem(EncodedImage placeholder,
String file,
String url,
URLImage.ImageAdapter adapter)
Creates an image the will be downloaded on the fly as necessary
|
static URLImage |
URLImage.createToStorage(EncodedImage placeholder,
String storageFile,
String url,
URLImage.ImageAdapter adapter)
Creates an image the will be downloaded on the fly as necessary
|
| Modifier and Type | Method and Description |
|---|---|
URLImage.ImageAdapter |
GenericListCellRenderer.getAdapter()
The adapter used when dealing with image URL's
|
static URLImage.ImageAdapter |
GenericListCellRenderer.getDefaultAdapter()
The default adapter to use for image URLs
|
| Modifier and Type | Method and Description |
|---|---|
void |
GenericListCellRenderer.setAdapter(URLImage.ImageAdapter adapter)
The adapter used when dealing with image URL's
|
static void |
GenericListCellRenderer.setDefaultAdapter(URLImage.ImageAdapter aDefaultAdapter)
The default adapter to use for image URLs
|
Copyright © 2023. All rights reserved.