|
UIML
v2.0
Draft Spec
DTD
Examples
Vocabularies
UIML
v1.0
Tags
Components
Attributes
|
UIML Interface Components
(UIML 1.0)
JCheckBox
Toolkit:
com.sun.java.swing
Description:
An enhanced checkbox
that may contain images as well as text.
ALIGNMENT_HORIZONTAL
| Allowed Values
|
Meaning
|
| Center, Left, Right
|
Sets the horizontal
alignment of the icon and text (relative to the center of the button,
not to each other). Default is Center. |
ALIGNMENT_VERTICAL
| Allowed Values
|
Meaning
|
| Center, Top, Bottom
|
Sets the vertical
alignment of the icon and text (relative to the center of the button,
not to each other). Default is Center. |
AUTOSCROLLS
| Allowed Values
|
Meaning
|
| true, false
|
If true, this component
will automatically scroll its contents when dragged, if contained
in a component that supports scrolling. |
BORDER
| Allowed Values
|
Meaning
|
| LineBorder
|
Creates a single-lined
border around the component. You can control the line's color and
thickness with the LineBorder_Color and LineBorder_Thickness attributes.
|
| RaisedBevelBorder
|
Creates a border
around the component that has the effect of raising the component.
|
| LoweredBevelBorder
|
Creates a border
around the component that has the effect of lowering the component.
|
| CompoundBorder
|
Combination of
the LineBorders. |
| TitledBorder
|
Creates a border
with a title. To control its appearance, use TitledBorder_Title, TitledBorder_Color,
TitledBorder_Font, TitledBorder_Justification, TitledBorder_Position,
and TitledBorder_Border. |
| EmptyBorder
|
Creates an empty
border. |
BORDER_PAINTED
| Allowed Values
|
Meaning
|
| true, false
|
Sets whether the
border should be painted. Default is true. |
CONTENT
| Allowed Values
|
Meaning
|
| A string
|
In Button, Checkbox,
Label, Menu, MenuItem, HWrappingLabel, JButton, JCheckbox, JLabel,
JRadioButton, JToggleButton: the text to appear in the component.
|
ENABLED
| Allowed Values
|
Meaning
|
| true, false
|
If true, enables
the component; otherwise, disables it. Default is true. |
FOCUS_PAINTED
| Allowed Values
|
Meaning
|
| true, false
|
If true, then focus
is painted. (After you click on the button, a dotted line around the
button shows the button has the focus. This line disapoears when you
click somewhere else, showing the button has lost the focus.) Default
is false. |
HEIGHT
| Allowed Values
|
Meaning
|
| A positive integer
|
Sets the component's
height, in pixels. HEIGHT settings are guaranteed to be used only
for components whose container is using AbsoluteLayout. Otherwise,
HEIGHT is a preference that the layout manager may or may not elect
to use. |
IMAGE
| Allowed Values
|
Meaning
|
| Filename
|
Sets the icon to
display on a button. Filename must point to a valid .GIF file. When
specifying both path and filename, enclose the entire path and filename
to the file in double-quotes. |
| URL |
Sets the icon to
display on a button. The URL must point to a valid .GIF file. When
specifying both path and filename, enclose the entire path and filename
to the file in double-quotes. Note: support for URL's will be added
after prerelease v04. |
IMAGE_DISABLED
| Allowed Values
|
Meaning
|
| Filename
|
Sets the icon to
display when the button is disabled. Filename must point to a valid
.GIF file. When specifying both path and filename, enclose the entire
path and filename to the file in double-quotes. |
| URL |
Sets the icon to
display on a button when the button is disabled. The URL must point
to a valid .GIF file. When specifying both path and filename, enclose
the entire path and filename to the file in double-quotes. Note: support
for URL's will be added after prerelease v04. |
IMAGE_DISABLED_SELECTED
| Allowed Values
|
Meaning
|
| Filename
|
Sets the icon to
display when the button is disabled and selected. Filename must point
to a valid .GIF file. When specifying both path and filename, enclose
the entire path and filename to the file in double-quotes.
|
| URL |
Sets the icon to
display when the button is disabled and selected. The URL must point
to a valid .GIF file. When specifying both path and filename, enclose
the entire path and filename to the file in double-quotes. Note: support
for URL's will be added after prerelease v04. |
IMAGE_PRESSED
| Allowed Values
|
Meaning
|
| Filename
|
Sets the icon to
display when the button is pressed. Filename must point to a valid
.GIF file. When specifying both path and filename, enclose the entire
path and filename to the file in double-quotes. |
| URL |
Sets the icon to
display when the button is pressed. The URL must point to a valid
.GIF file. When specifying both path and filename, enclose the entire
path and filename to the file in double-quotes. Note: support for
URL's will be added after prerelease v04. |
IMAGE_ROLLOVER
| Allowed Values
|
Meaning
|
| Filename
|
Sets the icon to
display when the mouse is over the button. Filename must point to
a valid .GIF file. When specifying both path and filename, enclose
the entire path and filename to the file in double-quotes.
|
| URL |
Sets the icon to
display when the mouse is over the button. The URL must point to a
valid .GIF file. When specifying both path and filename, enclose the
entire path and filename to the file in double-quotes. Note: support
for URL's will be added after prerelease v04. |
IMAGE_ROLLOVER_SELECTED
| Allowed Values
|
Meaning
|
| Filename
|
Sets the icon to
display when ROLLOVER effects are enabled and the button is selected.
Filename must point to a valid .GIF file. When specifying both path
and filename, enclose the entire path and filename to the file in
double-quotes. |
| URL |
Sets the icon to
display when ROLLOVER effects are enabled and the button is selected.
The URL must point to a valid .GIF file. When specifying both path
and filename, enclose the entire path and filename to the file in
double-quotes. Note: support for URL's will be added after prerelease
v04. |
IMAGE_SELECTED
| Allowed Values
|
Meaning
|
| Filename
|
Sets the icon to
display when the button is selected. Filename must point to a valid
.GIF file. When specifying both path and filename, enclose the entire
path and filename to the file in double-quotes. |
| URL |
Sets the icon to
display when the button is selected. The URL must point to a valid
.GIF file. When specifying both path and filename, enclose the entire
path and filename to the file in double-quotes. Note: support for
URL's will be added after prerelease v04. |
LINEBORDER_COLOR
| Allowed Values
|
Meaning
|
| black, blue, cyan,
darkGray, gray, green, lightGray, magenta, orange, pink, red, white,
yellow |
Sets the color
of the LineBorder's line to color name as defined in class java.awt.Color.
|
| One of the color
names from java.awt.Color (see above) followed by a - or a + (e.g.,
red- or blue+). |
A suffix of - means
darken the color; a suffix of + means brighten the color. (These correspond
to java.awt.Color.darken() and .brighten().) |
| 0x<six hex digits>
(e.g., 0xFF0000 for pure red). |
Set the color of
the border's line to RGB (red, green, blue) color specified as 0xRRBBGG,
where RR denotes one of 256 intensities of red (00 to FF), BB denotes
the intensity of blue, and and GG denotes the intensity of green.
|
| A positive integer
|
Set the color of
the border's line to RGB color represented by a single integer. Bits
0-7 specify one of 256 intensities of blue; bits 8-15 green; and bits
16-23 red. |
| <float>,<float>,<float>
where <float> is between 0 and 1 inclusive (e.g., .667,1,1 for
pure blue). |
Set the color of
the border's line to HSB (hue, saturation, brightness) color specified
as a triple of numbers, where the first is hue, the second is saturation,
and the third is brightness.
· Hue represents the rainbow (0 is white, near 0 are red, near 1 is
magenta, and 1 is black).
· A saturation of 0 is either white or black, depending on brightness;
a saturation of 1 is pure hue color.
· A brightness of 0 is black; a brightness of 1 is maximum color saturation.
|
| activeCaption,
activeCaptionBorder, activeCaptionText, control, controlDkShadow,
controlHighlight, controlLtHighlight, controlShadow, controlText,
desktop, inactiveCaption, inactiveCaptionBorder, inactiveCaptionText,
info, infoText, menu, menuText, scrollbar, textHighlight, textHighlightText,
textInactiveText, textText, window, windowBorder, windowText
|
Set the color of
the border's line to the same color as corresponding system item.
The allowed values are defined in class java.awt.SystemColor. (Note:
these values work only on MS Windows platforms.) |
LINEBORDER_THICKNESS
| Allowed Values
|
Meaning
|
| An integer
|
Sets the thickness
of the LineBorder's line. |
OPAQUE
| Allowed Values
|
Meaning
|
| true, false
|
If true, the component's
background will be filled with the background color. |
RENDERING
| Allowed Values
|
Meaning
|
| JButton, JCheckBox,
JLabel, JPanel, JRadioButton, JTable, JToggleButton |
Inserts a Java
Swing component into a parent component. The parent component must
be rendered as a frame, panel, scrollpane, JFrame, or JPanel.
|
ROLLOVER
| Allowed Values
|
Meaning
|
| true, false
|
Sets whether rollover
effects should be enabled. Rollover effects allow icons to change
when the mouse is on top of a button. You must also define an IMAGE_ROLLOVER.
|
SELECTED
| Allowed Values
|
Meaning
|
| true, false
|
Sets the state
of a button. |
SIZE
| Allowed Values
|
Meaning
|
| Two positive integers,
separated by a comma (e.g., 125,73) |
Sets the interface
component's size, in pixels. This attribute is implemented:
- for components whose container's LAYOUT is AbsoluteLayout, and
- for Frames, regardless of layout.
Otherwise SIZE is a preference that the layout manager may or may
not elect to use.
Note also that when using AbsoluteLayout, all components' size must
be specified with the SIZE attribute. |
SIZE-MAXIMUM
| Allowed Values
|
Meaning
|
| Two positive integers,
separated by a comma (e.g., 125,73) |
Sets the interface
component's maximum size, in pixels. |
SIZE-MINIMUM
| Allowed Values
|
Meaning
|
| Two positive integers,
separated by a comma (e.g., 125,73) |
Sets the interface
component's minimum size, in pixels. |
TEXT_HORIZONTAL
| Allowed Values
|
Meaning
|
| Center, Left, Right
|
Sets the horizontal
position of text relative to an icon. Default is Left. |
TEXT_VERTICAL
| Allowed Values
|
Meaning
|
| Center, Top, Bottom
|
Sets the vertical
position of text relative to an icon. Default is Center. |
TITLEDBORDER_BORDER
| Allowed Values
|
Meaning
|
| LineBorder, RaisedBevelBorder,
LoweredBevelBorder, CompoundBorder |
Specifies what
line style to use for a titled border. |
TITLEDBORDER_COLOR
| Allowed Values
|
Meaning
|
| black, blue, cyan,
darkGray, gray, green, lightGray, magenta, orange, pink, red, white,
yellow |
Set titled border
color to color name as defined in class java.awt.Color. |
| One of the color
names from java.awt.Color (see above) followed by a - or a + (e.g.,
red- or blue+). |
A suffix of - means
darken the color; a suffix of + means brighten the color. (These correspond
to java.awt.Color.darken() and .brighten().) |
| 0x<six hex digits>
(e.g., 0xFF0000 for pure red). |
Set titled border
color to RGB (red, green, blue) color specified as 0xRRBBGG, where
RR denotes one of 256 intensities of red (00 to FF), BB denotes the
intensity of blue, and and GG denotes the intensity of green.
|
| An integer
|
Set titled border
color to RGB color represented by a single integer. Bits 0-7 specify
one of 256 intensities of blue; bits 8-15 green; and bits 16-23 red.
|
| <float>,<float>,<float>
where <float> is between 0 and 1 inclusive (e.g., .667,1,1 for
pure blue). |
Set titled border
color to HSB (hue, saturation, brightness) color specified as a triple
of numbers, where the first is hue, the second is saturation, and
the third is brightness.
· Hue represents the rainbow (0 is white, near 0 are red, near 1 is
magenta, and 1 is black).
· A saturation of 0 is either white or black, depending on brightness;
a saturation of 1 is pure hue color.
· A brightness of 0 is black; a brightness of 1 is maximum color saturation.
|
| activeCaption,
activeCaptionBorder, activeCaptionText, control, controlDkShadow,
controlHighlight, controlLtHighlight, controlShadow, controlText,
desktop, inactiveCaption, inactiveCaptionBorder, inactiveCaptionText,
info, infoText, menu, menuText, scrollbar, textHighlight, textHighlightText,
textInactiveText, textText, window, windowBorder, windowText
|
Set titled border
color to the same color as corresponding system item. The allowed
values are defined in class java.awt.SystemColor. (Note: these values
work only on MS Windows platforms.) |
TITLEDBORDER_FONT_NAME
| Allowed Values
|
Meaning
|
| Dialog, DialogInput,
Monospaced, SansSerif, Serif |
Generic name of
font, which is mapped to a specific font on the platform on which
Render runs (e.g., sansserif might be mapped to Helvetica).
|
TITLEDBORDER_FONT_SIZE
| Allowed Values
|
Meaning
|
| A positive integer
|
Font size, in points.
|
TITLEDBORDER_FONT_STYLE
| Allowed Values
|
Meaning
|
| plain, bold, italic,
bold italic |
Font style (bold,
italic, etc.) |
TITLEDBORDER_JUSTIFICATION
| Allowed Values
|
Meaning
|
| Left, Center, Right
|
Sets whether the
title should appear on the left, center, or right. Default is Left.
|
TITLEDBORDER_POSITION
| Allowed Values
|
Meaning
|
| Above-Top, Top,
Below-Top, Above-Bottom, Bottom, Below-Bottom |
Sets whether the
title should appear above, on, or below the top or bottom line of
the border. Default is Top. |
TITLEDBORDER_TITLE
| Allowed Values
|
Meaning
|
| A string
|
Sets the title
to place on the titled border. |
TOOLTIP
| Allowed Values
|
Meaning
|
| A string
|
Sets text to display
when the mouse is over a component. |
WIDTH
| Allowed Values
|
Meaning
|
| A positive integer
|
Sets the component's
width, in pixels. WIDTH settings are guaranteed to be used only for
components whose container is using AbsoluteLayout. Otherwise, WIDTH
is a preference that the layout manager may or may not elect to use.
|
©
1999-2000 UIML.org (all rights reserved)
|