| Package | Description |
|---|---|
| com.codename1.components |
Generic elaborate components that make use of both UI elements and storage.
|
| com.codename1.facebook |
Legacy generic implementation of the Facebook API with simplified OAuth integration to allow social sharing.
|
| com.codename1.facebook.ui |
User interface for integrating with basic Facebook features currently mostly the Like button
|
| com.codename1.io.services |
Default WebService implementations
|
| com.codename1.testing |
This package contains everything necessary for unit tests, automation of tests and everything in between.
|
| 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.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.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 |
FloatingActionButton
Floating action buttons are a material design element used to promote a special action in a Form.
|
class |
ScaleImageButton
Button that simplifies the usage of scale to fill/fit.
|
class |
ScaleImageLabel
Label that simplifies the usage of scale to fill/fit.
|
class |
ShareButton
The share button allows sharing a String or an image either thru the defined
sharing services or thru the native OS sharing support.
|
class |
SliderBridge
Binds a
Slider to network progress events so it shows the progress of
the current ConnectionRequest |
| Modifier and Type | Method and Description |
|---|---|
Label |
MultiButton.getIconComponent()
Allows us to gain direct access to the icon component so we can set it directly without going
via the other methods, this is especially useful for classes such as the ImageDownloadService
which can then update the icon seamlessly.
|
Label |
SpanMultiButton.getIconComponent()
Allows us to gain direct access to the icon component so we can set it directly without going
via the other methods, this is especially useful for classes such as the ImageDownloadService
which can then update the icon seamlessly.
|
Label |
InteractionDialog.getTitleComponent() |
| Modifier and Type | Method and Description |
|---|---|
void |
FaceBookAccess.getPhotoThumbnail(String photoId,
Label label,
Dimension toScale,
boolean tempStorage)
Gets the photo thumbnail of a Photo Object
|
void |
FaceBookAccess.getPicture(String id,
Label label,
Dimension toScale,
boolean tempStorage)
Gets the picture of the given facebook object id
|
| Modifier and Type | Class and Description |
|---|---|
class |
LikeButton
Deprecated.
This functionality is no longer possible open a BrowserComponent
with the link instead, this class will be removed in next version
|
| Modifier and Type | Method and Description |
|---|---|
static void |
ImageDownloadService.createImageToStorage(String url,
Label l,
String cacheId,
Dimension toScale)
Deprecated.
Constructs an image request that will automatically populate the given Label
when the response arrives, it will cache the file locally to the Storage
|
static void |
ImageDownloadService.createImageToStorage(String url,
Label l,
String cacheId,
Dimension toScale,
byte priority)
Deprecated.
Constructs an image request that will automatically populate the given Label
when the response arrives, it will cache the file locally to the Storage
|
static void |
ImageDownloadService.createImageToStorage(String url,
Label l,
String cacheId,
Image placeholder,
byte priority)
Deprecated.
Constructs an image request that will automatically populate the given Label
when the response arrives, it will cache the file locally to the Storage
|
| Constructor and Description |
|---|
ImageDownloadService(String url,
Label parentLabel)
Deprecated.
Accepts the url to bind to the label, on completion the label will be updated
and revalidated with the new image.
|
| Modifier and Type | Method and Description |
|---|---|
Label |
AbstractTest.findLabelText(String text)
This method just invokes the test utils method, it is here for convenience
|
static Label |
TestUtils.findLabelText(String text)
Finds a component with the given name, works even with UI's that weren't created with the GUI builder
|
| Modifier and Type | Class and Description |
|---|---|
class |
Button
Button is the base class for several UI widgets allowing clickability.
|
class |
CheckBox
CheckBox is a button that can be selected or deselected and displays
its state to the user.
|
class |
RadioButton
RadioButton is a
Button that maintains a selection state exclusively
within a specific ButtonGroup. |
class |
Slider
The slider component serves both as a slider widget to allow users to select
a value on a scale via touch/arrows and also to indicate progress.
|
| Modifier and Type | Method and Description |
|---|---|
protected Label |
Calendar.createDayTitle(int day)
This method creates the Day title Component for the Month View
|
Label |
TextArea.getHintLabel()
Returns the hint label component that can be customized directly
|
Label |
Component.getLabelForComponent()
Allows us to indicate the label associated with this component thus providing
visual feedback related for this component e.g.
|
Label |
Form.getTitleComponent()
Allows modifying the title attributes beyond style (e.g.
|
Label |
Dialog.getTitleComponent()
Allows modifying the title attributes beyond style (e.g.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
FontImage.setFontIcon(Label l,
Font font,
char icon) |
static void |
FontImage.setFontIcon(Label l,
Font font,
char[] icons,
float size)
Deprecated.
use
setMaterialIcon(char, float) instead |
static void |
FontImage.setFontIcon(Label l,
Font font,
char icon,
float size)
Deprecated.
use
setMaterialIcon(char, float) instead |
static void |
DynamicImage.setIcon(Label lbl,
DynamicImage img)
Sets the given image as the icon for the specified label.
|
ComponentSelector |
ComponentSelector.setLabelForComponent(Label l)
|
void |
Component.setLabelForComponent(Label componentLabel)
Allows us to indicate the label associated with this component thus providing
visual feedback related for this component e.g.
|
static void |
FontImage.setMaterialIcon(Label l,
char icon)
Deprecated.
use
setMaterialIcon(char, float) instead |
static void |
FontImage.setMaterialIcon(Label l,
char[] icons,
float size)
Applies a material design icon (one of the MATERIAL_* icon constants) to the given label using the
styling of the label.
|
static void |
FontImage.setMaterialIcon(Label l,
char icon,
float size)
Applies a material design icon (one of the MATERIAL_* icon constants) to the given label using the
styling of the label.
|
static void |
FontImage.setMaterialIcon(Label l,
Font font,
char icon,
float size)
Applies a material design icon (one of the MATERIAL_* icon constants) to the given label using the
styling of the label.
|
void |
Form.setTitleComponent(Label title)
Allows replacing the title with a different title component, thus allowing
developers to create more elaborate title objects.
|
void |
Dialog.setTitleComponent(Label title)
Allows replacing the title with a different title component, thus allowing
developers to create more elaborate title objects.
|
void |
Form.setTitleComponent(Label title,
Transition t)
Allows replacing the title with a different title component, thus allowing
developers to create more elaborate title objects.
|
void |
Dialog.setTitleComponent(Label title,
Transition t)
Allows replacing the title with a different title component, thus allowing
developers to create more elaborate title objects.
|
| Modifier and Type | Class and Description |
|---|---|
class |
DefaultListCellRenderer<T>
Default implementation of the renderer based on a label see the
ListCellRenderer
for more information about the use and purpose of this class |
| Modifier and Type | Method and Description |
|---|---|
TextSelection.Span |
DefaultLookAndFeel.calculateLabelSpan(TextSelection sel,
Label l)
Deprecated.
|
abstract TextSelection.Span |
LookAndFeel.calculateLabelSpan(TextSelection sel,
Label l)
Deprecated.
Calculates the text selection spans for a given label
|
TextSelection.Span |
DefaultLookAndFeel.calculateSpanForLabelText(TextSelection sel,
Label l,
String text,
int x,
int y,
int textSpaceW)
Deprecated.
|
void |
DefaultLookAndFeel.drawLabel(Graphics g,
Label l)
Deprecated.
this method is no longer used by the implementation, we shifted code away to improve performance
|
abstract void |
LookAndFeel.drawLabel(Graphics g,
Label l)
Deprecated.
this method is no longer used by the implementation, we shifted code away to improve performance
|
protected int |
DefaultLookAndFeel.drawLabelText(Graphics g,
Label l,
String text,
int x,
int y,
int textSpaceW)
Deprecated.
Draws the text of a label
|
Dimension |
DefaultLookAndFeel.getLabelPreferredSize(Label l)
Deprecated.
Calculate the preferred size of the component
|
abstract Dimension |
LookAndFeel.getLabelPreferredSize(Label l)
Deprecated.
Calculate the preferred size of the component
|
| Modifier and Type | Class and Description |
|---|---|
class |
Picker
Picker is a component and API that allows either popping up a spinner or
using the native picker API when applicable. |
Copyright © 2023. All rights reserved.