JSTabPanel

Extends

JSComponent

Constants Summarized

Type
Name
Summary

Constant used for creating accordion panel from tab panel, by setting its tabOrientation.

Constant used for restoring a tab panel orientation to it's initial state.

Constant used for creating a tab panel that does not show tabs, by setting its tabOrientation.

Constant used for creating horizontal split pane from tab panel, by setting its tabOrientation.

Constant used for creating vertical split pane from tab panel, by setting its tabOrientation.

Properties Summarized

Type
Name
Summary

Enables a component to stick to a specific side of form and/or to grow or shrink when a window is resized.

The background color of the component.

The type, color and style of border of the component.

CSS position is a replacement for anchoring system making it more intuitive to place a component.

The enable state of the component, default true.

The font type of the component.

The foreground color of the component.

The Z index of this component.

A String representing a group ID for this component.

The height in pixels of the component.

The name of the component.

Method to be executed when the selected tab is changed in the tab panel or divider position is changed in split pane.

Flag that tells how to arrange the tabs if they don't fit on a single line.

The name of the style class that should be applied to this component.

Specifies either the position of the tabs related to the tab panel or the type of tab-panel.

An index that specifies the position of the component in the tab sequence.

Flag that tells if the component is transparent or not.

The visible property of the component, default true.

The width in pixels of the component.

The x coordinate of the component on the form.

The y coordinate of the component on the form.

Methods Summarized

Type
Name
Summary

Get the value of an attribute of the element.

Returns the attribute names of an element.

Returns the comment of this component.

Get a design-time property of an element.

Get the design-time properties of an element.

Returns the name of the form.

Returns a JSTab instance representing the tab which has the specified name.

Returns an array of JSTab instances holding the tabs of the tab panel.

Returns the UUID of this component.

Adds a new tab with the text label and JSForm.

Adds a new tab with the text label and JSForm and JSRelation (can be null for unrelated).

Set a design-time property of an element.

Remove the attribute of an element.

Clear a design-time property of an element.

void

Removes the tab with the specified name from the tab panel.

void

Set the attribute value of an element.

Constants Detailed

ACCORDION_PANEL

Constant used for creating accordion panel from tab panel, by setting its tabOrientation.

Type Number

Sample

var accordion = myForm.newTabPanel('accordion', 10, 10, 620, 460);
accordion.tabOrientation = JSTabPanel.ACCORDION_PANEL;

DEFAULT_ORIENTATION

Constant used for restoring a tab panel orientation to it's initial state.

Type Number

Sample

var splitPane = myForm.newTabPanel('splitPane', 10, 10, 620, 460);
splitPane.tabOrientation = JSTabPanel.SPLIT_HORIZONTAL;
// (...) some code when you decide it's better to revert the orientation
splitPane.tabOrientation = JSTabPanel.DEFAULT_ORIENTATION;

HIDE

Constant used for creating a tab panel that does not show tabs, by setting its tabOrientation.

Type Number

Sample

var splitPane = myForm.newTabPanel('splitPane', 10, 10, 620, 460);
splitPane.tabOrientation = JSTabPanel.HIDE;

SPLIT_HORIZONTAL

Constant used for creating horizontal split pane from tab panel, by setting its tabOrientation.

Type Number

Sample

var splitPane = myForm.newTabPanel('splitPane', 10, 10, 620, 460);
splitPane.tabOrientation = JSTabPanel.SPLIT_HORIZONTAL;

SPLIT_VERTICAL

Constant used for creating vertical split pane from tab panel, by setting its tabOrientation.

Type Number

Sample