A TitledTab is a tab that has support for text, icon and a custom Swing component
(called title component). Titled tab supports several properties that makes it possible
to change the look (borders, colors, insets), layout (up, down, left, right).
Titled tab has a line based layout, i.e. the text, icon and title component are
laid out in a line. The layout of the tab can be rotated, i.e. the text and the icon will
be rotated 90, 180 or 270 degrees. The title component will not be rotated but moved so
that the line layout will persist.
A titled tab has 3 rendering states:
- Normal - The tab is selectable but not yet selected
- Highlighted - The tab is either highlighted or selected
- Disabled - The tab is disabled and cannot be selected or highlighted
Most of the properties for the tab can be configured for each of the tab rendering
states.
Note: If only the normal state properties have been configured, the
highlighted and disabled state will automatically use the same properties as for the normal
state, see
TitledTabProperties and
TitledTabStateProperties .
TitledTab implements the
net.infonode.gui.icon.IconProvider interface and
overloads toString() so that both text and icon for the normal state is shown in the
tab drop down list in a tabbed panel.
TitledTab supports mouse hovering. A
HoverListener can be set in the
TitledTabProperties . The hover listener receives a
HoverEvent when the mouse
enters or exits the tab. The hover event's source will be the affected titled tab.
author: $Author: jesper $ version: $Revision: 1.88 $ See Also: TitledTabProperties See Also: TitledTabStateProperties |