Package | Description |
---|---|
com.codename1.charts |
The main ChartComponent Package
|
com.codename1.charts.transitions | |
com.codename1.components |
Generic elaborate components that make use of both UI elements and storage.
|
com.codename1.facebook.ui |
User interface for integrating with basic Facebook features currently mostly the Like button
|
com.codename1.impl |
The implementation package should not be used by developers, it is an internal implementation detail
which will break compatibility between major Codename One releases.
|
com.codename1.maps |
The mapping API allows developers to use maps in their applications, add layers
on top of the map and to enhance the API with additional Layers, Providers and functionality.
|
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.animations |
All components are animatable by potential and additional animations (unrelated
to a specific component) can be installed on the fly, transitions between
forms are also handled as part of this package.
|
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.scene |
This package provides a light-weight scene graph for Codename One.
|
com.codename1.ui.spinner |
Spinners allows picking of simple sequential values similarly to combo boxes but of a much wider value set.
|
com.codename1.ui.table |
Table component for editing and viewing tabular data and arranging Codename One components in a tabular form
|
com.codename1.ui.tree |
Tree component for displaying hierarchy based information and its related classes
|
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 |
ChartComponent
The top level component for displaying charts
|
Modifier and Type | Class and Description |
---|---|
class |
SeriesTransition
A base class for series transitions of ChartComponent.
|
class |
XYMultiSeriesTransition
A transition to animate the values of a MultipleSeriesDataset (used by BarChart).
|
class |
XYSeriesTransition
A transition for enabling animations between different values in an XYSeries.
|
class |
XYValueSeriesTransition
A transition for enabling animations between different values in an XYSeries.
|
Modifier and Type | Class and Description |
---|---|
class |
Accordion
The
Accordion ui pattern is a vertically stacked list of items. |
class |
Ads
Deprecated.
we recommend developers check out newer ad options in the cn1lib section of the Codename One website
|
class |
AudioRecorderComponent
A component for recording Audio from the device microphone.
|
class |
ButtonList
An abstract base class for a list of buttons.
|
class |
CheckBoxList
A list of checkboxes.
|
class |
ClearableTextField
Wraps a text field so it will have an X to clear its content on the right hand side
|
class |
FileTree
Simple class showing off the filesystem as a tree component
|
class |
FloatingActionButton
Floating action buttons are a material design element used to promote a special action in a Form.
|
class |
FloatingHint
Deprecated.
this class is superceded by
TextComponent which includes a more thorough implementation of the functionality and improved API |
class |
ImageViewer
ImageViewer allows zooming/panning an image and potentially flicking between multiple images
within a list of images.
|
class |
InfiniteProgress
Shows a "Washing Machine" infinite progress indication animation, to customize the image you can either
use the infiniteImage theme constant or the
setAnimation method. |
class |
InteractionDialog
Unlike a regular dialog the interaction dialog only looks like a dialog,
it resides in the layered pane and can be used to implement features where
interaction with the background form is still required.
Since this code is designed for interaction all "dialogs" created thru here are modless and never block. |
class |
MediaPlayer
Video playback component with control buttons for back, play/pause and
forward buttons.
|
class |
MultiButton
A powerful button like component that allows multiple rows/and an icon to be added
every row/icon can have its own UIID.
|
class |
OnOffSwitch
Deprecated.
Use new
Switch class instead as it conforms to the latest platform looks and feels. |
class |
Progress
Displays a progress dialog with the ability to cancel an ongoing operation
|
class |
RadioButtonList
A list of Radio buttons that can be managed as a single component.
|
class |
RSSReader
A List implementing an RSS reader that automatically populates itself with content
from the RSS chanel.
|
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 |
SignatureComponent
A component to allow a user to enter their signature.
|
class |
SliderBridge
Binds a
Slider to network progress events so it shows the progress of
the current ConnectionRequest |
class |
SpanButton
A complex button similar to MultiButton that breaks lines automatically and
looks like a regular button (more or less).
|
class |
SpanLabel
A multi line label component that can be easily localized, this is simply based
on a text area combined with a label.
|
class |
SpanMultiButton
A powerful button like component that allows multiple rows/and an icon to be added
every row/icon can have its own UIID.
|
class |
SplitPane
A Split Pane component.
|
class |
Switch
The on/off switch is a checkbox of sort (although it derives container) that
represents its state as a switch When using the Android native theme, this implementation follows the Material
Design Switch guidelines:
https://material.io/guidelines/components/selection-controls.html#selection-controls-radio-button
|
class |
SwitchList
A list of switches.
|
class |
WebBrowser
Deprecated.
Use
BrowserComponent instead. The original purpose of this class was to work as an interim solution for platforms where BrowserComponent isn't supported however all currently supported platforms work with BrowserComponent so there is no real reason to use this class |
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 |
---|---|
void |
CodenameOneImplementation.cancelRepaint(Animation cmp)
Removes an entry from the paint queue if it exists, this is important for cases
in which a component was repainted and immediately removed from its parent container
afterwards.
|
void |
CodenameOneImplementation.repaint(Animation cmp)
Invoked to add an element to the paintQueue
|
Modifier and Type | Class and Description |
---|---|
class |
MapComponent
Deprecated.
we highly recommend migrating to the native maps cn1lib
|
Modifier and Type | Class and Description |
---|---|
class |
TestRunnerComponent
A UI component for running unit tests and displaying the results.
|
Modifier and Type | Class and Description |
---|---|
class |
AutoCompleteTextComponent
A
TextComponent version of AutoCompleteTextField
This component was contributed here https://github.com/codenameone/CodenameOne/issues/2705 |
class |
AutoCompleteTextField
An editable
TextField with completion suggestions
that show up in a drop down menu while the user types in text. |
class |
BrowserComponent
The browser component is an interface to an embeddable native platform browser on platforms
that support embedding the native browser in place, if you need wide compatibility and flexibility
you should check out the HTMLComponent which provides a lightweight 100% cross platform
web component.
This component will only work on platforms that support embedding a native browser which exclude earlier versions of Blackberry devices and J2ME devices. Its recommended that you place this component in a fixed position (none scrollable) on the screen without other focusable components to prevent confusion between focus authority and allow the component to scroll itself rather than CodenameOne making that decision for it. |
class |
Button
Button is the base class for several UI widgets allowing clickability.
|
class |
Calendar
Date widget for selecting a date/time value.
To localize strings for month names use the values "Calendar.Month" using the 3 first characters of the month name in the resource localization e.g. |
class |
CheckBox
CheckBox is a button that can be selected or deselected and displays
its state to the user.
|
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. |
static class |
CommonProgressAnimations.CircleProgress
A progress animation that shows an animated circle.
|
static class |
CommonProgressAnimations.EmptyAnimation
An empty progress animation.
|
static class |
CommonProgressAnimations.LoadingTextAnimation
A progress animation that shows a block of text being typed.
|
static class |
CommonProgressAnimations.ProgressAnimation
Base class for ProgressAnimations
|
class |
Component
The component class is the basis of all UI widgets in Codename One, to arrange multiple components
together we use the Container class which itself "IS A" Component subclass.
|
class |
ComponentGroup
A component group is a container that applies the given UIID to a set of components within it
and gives the same UIID with "First"/"Last" prepended to the first and last components.
|
class |
Container
A composite pattern with
Component , allows nesting and arranging multiple
components using a pluggable layout manager architecture. |
class |
Dialog
A dialog is a form that occupies a part of the screen and appears as a modal
entity to the developer.
|
class |
Form
|
class |
InfiniteContainer
This abstract Container can scroll indefinitely (or at least until
we run out of data).
|
class |
InputComponent
A base class for
TextComponent , PickerComponent
and potentially other components that wish to accept input in a dynamic way that matches iOS and
Android native input guidelines. |
class |
InterFormContainer
A container that allows you to use the same component on multiple forms.
|
class |
Label
Allows displaying a single line of text and icon (both optional) with different alignment options.
|
class |
List<T>
A set of elements that is rendered using a
ListCellRenderer
and are extracted via the ListModel , notice that
we strongly
discourage usage of lists.A list can represent many UI concepts ranging from a carousel to a "todo" checklist, this is made possible thanks to extensive use of Swing's style of MVC. |
class |
MenuBar
This class represents the Form MenuBar.
|
class |
PeerComponent
A peer component is essentially a "dummy" Codename One component used to calculate the position
of the actual native platform specific component.
|
class |
PickerComponent
A picker component similar to
TextComponent that adapts to native UI
conventions and leverages the Picker API. |
class |
RadioButton
RadioButton is a
Button that maintains a selection state exclusively
within a specific ButtonGroup . |
class |
Sheet
A light-weight dialog that slides up from the bottom of the screen on mobile devices.
|
class |
SideMenuBar
Deprecated.
this class is still used internally but code should be migrated to use the
Toolbar |
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.
|
class |
SwipeableContainer
SwipeableContainer allows us to side swipe a component and expose underlying configuration
within it. |
class |
Tabs
A component that lets the user switch between a group of components by
clicking on a tab with a given title and/or icon.
|
class |
TextArea
An optionally multi-line editable region that can display text and allow a user to edit it.
|
class |
TextComponent
Encapsulates a text field and label into a single component.
|
class |
TextComponentPassword
TextComponent extended to automatically add mask/unmask password button near
the TextField; it acts like a normal TextComponent if the Constraint is not
TextArea.PASSWORD
|
class |
TextField
A specialized version of
TextArea with some minor deviations from the original
specifically: |
class |
Toolbar
Toolbar replaces the default title area with a powerful abstraction that
allows functionality ranging from side menus (hamburger) to title animations
and any arbitrary component type.
|
Modifier and Type | Method and Description |
---|---|
void |
Form.deregisterAnimated(Animation cmp)
Indicate that cmp would no longer like to receive animation events
|
void |
Form.registerAnimated(Animation cmp)
The given component is interested in animating its appearance and will start
receiving callbacks when it is visible in the form allowing it to animate
its appearance.
|
Modifier and Type | Class and Description |
---|---|
class |
BubbleTransition
A Transitions that animates the destination component as a growing window
until the destination is displayed in place.
|
class |
CommonTransitions
Contains common transition animations that can be applied to forms & components
including the following types:
Slide - the exiting form slides out of the screen while the new form slides in (can be vertical or horizontal).
|
class |
FlipTransition
A Transitions that flips between 2 components/forms using perspective transform where available.
Notice that this looks rather different on devices as perspective transform is available there but isn't on the simulator. |
class |
MorphTransition
A transition inspired by the Android L release morph activity effect allowing
a set of components in one form/container to morph into another in a different
container/form.
|
class |
Timeline
A timeline represents the motions of animation objects
|
class |
Transition
Represents a transition animation between two forms this class is used internally
by Display to play an animation when moving from one form to the next.
|
Modifier and Type | Class and Description |
---|---|
class |
HTMLComponent
Deprecated.
this component includes some customizability advantages but its probably better for 99% of the use
cases to use the WebBrowser Component from the Components package. That component works with the native
browser when applicable which is a far superior approach.
|
Modifier and Type | Class and Description |
---|---|
class |
ContainerList
Deprecated.
the performance of ContainerList is worse than the performance of List or Container. The API/behaviors
are problematic and we don't think its the right choice for any project. It is our recommendation that you use
Container, InfiniteContainer etc.
|
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 |
class |
MultiList
A list with a
MultiButton renderer, notice that
we strongly
discourage usage of lists.. |
Modifier and Type | Class and Description |
---|---|
class |
Scene
Deprecated.
For internal use only
|
Modifier and Type | Class and Description |
---|---|
class |
BaseSpinner
Base class for spinners
|
class |
DateSpinner
Deprecated.
use Picker instead
|
class |
DateTimeSpinner
Deprecated.
use Picker instead
|
class |
GenericSpinner
Deprecated.
use Picker instead
|
class |
NumericSpinner
Deprecated.
use Picker instead
|
class |
Picker
Picker is a component and API that allows either popping up a spinner or
using the native picker API when applicable. |
class |
TimeSpinner
Deprecated.
use Picker instead
|
Modifier and Type | Class and Description |
---|---|
class |
Table
The
Table class represents a grid of data that can be used for rendering a grid
of components/labels. |
Modifier and Type | Class and Description |
---|---|
class |
Tree
The
Tree component allows constructing simple tree component hierarchies that can be expanded
seamlessly with no limit. |
Modifier and Type | Class and Description |
---|---|
class |
EmbeddedContainer
This class is mostly used internally by the GUI builder and isn't very useful
for general purpose.
|
Copyright © 2023. All rights reserved.