Border Converters

A variety of borders are created by the default instance of DispatchingBorderConverter. When "Border" is listed as the property type for a property, the default instance of DispatchingBorderConverter is used to convert the resource bundle key or string. Borders are unique in that they cannot be modified once created. Thus, borders only have creation properties, but no regular properties. Also there is point listening for changes for borders or trying to update them after creation time. So, no borders can be map consistent, and no property of borders can be changed through an argument map.

The following is a list of component converters / configurers, installed in the default instance of DispatchingBorderConverter. All of the installed border converters have the braced property syntax.

EmptyBorder (empty)
Property Type
Note
Creation Properties


top
Integer
Defaults to 0.
left
Integer Defaults to 0.
bottom
Integer Defaults to 0.
right
Integer Defaults to 0.

EtchedBorder (etched)
Property Type
Note
Creation Properties


type
String
Either "raised" or "lowered", defaults to raised.
highlight
Color

shadow
Color


MatteBorder (matte)
Property Type
Note
Creation Properties

top
Integer
Defaults to 0.
left
Integer Defaults to 0.
bottom
Integer Defaults to 0.
right
Integer Defaults to 0.
color
Color
Cannot be used in conjunction with icon.
icon
ImageIcon
May also be set with an instance of Icon.
Cannot be used in conjunction with color.

LineBorder (line)
Property Type
Note
Creation Properties

color
Color
Defaults to black.
thickness
Integer

rounded
Boolean
Requires the thickness property to be set.

BevelBorder (bevel)
Property Type
Note
Creation Properties

type
String
Either "raised" or "lowered", defaults to raised.
highlight
Color
Must be used in conjuction with shadow.
shadow
Color Must be used in conjuction with highlight.
highlightOuter
Color Must be used in conjuction with shadowOuter, highlightInner, and shadowInner.
shadowOuter
Color Must be used in conjuction with highlightOuter, highlightInner, and shadowInner.
highlightInner
Color Must be used in conjuction with highlightOuter, shadowOuter, and shadowInner.
shadowInner
Color Must be used in conjuction with highlightOuter, shadowOuter, and highlightInner.

Soft BevelBorder (softbevel)
Property Type
Note
Creation Properties

type
String
Either "raised" or "lowered", defaults to raised.
highlight
Color
Must be used in conjuction with shadow.
shadow
Color Must be used in conjuction with highlight.
highlightOuter
Color Must be used in conjuction with shadowOuter, highlightInner, and shadowInner.
shadowOuter
Color Must be used in conjuction with highlightOuter, highlightInner, and shadowInner.
highlightInner
Color Must be used in conjuction with highlightOuter, shadowOuter, and shadowInner.
shadowInner
Color Must be used in conjuction with highlightOuter, shadowOuter, and highlightInner.

TitledBorder (titled)
Property Type
Note
Creation Properties


title
Quoted String

border
Border

justification String
One of "left", "center", "right", "leading", "trailing", or "default".
position
String
One of "aboveTop", "top", "belowTop", "bottom", "belowBottom", or "default".
font
Font

fontColor
Color
Must be used in conjunction with font.

CompoundBorder (compound)
Property Type
Note
Creation Properties

inner
Border

outer
Border