| 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.
|
| 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.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.
|
| 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 |
|---|---|
Resources |
Component.getInlineStylesTheme()
Gets the theme that is used by inline styles to reference images.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Component.setInlineStylesTheme(Resources inlineStylesTheme)
Sets the theme that is used by inline styles to reference images.
|
| Modifier and Type | Method and Description |
|---|---|
static AnimationObject |
AnimationObject.createAnimationImage(String imageName,
Resources res,
int x,
int y)
Creates an animation object instance that can define the animation properties for an image.
|
| Modifier and Type | Method and Description |
|---|---|
static Resources |
DefaultDocumentRequestHandler.getResFile()
Allows URL's referring to a res:// local resource to default to this file
|
| Modifier and Type | Method and Description |
|---|---|
static void |
DefaultDocumentRequestHandler.setResFile(Resources res)
Allows URL's referring to a local:// local resource to default to this file
|
| Modifier and Type | Method and Description |
|---|---|
static Resources |
UIManager.initFirstTheme(String resourceFile)
This is a shorthand notation for boilerplate code for initializing the first theme in the given resource file
and catching/doing nothing with the IOException since this would be invoked too early in the program
where we would be out of options if something like that happens.
|
static Resources |
UIManager.initNamedTheme(String resourceFile,
String resName)
Same as the initFirstTheme method, but unlike that method this allows specifying the theme resource name
|
| Modifier and Type | Method and Description |
|---|---|
Border |
StyleParser.BorderInfo.createBorder(Resources theme)
Creates the border that is described by this border info.
|
Image |
StyleParser.ImageInfo.getImage(Resources theme)
Gets the image object that this image info references.
|
Style |
UIManager.parseComponentCustomStyle(Resources theme,
String baseStyle,
String id,
String type,
String... styleString)
Returns the selected style of the component with the given baseStyle or a new instance of the default
style, but overrides styles based on the directives in the styleStrings.
|
Style |
UIManager.parseComponentSelectedStyle(Resources theme,
String baseStyle,
String id,
String... styleString)
Returns the selected style of the component with the given baseStyle or a new instance of the default
style, but overrides styles based on the directives in the styleStrings.
|
Style |
UIManager.parseComponentStyle(Resources theme,
String baseStyle,
String id,
String... styleString)
Returns the style of the component with the given baseStyle or a new instance of the default
style, but overrides styles based on the directives in the styleStrings.
|
| Constructor and Description |
|---|
CSSBorder(Resources res)
Creates an empty border.
|
CSSBorder(Resources res,
String css)
Creates a new CSS border with the provided CSS styles.
|
| Modifier and Type | Method and Description |
|---|---|
protected Resources |
UIBuilder.fetchResourceFile()
This method may be overriden by subclasses to provide a way to dynamically load
a resource file.
|
static Resources |
Resources.getGlobalResources()
Global resources are used by new GUI builder apps to keep track of the applications resources
|
static Resources |
Resources.getSystemResource()
Gets the system resource which can be located /CN1Images.res.
|
static Resources |
Resources.open(InputStream resource)
Creates a resource object from the given input stream
|
static Resources |
Resources.open(InputStream resource,
int dpi)
Creates a resource object from the given input stream
|
static Resources |
Resources.open(String resource)
Creates a resource object from the local JAR resource identifier
|
static Resources |
Resources.open(String resource,
int dpi)
Creates a resource object from the local JAR resource identifier
|
static Resources |
Resources.openLayered(String resource)
Opens a multi-layer resource file that supports overriding features on a specific
platform.
|
static Resources |
Resources.openLayered(String resource,
int dpi)
Opens a multi-layer resource file that supports overriding features on a specific
platform.
|
| 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
|
static void |
Resources.setGlobalResources(Resources res)
Global resources are used by new GUI builder apps to keep track of the applications resources
|
protected void |
UIBuilder.setResourceFile(Resources res)
Sets the resource file if keep in rum or no path is defined
|
Copyright © 2021. All rights reserved.