Field Summary |
public
| centerPanelContent: Boolean |
| Should panel content be automatically centered when loaded
|
|
public static
| classInfo: Object |
| A static class information object
|
|
public
| initialPanelIndex: Number |
| The index of the panel that will be initialy displayed
|
|
public
| itemHeight: Number |
| The height of the tabs/tabbar
|
|
public
| itemSpacing: Number |
| The spacing between tabs
|
|
public
| styleClass: String |
| The name of the style class this instance will use.
|
|
|
| Fields inherited from class xp.system.UIControl__layout, allowDrop, autoLayout, bindingDefaultValue, bindingFormatter, bindingPath, bindingSource, bindingType, bindingValidator, border, causesValidation, classInfo, clickOnENTER, clickOnSPACE, container, context, data, disableAcceptButton, disableCancelButton, enableBGMouseEvents, enableDblClickEvent, enableKeyDownEvents, enableKeyEvents, enableKeyUpEvents, enableMouseWheelEvents, formatterOptions, horizontalAlignment, index, isBinding, itemId, logEnabled, parent, parentContainer, parentForm, percentageHeight, percentageWidth, styleClass, tabIndex, tabStop, tooltip, tree, verticalAlignment |
|
Property Summary |
public
| activePanel: Object (read-only)
|
| The currently displayed panel
|
|
|
| Properties inherited from class xp.system.UIControlalpha, autosize, background, backgroundVisible, bindings, borderBrush, borderRadius, borderShadow, borderStyle, borderThickness, bottom, dataSource, enableMouseEvents, focusManager, height, id, isEnabled, isFocused, isMouseOver, isPressed, isSelected, isValid, layout, left, margin, maxHeight, maxWidth, measuredHeight, measuredMinHeight, measuredMinWidth, measuredWidth, minHeight, minWidth, padding, readOnly, resources, right, styleName, top, triggers, visible, width, x, y |
|
Constructor |
public
| TabPanel (
)
|
| Constructor - This should not be called directly.
|
|
Method Summary |
public
| addTab (
params: Object
): Object |
| Add a tab to the tabbar array
|
|
public
| getClass (
): Function |
| Returns a reference to the components static class
|
|
public static
| newInstance (
owner, instanceId, depth, initObj
) |
| Creates a new Instance of this class
|
|
public
| showPanel (
index
) |
| Displays a panel
|
|
public
| showPanelById (
mId: String
): Void |
| Displays a panel
|
|
|
| Methods inherited from class xp.system.UIControladdBinding, addBindings, addEventListener, addPropertyTrigger, applyStyle, beginDeferUpdate, canUpdate, centerContent, checkState, containsFocus, destroy, destroyObject, drawFocus, endDeferUpdate, findFocusFromObject, findFocusInChildren, getBinding, getBounds, getCenter, getClass, getFocus, getFocusManager, getFocusRect, getLocation, getPropertyValue, getSize, getStateName, getTrigger, globalToLocalPoint, invalidate, invalidateLayout, invalidateSize, invalidateSizeAndLayout, invalidChild, isChild, isMouseDirectlyOver, isParent, localToGlobalPoint, localToLocalPoint, measure, mouseWheel, move, onChildFocus, onKillFocus, onSetFocus, processEnterKey, processEscapeKey, processTabKey, redraw, refresh, removeEventListener, routeEvent, setBounds, setFocus, setLocation, setPropertyValue, setSize, setValueChanged, update, validate |
|
|
The label is the text to display on the tab.
The icon is the linkageId of a graphic icon to display on the tab (Optional).
The source is the linkageId or swf/jpg url to be loaded as content. If no source is specified an empty panel is created.
Optionaly an id property can be included and this will be used as the id of the panel when created.
The TabDescriptor may contain other user defined properties and will be passed as the data object on panel events.
If the TabDescriptor contains a data property then that property will be passed on panel events instead of the full TabDescriptor.
You can set the following authoring parameters for each TabPanel component instance in the Property inspector or in the Component inspector:
tabLabels An array that specifies the text labels to use in the tab.
The default value is [] (an empty array).
tabIcons An array that specifies the linkage identifiers of the library symbols to be used as the icons in the tab. The default value is [] (an empty array).
tabSources An array that specifies the linkage identifiers of the library symbols or the url of an external swf or jpg to be loaded into the panel content. The default value is [] (an empty array).
Event summary for the TabPanel class
The following table lists events of the TabPanel class.