| Package | Description |
|---|---|
| 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.
|
| Modifier and Type | Method and Description |
|---|---|
ComponentAnimation |
Container.createAnimateHierarchy(int duration)
Animates a pending hierarchy of components into place, this effectively replaces revalidate with
a more visual form of animation.
|
ComponentAnimation |
Container.createAnimateHierarchyFade(int duration,
int startingOpacity)
Animates a pending hierarchy of components into place, this effectively replaces revalidate with
a more visual form of animation.
|
ComponentAnimation |
Container.createAnimateLayout(int duration)
Animates a pending layout into place, this effectively replaces revalidate with a more visual form of animation
See: |
ComponentAnimation |
Container.createAnimateLayoutFade(int duration,
int startingOpacity)
Animates a pending layout into place, this effectively replaces revalidate with a more visual form of animation
|
ComponentAnimation |
Container.createAnimateLayoutFadeAndWait(int duration,
int startingOpacity)
Deprecated.
this was added by mistake!
|
ComponentAnimation |
Container.createAnimateUnlayout(int duration,
int opacity,
Runnable callback)
This method is the exact reverse of createAnimateLayout, when animation is completed it leaves the container in
an invalid state.
|
ComponentAnimation |
Container.createReplaceTransition(Component current,
Component next,
Transition t)
This method creates an animation component that replaces the current Component with the next Component.
|
ComponentAnimation |
Component.createStyleAnimation(String destUIID,
int duration)
Creates an animation that will transform the current component to the styling of the destination UIID when
completed.
|
| Modifier and Type | Method and Description |
|---|---|
void |
AnimationManager.addAnimation(ComponentAnimation an)
Adds the animation to the end to the animation queue
|
void |
AnimationManager.addAnimation(ComponentAnimation an,
Runnable callback)
Adds the animation to the end to the animation queue
|
void |
AnimationManager.addAnimationAndBlock(ComponentAnimation an)
Adds the animation to the end of the animation queue and blocks the current thread until the animation
completes
|
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.
|
void |
AnimationManager.onTitleScrollAnimation(ComponentAnimation... cna)
Performs a step animation as the user scrolls down/up the page e.g.
|
void |
AnimationManager.onTitleScrollAnimation(Container content,
ComponentAnimation... cna)
Performs a step animation as the user scrolls down/up the page e.g.
|
| Modifier and Type | Class and Description |
|---|---|
static class |
ComponentAnimation.UIMutation
A special kind of ComponentAnimation that encapsulates a mutation of the
user interface.
|
| Modifier and Type | Method and Description |
|---|---|
static ComponentAnimation |
ComponentAnimation.compoundAnimation(ComponentAnimation... anims)
Allows us to create an animation that compounds several separate animations so they appear as a
single animation to the system and process in parallel
|
static ComponentAnimation |
ComponentAnimation.sequentialAnimation(ComponentAnimation... anims)
Allows us to create an animation that places several separate animations in a sequence so they appear as a
single animation to the system and process one after the other
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
ComponentAnimation.UIMutation.add(Container cnt,
ComponentAnimation anim)
Tries to add another mutation to this UIMutation.
|
static ComponentAnimation |
ComponentAnimation.compoundAnimation(ComponentAnimation... anims)
Allows us to create an animation that compounds several separate animations so they appear as a
single animation to the system and process in parallel
|
static ComponentAnimation |
ComponentAnimation.sequentialAnimation(ComponentAnimation... anims)
Allows us to create an animation that places several separate animations in a sequence so they appear as a
single animation to the system and process one after the other
|
| Constructor and Description |
|---|
UIMutation(Container cnt,
ComponentAnimation anim)
Creates a new UIMutation which mutates the given container with the provided
animation.
|
Copyright © 2023. All rights reserved.