INTRO SPECS TUTORIALS RESOURCES TOOLS ABOUT US CONTACT US
UIML v1.0 UIML v2.0
 

UIML v2.0
Draft Spec
DTD
Examples
Vocabularies

UIML v1.0
Tags
Components
Attributes

UIML Interface Components (UIML 1.0)

JTable

Toolkit:

com.sun.java.swing

Description:

A spreadsheet-like table for portraying data in rows and columns.

AUTORESIZEMODE

Allowed Values Meaning
AUTO_RESIZE_OFF, AUTO_RESIZE_LAST_COLUMN, AUTO_RESIZE_ALL_COLUMNS Defines which columns change size when the table is resized. AUTO_RESIZE_OFF means all columns stay the same width; AUTO_RESIZE_LAST_COLUMN adjusts the size of the last column to fit; AUTO_RESIZE_ALL_COLUMNS adjusts the size of all columns to fit.

Default is AUTO_RESIZE_ALL_COLUMNS.

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.

CELLSELECTION

Allowed Values Meaning
true, false Sets whether to allow simultaneously selecting a row and a column (i.e., to select a single cell). Default is false.

COLUMNS

Allowed Values Meaning
A positive integer With JTable: The number of columns in the table. If, upon resetting this attribute, the new size is greater than the old size, new columns are added at the right. If the new size is less than the old size, the excess columns are discarded.

COLUMNSELECTIONALLOWED

Allowed Values Meaning
true, false Sets whether to allow selecting columns. Default is true.

CONTENT

Allowed Values Meaning
<row>, <column>, <string>[;<row>, <column>, <string>]* In JTable: set the value of the cell at <row> and <column> to <string>.
file:<filename> In JTable: load the table with the values in the comma-separated value (CSV) file <filename>.
http://<location> In JTable: set the value of a cell to the string at <location>. (Note: not yet implemented in prerelease v0.4.)
jdbc://<db query> In JTable: set the value of cells to the values resulting from <db query>. (Note: not yet implemented in prerelease v0.4.)

GRIDCOLOR

Allowed Values Meaning
black, blue, cyan, darkGray, gray, green, lightGray, magenta, orange, pink, red, white, yellow Sets the color of the table's grid lines to a 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). Sets the color of the table's grid lines 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 non-negative integer Sets the color of the table's grid lines 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). Sets the color of the table's grid lines 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 Sets the color of the table's grid lines to 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.)

HEADER_COLUMNS

Allowed Values Meaning
<header_string>[,<header_string>] In JTable: set the table's column headers.

If COLUMNS is not explicitly set, then the JTable is rendered with the number of header names in HEADER_COLUMNS.

If COLUMNS is explicitly set, then the number of header names must be less than or equal to the value of the COLUMNS attribute.

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.

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.

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.

ROWS

Allowed Values Meaning
A positive integer With JTable: The number of rows in the table. If, upon resetting this attribute, the new size is greater than the old size, new rows are added at the bottom. If the new size is less than the old size, the excess rows are discarded.

ROWSELECTIONALLOWED

Allowed Values Meaning
true, false Sets whether to allow selecting rows. Default is true.

SCROLLABLE_HEIGHT

Allowed Values Meaning
A positive integer The height of the table's view area, in pixels.

SCROLLABLE_WIDTH

Allowed Values Meaning
A positive integer The height of the table's view area, in pixels.

SHOWGRID

Allowed Values Meaning
true, false Sets whether or not to show grid lines around table cells. Default is true.

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.

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)