| Package | Description |
|---|---|
| com.codename1.components |
Generic elaborate components that make use of both UI elements and storage.
|
| 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.share |
Sharing services, that can be registered on the ShareButton
|
| com.codename1.system |
Low level calls into the Codename One system, including
support for making platform native API calls.
|
| 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.painter |
Painter allows us to draw arbitrary elements
of graphics from plain/scaled/tiled images to gradients and pretty
much any form of graphic drawing we can imagine. |
| 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 |
Progress
Displays a progress dialog with the ability to cancel an ongoing operation
|
| Modifier and Type | Method and Description |
|---|---|
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
|
| Modifier and Type | Method and Description |
|---|---|
Form |
CodenameOneImplementation.getCurrentForm()
Returns the current form, this method is for internal use only and does not
take transitions/menus into consideration
|
| Modifier and Type | Method and Description |
|---|---|
void |
CodenameOneImplementation.onShow(Form f)
Callback before showing a specific form
|
void |
CodenameOneImplementation.setCurrentForm(Form f)
This method is used internally to determine the actual current form
it doesn't perform the logic of transitions etc.
|
| Modifier and Type | Method and Description |
|---|---|
Form |
ShareService.getOriginal()
Gets the original Form
|
| Modifier and Type | Method and Description |
|---|---|
void |
ShareService.setOriginalForm(Form original)
Sets the Original Form (this is the Form of the share button)
|
| Modifier and Type | Method and Description |
|---|---|
protected Form |
Lifecycle.getCurrentForm()
The current form within the application lifecycle which possibly differs from the one in the implementation
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
Lifecycle.setCurrentForm(Form current)
The current form within the application lifecycle which possibly differs from the one in the implementation
|
| Modifier and Type | Method and Description |
|---|---|
Form |
TestRunnerComponent.showForm()
Shows a form with the testrunner embedded in it.
|
| Modifier and Type | Class and Description |
|---|---|
class |
Dialog
A dialog is a form that occupies a part of the screen and appears as a modal
entity to the developer.
|
| Modifier and Type | Method and Description |
|---|---|
Form |
Form.getComponentForm()
Returns the Component Form or null if this Component
is not added yet to a form
|
Form |
Component.getComponentForm()
Returns the Component Form or null if this Component
is not added yet to a form
|
Form |
Display.getCurrent()
Return the form currently displayed on the screen or null if no form is
currently displayed.
|
static Form |
CN.getCurrentForm()
Return the form currently displayed on the screen or null if no form is
currently displayed.
|
Form |
NavigationCommand.getNextForm()
Gets the next Form
|
Form |
SideMenuBar.getParentForm()
Deprecated.
Returns the Parent Form of this menu
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
MenuBar.initMenuBar(Form parent)
Initialize the MenuBar
|
protected void |
SideMenuBar.initMenuBar(Form parent)
Deprecated.
Initialize the MenuBar
|
void |
NavigationCommand.setNextForm(Form nextForm)
Sets the Form to navigate to when the actionPerformed is invoked on this
Command
|
void |
Dialog.setPreviousForm(Form previousForm)
When the dialog is disposed this form will show.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
PainterChain.installGlassPane(Form f,
Painter p)
Installs a glass pane on the given form making sure to make it a painter
chain only if required by existing painter
|
static void |
PainterChain.removeGlassPane(Form f,
Painter p)
Removes a glass pane from the given form, this is the opposite operation for the
install glass pane
|
| Modifier and Type | Method and Description |
|---|---|
Form |
UIBuilder.showForm(String resourceName,
Command sourceCommand)
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 |
|---|---|
LazyValue<Form> |
UIBuilder.createBackLazyValue(Form f)
This is useful for swipe back navigation behavior
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
UIBuilder.beforeShow(Form f)
This method allows binding an action that should occur before showing the given
form
|
protected void |
SwipeBackSupport.bind(Form currentForm,
LazyValue<Form> destination)
Binds support for swiping to the given forms
|
static void |
SwipeBackSupport.bindBack(Form currentForm,
LazyValue<Form> destination)
Binds support for swiping to the given forms
|
LazyValue<Form> |
UIBuilder.createBackLazyValue(Form f)
This is useful for swipe back navigation behavior
|
protected void |
UIBuilder.exitForm(Form f)
This method allows binding an action that should occur before leaving the given
form, e.g.
|
protected Hashtable |
UIBuilder.getFormState(Form f)
Returns the state of the current form which we are about to leave as part
of the navigation logic.
|
protected void |
UIBuilder.postShow(Form f)
This method allows binding an action that should occur immediately after showing the given
form
|
protected boolean |
UIBuilder.processBackground(Form f)
Warning: this method is invoked on a separate thread.
|
void |
UITimer.schedule(int timeMillis,
boolean repeat,
Form bound)
Binds the timer to start at the given schedule
|
protected void |
UIBuilder.setBackCommand(Form f,
Command backCommand)
Invoked internally to set the back command on the form, this method allows subclasses
to change the behavior of back command adding or disable it
|
protected void |
UIBuilder.setFormState(Form f,
Hashtable state)
Sets the state of the current form to which we are returing as part
of the navigation logic.
|
void |
GlassTutorial.showOn(Form f)
Deprecated.
Install the glass tutorial on a form and seamlessly dismiss it when no longer necessary
|
static UITimer |
UITimer.timer(int timeMillis,
boolean repeat,
Form parent,
Runnable r)
Convenience method to schedule a UITimer more easily
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
SwipeBackSupport.bind(Form currentForm,
LazyValue<Form> destination)
Binds support for swiping to the given forms
|
static void |
SwipeBackSupport.bindBack(Form currentForm,
LazyValue<Form> destination)
Binds support for swiping to the given forms
|
static void |
SwipeBackSupport.bindBack(LazyValue<Form> destination)
Binds support for swiping to the current form
|
Copyright © 2023. All rights reserved.