Parameters for whole of the applet.
1. Applet attributes
ACTTAB_HEIGHT / INACTTAB_HEIGHT
Heights of active/nonactive tabs. Default values: 18/16
BGCOLOR / FGCOLOR
Colors of background and labels in HTML format. Default values: '#FFFFFF' / '#000000'
FONT
Font of the applet in java format. Default font is 'Verdana-16-plain'
IMAGE_WIDTH / IMAGE_HEIGHT
Size of tabs images. Default size is 8x8
MULTILINE
If MULTILINE=1 tabs will be arranged into several lines
AUTOSTRETCH
For single-line tabbar only. Stretchs tabs into all width of applets area.
2. User-defined tabs images
You can customize tabapplet with help of images, wich will be displayed on applets tabs. For this you should specify all set of next parameters:
| Name | Description |
|---|---|
| L_ACT / L_INACT | Image name for left border of active/inactive tabs. 2 pixels width. |
| M_ACT / M_INACT | Medium part of active/inactive tabs |
| R_ACT / R_INACT | Image name for right border of active/inactive tabs. 2 pixels width. |
SELECTED_ITEM
Identifier of item, wich will be selected after loading
3. Tabs items properties
To populate tabs with data you should specify for every item set of required parameters, listed below.
| Name | Required | Description |
|---|---|---|
| ITEMi | Yes | Identifier of tab element |
| TEXTi | Yes | Label of tab element |
| IMAGEi | No | Path to image on tab element (starts from applets location) |
4. Action processing
ON_SELECT
The name of Java script function, wich will be called when tab switched into selected state. Function receives single parameter - identifier of tab.
ON_UNSELECT
The name of Java script function, wich will be called when tab switched into non-selected state. Function receives single parameter - identifier of tab.
ON_LOAD
The name of Java script function, wich will be called when tab is loaded and starting.
Applet functions
void selectTab(String id)
Switches specified tab into selected state
String getSelectedTab()
Returns identifier of selected tab
int getSelectedTabNum()
Returns zero-based index of selected tab.
void addTab(String id, String name [, String image] )
Inserts new tab with specified properties into tabpanel