| Package | Description |
|---|---|
| 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.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.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.
|
| Modifier and Type | Method and Description |
|---|---|
Transition |
CodenameOneImplementation.getNativeTransition(Transition t)
This method allows a native implementation to implement a native version of a given transition that
can be faster
|
| Modifier and Type | Method and Description |
|---|---|
Transition |
CodenameOneImplementation.getNativeTransition(Transition t)
This method allows a native implementation to implement a native version of a given transition that
can be faster
|
| Modifier and Type | Method and Description |
|---|---|
Transition |
Form.getTransitionInAnimator()
This property allows us to define a an animation that will draw the transition for
entering this form.
|
Transition |
Form.getTransitionOutAnimator()
This property allows us to define a an animation that will draw the transition for
exiting this form.
|
| Modifier and Type | Method and Description |
|---|---|
ComponentAnimation |
Container.createReplaceTransition(Component current,
Component next,
Transition t)
This method creates an animation component that replaces the current Component with the next Component.
|
static void |
CommonProgressAnimations.ProgressAnimation.markComponentReady(Component cmp,
Transition t)
Marks a component as "ready", if it had previously been marked as "loading".
|
void |
Form.replace(Component current,
Component next,
Transition t)
This method replaces the current Component with the next Component.
|
void |
Container.replace(Component current,
Component next,
Transition t)
This method replaces the current Component with the next Component.
|
void |
Container.replace(Component current,
Component next,
Transition t,
Runnable onFinish,
int growSpeed)
This method replaces the current Component with the next Component
|
ComponentSelector |
ComponentSelector.replace(ComponentSelector.ComponentMapper mapper,
Transition t)
Replaces the matched components within respective parents with replacements defined by the provided mapper.
|
void |
Form.replaceAndWait(Component current,
Component next,
Transition t)
This method replaces the current Component with the next Component.
|
void |
Container.replaceAndWait(Component current,
Component next,
Transition t)
This method replaces the current Component with the next Component.
|
void |
Container.replaceAndWait(Component current,
Component next,
Transition t,
boolean dropEvents)
This method replaces the current Component with the next Component.
|
void |
Container.replaceAndWait(Component current,
Component next,
Transition t,
int layoutAnimationSpeed)
This method replaces the current Component with the next Component.
|
ComponentSelector |
ComponentSelector.replaceAndWait(ComponentSelector.ComponentMapper mapper,
Transition t)
Replaces the matched components within respective parents with replacements defined by the provided mapper.
|
void |
Form.setMenuTransitions(Transition transitionIn,
Transition transitionOut)
Sets the menu transitions for showing/hiding the menu, can be null...
|
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.
|
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 |
Form.setTransitionInAnimator(Transition transitionInAnimator)
This property allows us to define a an animation that will draw the transition for
entering this form.
|
void |
Form.setTransitionOutAnimator(Transition transitionOutAnimator)
This property allows us to define a an animation that will draw the transition for
exiting this form.
|
void |
MenuBar.setTransitions(Transition transitionIn,
Transition transitionOut)
Sets the menu transitions for showing/hiding the menu, can be null...
|
static Command |
Dialog.show(String title,
Component body,
Command[] cmds,
int type,
Image icon,
long timeout,
Transition transition)
Shows a modal dialog with the given component as its "body" placed in the
center.
|
static Command |
Dialog.show(String title,
Component body,
Command defaultCommand,
Command[] cmds,
int type,
Image icon,
long timeout,
Transition transition)
Shows a modal dialog with the given component as its "body" placed in the
center.
|
static Command |
Dialog.show(String title,
String text,
Command[] cmds,
int type,
Image icon,
long timeout,
Transition transition)
Shows a modal prompt dialog with the given title and text.
|
static Command |
Dialog.show(String title,
String text,
Command defaultCommand,
Command[] cmds,
int type,
Image icon,
long timeout,
Transition transition)
Shows a modal prompt dialog with the given title and text.
|
| 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.
|
| Modifier and Type | Method and Description |
|---|---|
Transition |
BubbleTransition.copy(boolean reverse)
Create a copy of the transition, usually the transition used is a copy.
|
Transition |
Transition.copy(boolean reverse)
Create a copy of the transition, usually the transition used is a copy.
|
Transition |
CommonTransitions.copy(boolean reverse)
Create a copy of the transition, usually the transition used is a copy.
|
Transition |
MorphTransition.copy(boolean reverse)
Create a copy of the transition, usually the transition used is a copy.
|
Transition |
FlipTransition.copy(boolean reverse)
Create a copy of the transition, usually the transition used is a copy.
|
| Modifier and Type | Method and Description |
|---|---|
Transition |
LookAndFeel.getDefaultDialogTransitionIn()
Deprecated.
Allows us to define a default animation that will draw the transition for
entering a dialog
|
Transition |
LookAndFeel.getDefaultDialogTransitionOut()
Deprecated.
Allows us to define a default animation that will draw the transition for
exiting a dialog
|
Transition |
LookAndFeel.getDefaultFormTransitionIn()
Deprecated.
Allows us to define a default animation that will draw the transition for
entering a form
|
Transition |
LookAndFeel.getDefaultFormTransitionOut()
Deprecated.
Allows us to define a default animation that will draw the transition for
exiting a form
|
Transition |
LookAndFeel.getDefaultMenuTransitionIn()
Deprecated.
Allows us to define a default animation that will draw the transition for
entering a Menu
|
Transition |
LookAndFeel.getDefaultMenuTransitionOut()
Deprecated.
Allows us to define a default animation that will draw the transition for
exiting a Menu
|
| Modifier and Type | Method and Description |
|---|---|
void |
LookAndFeel.setDefaultDialogTransitionIn(Transition defaultDialogTransitionIn)
Deprecated.
Allows us to define a default animation that will draw the transition for
entering a dialog
|
void |
LookAndFeel.setDefaultDialogTransitionOut(Transition defaultDialogTransitionOut)
Deprecated.
Allows us to define a default animation that will draw the transition for
exiting a dialog
|
void |
LookAndFeel.setDefaultFormTransitionIn(Transition defaultFormTransitionIn)
Deprecated.
Allows us to define a default animation that will draw the transition for
entering a form
|
void |
LookAndFeel.setDefaultFormTransitionOut(Transition defaultFormTransitionOut)
Deprecated.
Allows us to define a default animation that will draw the transition for
exiting a form
|
void |
LookAndFeel.setDefaultMenuTransitionIn(Transition defaultMenuTransitionIn)
Deprecated.
Allows us to define a default animation that will draw the transition for
entering a Menu
|
void |
LookAndFeel.setDefaultMenuTransitionOut(Transition defaultMenuTransitionOut)
Deprecated.
Allows us to define a default animation that will draw the transition for
exiting a Menu
|
Copyright © 2021. All rights reserved.