| 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.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 |
|---|---|
protected Border |
Button.getBorder()
Normally returns getStyle().getBorder() but some subclasses might use this
to programmatically replace the border in runtime e.g.
|
protected Border |
Component.getBorder()
Normally returns getStyle().getBorder() but some subclasses might use this
to programmatically replace the border in runtime e.g.
|
| Modifier and Type | Method and Description |
|---|---|
ComponentSelector |
ComponentSelector.setBorder(Border b)
|
| Modifier and Type | Class and Description |
|---|---|
class |
CSSBorder
A border that can be configured using a limited subset of CSS directives.
|
class |
RoundBorder
A border that can either be a circle or a circular rectangle which is a rectangle whose sides are circles.
|
class |
RoundRectBorder
Customizable rounded rectangle border that breaks down the border into customizable pieces.
|
| Modifier and Type | Method and Description |
|---|---|
static Border |
Border.createBevelLowered()
Creates a lowered bevel border with default colors, highlight is derived
from the component and shadow is a plain dark color
|
static Border |
Border.createBevelLowered(int highlightOuter,
int highlightInner,
int shadowOuter,
int shadowInner)
Creates a raised bevel border with the given colors
|
static Border |
Border.createBevelRaised()
Creates a lowered bevel border with default colors, highlight is derived
from the component and shadow is a plain dark color
|
static Border |
Border.createBevelRaised(int highlightOuter,
int highlightInner,
int shadowOuter,
int shadowInner)
Creates a raised bevel border with the given colors
|
Border |
StyleParser.BorderInfo.createBorder(Resources theme)
Creates the border that is described by this border info.
|
static Border |
Border.createCompoundBorder(Border top,
Border bottom,
Border left,
Border right)
Creates a border that is comprised of multiple border types so one border type can be used on top
while another one can be used at the bottom.
|
static Border |
Border.createDashedBorder(int thickness)
Creates a dashed border with the specified thickness and the theme colors
|
static Border |
Border.createDashedBorder(int thickness,
int color)
Creates a dashed border with the specified thickness and color
|
static Border |
Border.createDottedBorder(int thickness)
Creates a dotted border with the specified thickness and the theme colors
|
static Border |
Border.createDottedBorder(int thickness,
int color)
Creates a dotted border with the specified thickness and color
|
static Border |
Border.createDoubleBorder(int thickness)
Creates a double border with the specified thickness and color
|
static Border |
Border.createDoubleBorder(int thickness,
int color)
Creates a double border with the specified thickness and color
|
static Border |
Border.createEmpty()
Creates an empty border, this is useful where we don't want a border for a
component but want a focus border etc...
|
static Border |
Border.createEtchedLowered()
Creates a lowered etched border with default colors, highlight is derived
from the component and shadow is a plain dark color
|
static Border |
Border.createEtchedLowered(int highlight,
int shadow)
Creates a raised etched border with the given colors
|
static Border |
Border.createEtchedRaised()
Creates a lowered etched border with default colors, highlight is derived
from the component and shadow is a plain dark color
|
static Border |
Border.createEtchedRaised(int highlight,
int shadow)
Creates a raised etched border with the given colors
|
static Border |
Border.createGrooveBorder(int thickness)
Creates a groove border with the specified thickness and theme colors
|
static Border |
Border.createGrooveBorder(int thickness,
int color)
Creates a groove border with the specified thickness and color
|
static Border |
Border.createHorizonalImageBorder(Image left,
Image right,
Image center)
This is an image border that can only grow horizontally
|
static Border |
Border.createImageBorder(Image top,
Image topLeft,
Image background)
The given images are tiled appropriately across the matching side of the border, rotated and placed
as expected in the four corners.
|
static Border |
Border.createImageBorder(Image top,
Image bottom,
Image left,
Image right,
Image topLeft,
Image topRight,
Image bottomLeft,
Image bottomRight,
Image background)
The given top/bottom/left/right images are tiled appropriately across the matching sides of the border and the corners are placed
as expected in the four corners.
|
static Border |
Border.createImageScaledBorder(Image top,
Image bottom,
Image left,
Image right,
Image topLeft,
Image topRight,
Image bottomLeft,
Image bottomRight,
Image background)
The given top/bottom/left/right images are scaled appropriately across the matching sides of the border and the corners are placed
as expected in the four corners.
|
static Border |
Border.createImageSplicedBorder(Image img,
double topInset,
double rightInset,
double bottomInset,
double leftInset)
The given image is spliced into 9 pieces based on the provided top, right, bottom, and left insets, and the resulting
sub-images are used to form a 9-piece image border via
createImageBorder(com.codename1.ui.Image, com.codename1.ui.Image, com.codename1.ui.Image, com.codename1.ui.Image, com.codename1.ui.Image, com.codename1.ui.Image, com.codename1.ui.Image, com.codename1.ui.Image, com.codename1.ui.Image) |
static Border |
Border.createInsetBorder(int thickness)
Creates an inset border with the specified thickness and theme colors
|
static Border |
Border.createInsetBorder(int thickness,
int color)
Creates an inset border with the specified thickness and color
|
static Border |
Border.createLineBorder(float thickness)
Creates a line border that uses the color of the component foreground for drawing
|
static Border |
Border.createLineBorder(float thickness,
int color)
Creates a line border that uses the given color for the component
|
static Border |
Border.createLineBorder(int thickness)
Creates a line border that uses the color of the component foreground for drawing
|
static Border |
Border.createLineBorder(int thickness,
int color)
Creates a line border that uses the given color for the component
|
static Border |
Border.createLineBorder(int thickness,
int color,
String title)
Creates a line border that uses the given color for the component
|
static Border |
Border.createLineBorder(int thickness,
String title)
Creates a line border with the specified title
|
static Border |
Border.createOutsetBorder(int thickness)
Creates an outset border with the specified thickness and theme colors
|
static Border |
Border.createOutsetBorder(int thickness,
int color)
Creates an outset border with the specified thickness and color
|
Border |
Border.createPressedVersion()
When applied to buttons borders produce a version that reverses the effects
of the border providing a pressed feel
|
static Border |
Border.createRidgeBorder(int thickness)
Creates a ridge border with the specified thickness and theme colors
|
static Border |
Border.createRidgeBorder(int thickness,
int color)
Creates a ridge border with the specified thickness and color
|
static Border |
Border.createRoundBorder(int arcWidth,
int arcHeight)
Deprecated.
the performance of round rect borders is REALLY slow, we recommend people use image borders
which are faster, more portable and better looking
|
static Border |
Border.createRoundBorder(int arcWidth,
int arcHeight,
boolean outline)
Deprecated.
the performance of round rect borders is REALLY slow, we recommend people use image borders
which are faster, more portable and better looking
|
static Border |
Border.createRoundBorder(int arcWidth,
int arcHeight,
int color)
Deprecated.
the performance of round rect borders is REALLY slow, we recommend people use image borders
which are faster, more portable and better looking
|
static Border |
Border.createRoundBorder(int arcWidth,
int arcHeight,
int color,
boolean outline)
Deprecated.
the performance of round rect borders is REALLY slow, we recommend people use image borders
which are faster, more portable and better looking
|
static Border |
Border.createUndelineBorder(float thickness)
Deprecated.
due to a spelling mistake. Use
createUnderlineBorder(float thickness) |
static Border |
Border.createUndelineBorder(int thickness)
Deprecated.
due to a spelling mistake. Use
createUnderlineBorder(int thickness) |
static Border |
Border.createUnderlineBorder(float thickness)
Creates an underline border that uses the color of the component foreground for drawing
|
static Border |
Border.createUnderlineBorder(float thickness,
int color)
Creates an underline border that uses the given color
|
static Border |
Border.createUnderlineBorder(int thickness)
Creates an underline border that uses the color of the component foreground for drawing
|
static Border |
Border.createUnderlineBorder(int thickness,
int color)
Creates an underline border that uses the given color
|
static Border |
Border.createVerticalImageBorder(Image top,
Image bottom,
Image center)
This is an image border that can only grow vertically
|
Border |
Style.getBorder()
Returns the border for the style
|
Border[] |
Border.getCompoundBorders()
This method returns the Compound Borders array.
|
static Border |
Border.getDefaultBorder()
Gets the default border to the given value
|
static Border |
Border.getEmpty()
Deprecated.
use createEmpty instead
|
Border |
Border.getFocusedInstance()
Deprecated.
use the getSelectedStyle() method in the component class
|
Border |
Border.getPressedInstance()
Returns the pressed version of the border if one is set by the user
|
Border |
Border.mirrorBorder()
If a border is a horizontal image border it can be mirrored which is useful for an RTL scenario
|
| Modifier and Type | Method and Description |
|---|---|
void |
Border.addOuterBorder(Border outer)
Ads a border that wraps this border
|
static Border |
Border.createCompoundBorder(Border top,
Border bottom,
Border left,
Border right)
Creates a border that is comprised of multiple border types so one border type can be used on top
while another one can be used at the bottom.
|
void |
Style.setBorder(Border border)
Sets the border for the style
|
void |
Style.setBorder(Border border,
boolean override)
Sets the border for the style
|
static void |
Border.setDefaultBorder(Border border)
Sets the default border to the given value
|
void |
Border.setFocusedInstance(Border focused)
Deprecated.
use the getSelectedStyle() method in the component class
|
void |
Border.setPressedInstance(Border pressed)
Allows us to define a border that will act as the pressed version of this border
|
Copyright © 2021. All rights reserved.