| Package | Description |
|---|---|
| com.codename1.cloud |
Provides cloud related services such as storage, binding widgets to the cloud seamlessly so they can be persisted
easily.
|
| com.codename1.components |
Generic elaborate components that make use of both UI elements and storage.
|
| 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.properties |
High level property objects that allow us to replace getters/setters in business objects with more convenient
storage/parsing mappings while retaining type safety.
|
| 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.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.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 | Method and Description |
|---|---|
void |
CloudObject.bindTree(Container ui,
int defer,
boolean objectLead)
Deprecated.
Binds a UI tree to the cloud object so its values automatically update in the cloud object
|
void |
CloudObject.unbindTree(Container ui)
Deprecated.
Clears the binding to this component tree
|
| 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 |
FloatingHint
Deprecated.
this class is superceded by
TextComponent which includes a more thorough implementation of the functionality and improved API |
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 |
SignatureComponent
A component to allow a user to enter their signature.
|
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 |
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 | Method and Description |
|---|---|
Container |
FloatingActionButton.bindFabToContainer(Component cnt)
This is a utility method to bind the FAB to a given Container, it will return a new container to add or will
use the layered pane if the container is a content pane.
|
Container |
FloatingActionButton.bindFabToContainer(Component cnt,
int orientation,
int valign)
This is a utility method to bind the FAB to a given Container, it will return a new container to add or will
use the layered pane if the container is a content pane.
|
protected Container |
FloatingActionButton.createPopupContent(List<FloatingActionButton> fabs)
Creates the popup content container to display on the dialog.
|
Container |
InteractionDialog.getContentPane()
Returns the body of the interaction dialog
|
Container |
RSSReader.getTargetContainer()
The form/container to which the RSS will navigate when clicking a RSS
entry
|
| Modifier and Type | Method and Description |
|---|---|
static void |
InfiniteScrollAdapter.addMoreComponents(Container cnt,
Component[] components,
boolean areThereMore)
Invoke this method to add additional components to the container, if you use
addComponent/removeComponent you will get undefined behavior.
|
static void |
MasterDetail.bindTabletLandscapeMaster(Form rootForm,
Container parentContainer,
Component landscapeUI,
Component portraitUI,
String commandTitle,
Image commandIcon)
Deprecated.
this was a half baked idea that made it into the public API
|
static void |
InfiniteScrollAdapter.continueFetching(Container cnt)
If we previously added components with false for are there more this
method can continue the process of fetching.
|
static InfiniteScrollAdapter |
InfiniteScrollAdapter.createInfiniteScroll(Container cont,
Runnable fetchMore)
Creates an instance of the InfiniteScrollAdapter that will invoke the fetch more
callback to fetch additional components, once that method completes its task it
should add the components via the addMoreComponents() invocation.
|
static InfiniteScrollAdapter |
InfiniteScrollAdapter.createInfiniteScroll(Container cont,
Runnable fetchMore,
boolean fetchOnCreate)
Creates an instance of the InfiniteScrollAdapter that will invoke the fetch more
callback to fetch additional components, once that method completes its task it
should add the components via the addMoreComponents() invocation.
|
void |
RSSReader.setTargetContainer(Container targetContainer)
The form/container to which the RSS will navigate when clicking a RSS
entry
|
| Modifier and Type | Class and Description |
|---|---|
class |
MapComponent
Deprecated.
we highly recommend migrating to the native maps cn1lib
|
| Modifier and Type | Method and Description |
|---|---|
Container |
InstantUI.createEditUI(PropertyBusinessObject bo,
boolean autoCommit)
Creates editing UI for the given business object
|
| Modifier and Type | Method and Description |
|---|---|
UiBinding.Binding |
UiBinding.bind(PropertyBusinessObject obj,
Container cnt)
Binds a hierarchy of Components to a business object by searching the tree and collecting
the bindings.
|
UiBinding.Binding |
InstantUI.getBindings(Container cnt)
Returns the Binding object for the given container which allows us control over the widgets
and their commit status
|
| 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 |
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 |
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 |
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 |
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 |
MenuBar
This class represents the Form MenuBar.
|
class |
PickerComponent
A picker component similar to
TextComponent that adapts to native UI
conventions and leverages the Picker API. |
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 |
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 |
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 |
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 |
|---|---|
Container |
Container.add(Component cmp)
Simpler version of addComponent that allows chaining the calls for shorter syntax
|
Container |
Container.add(Image img)
Simpler version of addComponent that allows chaining the calls for shorter syntax
|
Container |
Container.add(Object constraint,
Component cmp)
Simpler version of addComponent that allows chaining the calls for shorter syntax
|
Container |
Container.add(Object constraint,
Image img)
Simpler version of addComponent that allows chaining the calls for shorter syntax
|
Container |
Container.add(Object constraint,
String label)
Simpler version of addComponent that allows chaining the calls for shorter syntax
|
Container |
Container.add(String label)
Simpler version of addComponent that allows chaining the calls for shorter syntax
|
Container |
Container.addAll(Component... cmps)
Identical to add(x).add(y) only with a shorter syntax
|
protected Container |
Toolbar.constructRightSideNavigationComponent()
Creates an empty right side navigation panel.
|
protected Container |
SideMenuBar.constructSideNavigationComponent()
Deprecated.
Creates an empty side navigation panel.
|
protected Container |
Toolbar.constructSideNavigationComponent()
Creates an empty left side navigation panel.
|
protected Container |
SideMenuBar.createSideNavigationComponent(Vector commands)
Deprecated.
Creates the side navigation component with the Commands
|
protected Container |
SideMenuBar.createSideNavigationComponent(Vector commands,
String placement)
Deprecated.
Creates the side navigation component with the Commands
|
protected Container |
Toolbar.createSideNavigationComponent(Vector commands,
String placement)
Creates the side navigation component with the Commands.
|
protected Container |
TextField.createSymbolTable()
Creates a symbol table container used by the showSymbolDialog method.
|
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
|
Container |
Sheet.getCommandsContainer()
Gets the container that is rendered on the top right bar of the sheet.
|
Container |
Tabs.getContentPane()
This method retrieves the Tabs content pane
|
Container |
Dialog.getContentPane() |
Container |
Form.getContentPane()
This method returns the Content pane instance
|
Container |
Sheet.getContentPane()
Gets the content pane of the sheet.
|
Container |
Dialog.getDialogComponent()
Returns the container that actually implements the dialog positioning.
|
Container |
Form.getFormLayeredPane(Class c,
boolean top)
Returns the layered pane for the class and if one doesn't exist a new one is created
dynamically and returned.
|
protected Container |
Form.getFormLayeredPaneIfExists()
Gets the form layered pane of the container without trying to create it.
|
Container |
Form.getLayeredPane()
This method returns the layered pane of the Form, the layered pane is laid
on top of the content pane and is created lazily upon calling this method the layer
will be created.
|
Container |
Form.getLayeredPane(Class c,
boolean top)
Returns the layered pane for the class and if one doesn't exist a new one is created dynamically and returned
|
Container |
Form.getLayeredPane(Class c,
int zIndex)
Returns the layered pane for the class and if one doesn't exist a new one is created dynamically and returned
|
protected Container |
Form.getLayeredPaneIfExists()
Gets the layered pane of the container without trying to create it.
|
Container |
Container.getLeadParent()
Returns the lead container thats handling the leading, this is useful for
a container hierarchy where the parent container might not be the leader
|
Container |
Component.getParent()
Returns the container in which this component is contained
|
Container |
Container.getSafeAreaRoot()
Gets the Safe area "root" container for this container.
|
Container |
Tabs.getTabsContainer()
This method retrieves the Tabs buttons Container
|
Container |
Form.getTitleArea()
Deprecated.
this method was exposed to allow some hacks, you are advised not to use it.
There are some alternatives such as command behavior (thru Display or the theme constants)
|
protected Container |
MenuBar.getTitleAreaContainer()
Returns the parent Form title area
|
Container |
UIFragment.getView()
Gets the view that is generated by this template.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
Toolbar.addComponentToLeftSideMenu(Container menu,
Component cmp)
This method responsible to add a Component to the left side navigation panel.
|
protected void |
Toolbar.addComponentToRightSideMenu(Container menu,
Component cmp)
This method responsible to add a Component to the right side navigation
panel.
|
protected void |
SideMenuBar.addComponentToSideMenu(Container menu,
Component cmp)
Deprecated.
This method responsible to add a Component to the side navigation panel.
|
protected void |
Toolbar.addComponentToSideMenu(Container menu,
Component cmp)
This method is responsible to add a Component to the left or right side
navigation panel according to the state of RTL.
|
void |
AnimationManager.addUIMutation(Container container,
ComponentAnimation an)
Adds a UIMutation to the animation manager.
|
void |
AnimationManager.addUIMutation(Container container,
ComponentAnimation an,
Runnable callback)
Adds a UIMutation to the animation manager.
|
protected int |
MenuBar.calculateTouchCommandGridColumns(Container grid)
Calculates the amount of columns to give to the touch commands within the
grid
|
static InterFormContainer |
InterFormContainer.inject(String selector,
Container root,
Component content)
Injects the given "content" as an InterFormContainer inside the component hierarchy
rooted at "root"
|
boolean |
Component.isChildOf(Container cnt)
Searches the hierarchy of the component recursively to see if the given
Container is one of the parents of this component
|
Object |
UIFragment.ComponentFactory.newConstraint(Container parent,
Element parentEl,
Component child,
Element childEl)
Creates a layout constraint for adding a child component to a parent component.
|
Object |
UIFragment.DefaultComponentFactory.newConstraint(Container parent,
Element parentEl,
Component child,
Element childEl) |
void |
AnimationManager.onTitleScrollAnimation(Container content,
ComponentAnimation... cna)
Performs a step animation as the user scrolls down/up the page e.g.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
ComponentAnimation.UIMutation.add(Container cnt,
ComponentAnimation anim)
Tries to add another mutation to this UIMutation.
|
| Constructor and Description |
|---|
UIMutation(Container cnt,
ComponentAnimation anim)
Creates a new UIMutation which mutates the given container with the provided
animation.
|
| 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 | Method and Description |
|---|---|
static Container |
BorderLayout.center(Component center)
Convenience method that creates a border layout container and places the given component in the center
|
static Container |
BorderLayout.centerAbsolute(Component center)
Convenience method that creates a border layout container and places the given component in the center
with the
BorderLayout.CENTER_BEHAVIOR_CENTER_ABSOLUTE constraint applied |
static Container |
BorderLayout.centerAbsoluteEastWest(Component center,
Component east,
Component west)
Convenience method that creates a border layout absolute center container and places the given component in the center
east and west respectively
|
static Container |
BorderLayout.centerCenter(Component center)
Convenience method that creates a border layout container and places the given component in the center
with the
BorderLayout.CENTER_BEHAVIOR_CENTER constraint applied |
static Container |
BorderLayout.centerCenterEastWest(Component center,
Component east,
Component west)
Convenience method that creates a border layout center container and places the given component in the center
east and west respectively with the
BorderLayout.CENTER_BEHAVIOR_CENTER constraint applied |
static Container |
BorderLayout.centerEastWest(Component center,
Component east,
Component west)
Convenience method that creates a border layout container and places the given component in the center
east and west respectively
|
static Container |
BorderLayout.centerTotalBelow(Component center)
Convenience method that creates a border layout container and places the given component in the center
with the
BorderLayout.CENTER_BEHAVIOR_TOTAL_BELOW constraint applied |
static Container |
BorderLayout.centerTotalBelowEastWest(Component center,
Component east,
Component west)
Convenience method that creates a border layout center container and places the given component in the center
east and west respectively with the
BorderLayout.CENTER_BEHAVIOR_TOTAL_BELOW constraint applied |
static Container |
BorderLayout.east(Component east)
Convenience method that creates a border layout container and places the given component in the east
|
static Container |
FlowLayout.encloseBottom(Component... cmps)
Shorthand for Container.encloseIn(new FlowLayout(Component.LEFT, Component.BOTTOM), cmps);
|
static Container |
FlowLayout.encloseBottomByRow(Component... cmps)
Shorthand for Container.encloseIn(new FlowLayout(Component.LEFT, Component.BOTTOM, true), cmps);
|
static Container |
FlowLayout.encloseCenter(Component... cmps)
Shorthand for Container.encloseIn(new FlowLayout(Component.CENTER), cmps);
|
static Container |
FlowLayout.encloseCenterBottom(Component... cmps)
Shorthand for Container.encloseIn(new FlowLayout(Component.CENTER, Component.BOTTOM), cmps);
|
static Container |
FlowLayout.encloseCenterBottomByRow(Component... cmps)
Shorthand for Container.encloseIn(new FlowLayout(Component.CENTER, Component.BOTTOM, true), cmps);
|
static Container |
FlowLayout.encloseCenterMiddle(Component... cmps)
Shorthand for Container.encloseIn(new FlowLayout(Component.CENTER, Component.CENTER), cmps);
|
static Container |
FlowLayout.encloseCenterMiddleByRow(Component... cmps)
Shorthand for Container.encloseIn(new FlowLayout(Component.CENTER, Component.CENTER, true), cmps);
|
static Container |
LayeredLayout.encloseIn(Component... cmps)
Shorthand for Container.encloseIn(new LayeredLayout(), cmps);
|
static Container |
FlowLayout.encloseIn(Component... cmps)
Shorthand for
encloseIn(com.codename1.ui.layouts.Layout, com.codename1.ui.Component...)
with a FlowLayout instance see: |
static Container |
GridLayout.encloseIn(Component... cmp)
Creates a new container with an auto fit grid layout and the components added to it
|
static Container |
GridLayout.encloseIn(int columns,
Component... cmp)
Creates a new container with the grid layout and the components added to it
|
static Container |
FlowLayout.encloseLeftMiddle(Component... cmps)
Shorthand for Container.encloseIn(new FlowLayout(Component.LEFT, Component.CENTER), cmps);
|
static Container |
FlowLayout.encloseLeftMiddleByRow(Component... cmps)
Shorthand for Container.encloseIn(new FlowLayout(Component.LEFT, Component.CENTER, true), cmps);
|
static Container |
FlowLayout.encloseMiddle(Component... cmps)
Shorthand for Container.encloseIn(new FlowLayout(Component.LEFT, Component.CENTER), cmps);
|
static Container |
FlowLayout.encloseMiddleByRow(Component... cmps)
Shorthand for Container.encloseIn(new FlowLayout(Component.LEFT, Component.CENTER, true), cmps);
|
static Container |
FlowLayout.encloseRight(Component... cmps)
Shorthand for Container.encloseIn(new FlowLayout(Component.RIGHT), cmps);
|
static Container |
FlowLayout.encloseRightBottom(Component... cmps)
Shorthand for Container.encloseIn(new FlowLayout(Component.RIGHT, Component.BOTTOM), cmps);
|
static Container |
FlowLayout.encloseRightBottomByRow(Component... cmps)
Shorthand for Container.encloseIn(new FlowLayout(Component.RIGHT, Component.BOTTOM, true), cmps);
|
static Container |
FlowLayout.encloseRightMiddle(Component... cmps)
Shorthand for Container.encloseIn(new FlowLayout(Component.RIGHT, Component.CENTER), cmps);
|
static Container |
FlowLayout.encloseRightMiddleByRow(Component... cmps)
Shorthand for Container.encloseIn(new FlowLayout(Component.RIGHT, Component.CENTER, true), cmps);
|
static Container |
BoxLayout.encloseX(Component... cmps)
The equivalent of Container.enclose() with a box layout X
![]() |
static Container |
BoxLayout.encloseXCenter(Component... cmps)
The equivalent of Container.enclose() with a box layout X, with center alignment.
|
static Container |
BoxLayout.encloseXNoGrow(Component... cmps)
The equivalent of Container.enclose() with a box layout X no grow option
![]() |
static Container |
BoxLayout.encloseXRight(Component... cmps)
The equivalent of Container.enclose() with a box layout X, with right alignment.
|
static Container |
BoxLayout.encloseY(Component... cmps)
The equivalent of Container.enclose() with a box layout Y
![]() |
static Container |
BoxLayout.encloseYBottom(Component... cmps)
The equivalent of Container.enclose() with a box layout Y, with bottom alignment.
|
static Container |
BoxLayout.encloseYBottomLast(Component... cmps)
The equivalent of Container.enclose() with a box layout Y in bottom
last mode
|
static Container |
BoxLayout.encloseYCenter(Component... cmps)
The equivalent of Container.enclose() with a box layout Y, with center alignment.
|
static Container |
BorderLayout.north(Component north)
Convenience method that creates a border layout container and places the given component in the north
|
static Container |
BorderLayout.south(Component south)
Convenience method that creates a border layout container and places the given component in the south
|
static Container |
BorderLayout.west(Component west)
Convenience method that creates a border layout container and places the given component in the west
|
| Modifier and Type | Method and Description |
|---|---|
void |
Layout.addLayoutComponent(Object value,
Component comp,
Container c)
Some layouts can optionally track the addition of elements with meta-data
that allows the user to "hint" on object positioning.
|
void |
GridBagLayout.addLayoutComponent(Object constraints,
Component comp,
Container c) |
void |
LayeredLayout.addLayoutComponent(Object value,
Component comp,
Container c) |
void |
TextModeLayout.addLayoutComponent(Object value,
Component comp,
Container c)
Some layouts can optionally track the addition of elements with meta-data
that allows the user to "hint" on object positioning.
|
void |
BorderLayout.addLayoutComponent(Object name,
Component comp,
Container c)
Some layouts can optionally track the addition of elements with meta-data
that allows the user to "hint" on object positioning.
|
protected void |
GridBagLayout.arrangeGrid(Container parent) |
protected void |
GridBagLayout.ArrangeGrid(Container parent) |
int |
LayeredLayout.LayeredLayoutConstraint.Inset.calcPreferredValue(Container parent,
Component cmp)
Calculate the preferred value of this inset.
|
LayeredLayout.LayeredLayoutConstraint.Inset |
LayeredLayout.LayeredLayoutConstraint.Inset.changeReference(Container parent,
Component newRef,
float pos)
Changes the reference component, while updating the value to remain in the same
absolute position.
|
LayeredLayout.LayeredLayoutConstraint.Inset |
LayeredLayout.LayeredLayoutConstraint.Inset.changeUnitsTo(byte unit,
Container parent)
Changes the units of this inset, and updates the value to remain
the same as the current value.
|
protected void |
FlowLayout.fillRow(Container target,
int width,
int start,
int end)
This method tries to fill up the available space in a row.
|
LayeredLayout.LayeredLayoutConstraint |
LayeredLayout.LayeredLayoutConstraint.fixDependencies(Container parent)
Recursively fixes all dependencies so that they are contained inside
the provided parent.
|
protected Component[] |
Layout.getChildrenInTraversalOrder(Container parent)
Gets the children of the parent container in the order that they should
be traversed when tabbing through a form.
|
protected Component[] |
LayeredLayout.getChildrenInTraversalOrder(Container parent) |
protected Component[] |
BorderLayout.getChildrenInTraversalOrder(Container parent) |
int |
LayoutStyle.getContainerGap(Component component,
int position,
Container parent)
Returns the amount of space to position a component inside its
parent.
|
int |
LayoutStyle.getPreferredGap(Component component1,
Component component2,
int type,
int position,
Container parent)
Returns the amount of space to use between two components.
|
Dimension |
CoordinateLayout.getPreferredSize(Container parent)
Deprecated.
Returns the container preferred size
|
abstract Dimension |
Layout.getPreferredSize(Container parent)
Returns the container preferred size
|
Dimension |
GridBagLayout.getPreferredSize(Container parent) |
Dimension |
LayeredLayout.getPreferredSize(Container parent)
Returns the container preferred size
|
Dimension |
TextModeLayout.getPreferredSize(Container parent)
Returns the container preferred size
|
Dimension |
FlowLayout.getPreferredSize(Container parent)
Returns the container preferred size
|
Dimension |
GroupLayout.getPreferredSize(Container parent)
Returns the preferred size for the specified container.
|
Dimension |
GridLayout.getPreferredSize(Container parent)
Returns the container preferred size
|
Dimension |
BorderLayout.getPreferredSize(Container parent)
Returns the container preferred size
|
Dimension |
BoxLayout.getPreferredSize(Container parent)
Returns the container preferred size
|
Rectangle |
LayeredLayout.LayeredLayoutConstraint.getReferenceBox(Container parent)
Returns a reference box within which insets of the given component are calculated.
|
Rectangle |
LayeredLayout.LayeredLayoutConstraint.getReferenceBox(Container parent,
Component cmp)
Deprecated.
Use {@link #getReferenceBox(com.codename1.ui.Container)
|
Rectangle |
LayeredLayout.LayeredLayoutConstraint.getReferenceBox(Container parent,
Component cmp2,
Rectangle box)
|
Rectangle |
LayeredLayout.LayeredLayoutConstraint.getReferenceBox(Container parent,
Rectangle box)
Returns a reference box within which insets of the given component are calculated.
|
String |
LayeredLayout.LayeredLayoutConstraint.getReferenceComponentIndicesAsString(Container parent,
boolean withLabels)
Gets the reference component indexes within the provided parent container as a string.
|
void |
GridBagLayout.invalidateLayout(Container target) |
void |
CoordinateLayout.layoutContainer(Container parent)
Deprecated.
Layout the given parent container children
|
abstract void |
Layout.layoutContainer(Container parent)
Layout the given parent container children
|
void |
GridBagLayout.layoutContainer(Container parent) |
void |
LayeredLayout.layoutContainer(Container parent)
Layout the given parent container children
|
void |
TextModeLayout.layoutContainer(Container parent)
Layout the given parent container children
|
void |
FlowLayout.layoutContainer(Container parent)
Layout the given parent container children
|
void |
GroupLayout.layoutContainer(Container parent)
Lays out the specified container.
|
void |
GridLayout.layoutContainer(Container parent)
Layout the given parent container children
|
void |
BorderLayout.layoutContainer(Container target)
Layout the given parent container children
|
void |
BoxLayout.layoutContainer(Container parent)
Layout the given parent container children
|
boolean |
Layout.obscuresPotential(Container parent)
Some layout managers can obscure their child components in some cases this
returns true if the basic underpinnings are in place for that.
|
boolean |
LayeredLayout.obscuresPotential(Container parent)
Some layout managers can obscure their child components in some cases this
returns true if the basic underpinnings are in place for that.
|
boolean |
TextModeLayout.obscuresPotential(Container parent)
Some layout managers can obscure their child components in some cases this
returns true if the basic underpinnings are in place for that.
|
boolean |
GridLayout.obscuresPotential(Container parent)
Some layout managers can obscure their child components in some cases this
returns true if the basic underpinnings are in place for that.
|
boolean |
BorderLayout.obscuresPotential(Container parent)
Some layout managers can obscure their child components in some cases this
returns true if the basic underpinnings are in place for that.
|
boolean |
Layout.overridesTabIndices(Container parent)
If a layout specifies a different traversal order of its components than the
component index, then it should override this method to return true, and
it should also override
Layout.getChildrenInTraversalOrder(com.codename1.ui.Container)
to set the tab indices of a container's children. |
boolean |
LayeredLayout.overridesTabIndices(Container parent) |
boolean |
BorderLayout.overridesTabIndices(Container parent) |
LayeredLayout.LayeredLayoutConstraint |
LayeredLayout.LayeredLayoutConstraint.setReferenceComponentIndices(Container parent,
String indices)
Sets the reference components of the insets of this constraint as indices of the provided parent
container.
|
LayeredLayout.LayeredLayoutConstraint.Inset |
LayeredLayout.LayeredLayoutConstraint.Inset.translateMM(float delta,
boolean preferMM,
Container parent)
Translates the inset by delta millimetres.
|
LayeredLayout.LayeredLayoutConstraint |
LayeredLayout.LayeredLayoutConstraint.translateMM(float x,
float y,
boolean preferMM,
Container parent)
Shifts the constraint by the specified number of millimetres while maintaining the same units.
|
LayeredLayout.LayeredLayoutConstraint.Inset |
LayeredLayout.LayeredLayoutConstraint.Inset.translatePixels(int delta,
boolean preferMM,
Container parent)
Translates the inset by delta pixels.
|
LayeredLayout.LayeredLayoutConstraint |
LayeredLayout.LayeredLayoutConstraint.translatePixels(int x,
int y,
boolean preferMM,
Container parent)
Shifts the constraint by the specified number of pixels while maintaining the same units.
|
int |
Layout.updateTabIndices(Container parent,
int offset)
Updates the tab traversal order
|
| Constructor and Description |
|---|
GroupLayout(Container host)
Creates a GroupLayout for the specified Container.
|
| Modifier and Type | Method and Description |
|---|---|
void |
MigLayout.addLayoutComponent(Object value,
Component comp,
Container c)
Deprecated.
|
float |
MigLayout.getLayoutAlignmentX(Container parent)
Deprecated.
|
float |
MigLayout.getLayoutAlignmentY(Container parent)
Deprecated.
|
Dimension |
MigLayout.getPreferredSize(Container parent)
Deprecated.
|
void |
MigLayout.invalidateLayout(Container target)
Deprecated.
|
void |
MigLayout.layoutContainer(Container parent)
Deprecated.
|
Dimension |
MigLayout.maximumLayoutSize(Container parent)
Deprecated.
|
Dimension |
MigLayout.minimumLayoutSize(Container parent)
Deprecated.
|
Dimension |
MigLayout.preferredLayoutSize(Container parent)
Deprecated.
|
| 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.
|
| 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 |
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 | Method and Description |
|---|---|
static Container |
TableLayout.encloseIn(int columns,
boolean growHorizontally,
Component... cmps)
Creates a table layout container, the number of rows is automatically calculated based on the number
of columns.
|
static Container |
TableLayout.encloseIn(int columns,
Component... cmps)
Creates a table layout container that grows the last column horizontally, the number of rows is automatically
calculated based on the number of columns.
|
| Modifier and Type | Method and Description |
|---|---|
void |
TableLayout.addLayoutComponent(Object value,
Component comp,
Container c)
Some layouts can optionally track the addition of elements with meta-data
that allows the user to "hint" on object positioning.
|
protected Component[] |
TableLayout.getChildrenInTraversalOrder(Container parent) |
Dimension |
TableLayout.getPreferredSize(Container parent)
Returns the container preferred size
|
void |
TableLayout.layoutContainer(Container parent)
Layout the given parent container children
|
boolean |
TableLayout.overridesTabIndices(Container parent) |
| 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.
|
| Modifier and Type | Method and Description |
|---|---|
Container |
UIBuilder.createContainer(Resources res,
String resourceName)
Creates the container defined under the given name in the res file
|
Container |
UIBuilder.createContainer(String resPath,
String resourceName)
Creates the container defined under the given name in the res file
|
protected Container |
UIBuilder.getRootAncestor(Component c)
Returns either the parent form or the component below the embedded container
above c.
|
Container |
UIBuilder.showContainer(String resourceName,
Command sourceCommand,
Component sourceComponent)
This method is equivalent to the internal navigation behavior, it adds
functionality such as the back command into the given form resource and
shows it.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
UIBuilder.beforeShowContainer(Container c)
This method allows binding an action that should occur before showing the given
container
|
Component |
UIBuilder.findByName(String name,
Container rootComponent)
Finds the given component by its name
|
protected Hashtable |
UIBuilder.getContainerState(Container cnt)
This method is the container navigation equivalent of getFormState() see
that method for details.
|
protected boolean |
UIBuilder.isSameBackDestination(Container source,
Container destination)
When navigating from one form/container to another we sometimes might not want the
back command to return to the previous container/form but rather to the one before
source.
|
protected void |
UIBuilder.postShowContainer(Container c)
This method allows binding an action that should occur immediately after showing the given
container
|
protected void |
UIBuilder.setContainerState(Container cnt,
Hashtable state)
This method is the container navigation equivalent of setFormState() see
that method for details.
|
Copyright © 2022. All rights reserved.