| Package | Description |
|---|---|
| com.codename1.components |
Generic elaborate components that make use of both UI elements and storage.
|
| com.codename1.ui |
Main widget package containing the component/container "composite" similar
both in terminology and design to Swing/AWT.
|
| com.codename1.ui.layouts |
Layout managers allow a
Container to
arrange its components by a set of rules that adapt to specific
densities (ppi - pixels per inch). |
| com.codename1.ui.layouts.mig | |
| 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.table |
Table component for editing and viewing tabular data and arranging Codename One components in a tabular form
|
| Modifier and Type | Method and Description |
|---|---|
Layout |
InteractionDialog.getLayout()
Returns the layout manager responsible for arranging this container.
|
| Modifier and Type | Method and Description |
|---|---|
void |
InteractionDialog.setLayout(Layout layout)
Sets the layout manager responsible for arranging this container
|
void |
ButtonList.setLayout(Layout layout)
Sets the layout for the list.
|
| Constructor and Description |
|---|
InteractionDialog(Layout l)
Default constructor with layout
|
InteractionDialog(String title,
Layout l)
Constructor with dialog title
|
| Modifier and Type | Method and Description |
|---|---|
Layout |
Form.getLayout()
Returns the layout manager of the form's content pane.
|
Layout |
Dialog.getLayout()
Returns the layout manager of the form's content pane.
|
Layout |
Container.getLayout()
Returns the layout manager responsible for arranging this container.
|
| Modifier and Type | Method and Description |
|---|---|
static Container |
Container.encloseIn(Layout l,
Component... cmp)
Short-hand for enclosing multiple components in a container typically a box layout
|
static Container |
Container.encloseIn(Layout l,
Component cmp,
Object cons)
Short-hand for enclosing a component within a Container
|
void |
Form.setLayout(Layout layout)
Sets the layout manager responsible for arranging this container
|
void |
Dialog.setLayout(Layout layout)
Sets the layout manager responsible for arranging this container
|
void |
Container.setLayout(Layout layout)
Sets the layout manager responsible for arranging this container
|
ComponentSelector |
ComponentSelector.setLayout(Layout layout)
|
| Constructor and Description |
|---|
Container(Layout layout)
Constructs a new Container with a new layout manager.
|
Container(Layout layout,
String uiid)
Constructs a new Container with a new layout manager and UIID
|
Dialog(Layout lm)
Constructs a Dialog with a layout
|
Dialog(String title,
Layout lm)
Constructs a Dialog with a title
|
Form(Layout contentPaneLayout)
Constructor that accepts a layout
|
Form(String title,
Layout contentPaneLayout)
Sets the title after invoking the constructor
|
| Modifier and Type | Class and Description |
|---|---|
class |
BorderLayout
A border layout lays out a container, arranging and resizing its
components to fit in five regions: north, south, east, west, and center.
|
class |
BoxLayout
Layout manager that places elements in a row (
X_AXIS) or column (Y_AXIS)
according to box orientation. |
class |
CoordinateLayout
Deprecated.
the usage of this layout is strongly discouraged as elements will not adapt to the right position/size
|
class |
FlowLayout
FlowLayout is the default layout manager for Codename One Containers and Forms.
|
class |
GridBagLayout
Codename One port of the infamous GridBagLayout based on the Apache Harmony code.
|
class |
GridLayout
The components are arranged in a grid based on available space, all cells in the grid are given exactly
the same size which matches the largest preferred size or available space.
|
class |
GroupLayout
GroupLayout is a LayoutManager that hierarchically groups components to
achieve common, and not so common, layouts.
|
class |
LayeredLayout
The
LayeredLayout places the components in order one on top of the
other and sizes them all to the size of the largest component. |
class |
TextModeLayout
This is a special case layout specifically designed for
InputComponent. |
| Modifier and Type | Class and Description |
|---|---|
class |
MigLayout
Deprecated.
this is currently an experimental integration and has known bugs
do not rely on this layout for production
|
| Constructor and Description |
|---|
ContainerList(Layout l,
ListModel m)
Deprecated.
Constructs a container list with the given model and layout
|
| Modifier and Type | Class and Description |
|---|---|
class |
TableLayout
TableLayout is a very elaborate constraint based layout manager that can arrange elements
in rows/columns while defining constraints to control complex behavior such as spanning, alignment/weight
etc.
Notice that the table layout is in the com.codename1.ui.table package and not in the
layouts package. |
Copyright © 2023. All rights reserved.