Field Summary |
public
| ay |
|
|
|
| tabActions: Array |
| Authoring Parameter - Action's to execute when the tab is clicked (optional)
|
|
| tabIcons: Array |
| Authoring Parameter - Icons for tabs (optional)
|
|
| tabIds: Array |
| Authoring Parameter - Id's for tabs (optional)
|
|
| tabLabels: Array |
| Authoring Parameter - Labels for tabs (optional)
|
|
| tabSources: Array |
| Authoring Parameter - Source for panel content (optional)
|
|
| 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
| dataProvider: Object (read, write) |
| Gets or sets an array of tab descriptors
|
|
public
| itemsSource: ListDataSource (read, write) |
| Gets or sets an itemsSource
|
|
| 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
| TabBase (
)
|
| Constructor - This should not be called directly.
|
|
Method Summary |
public
| addChild (
compDesc: Object
): Object |
| Adds a child control to a container
|
|
public
| addTab (
params: Object
): String |
| Add a Tab
|
|
public
| createChild (
className: Object, instanceName: String, initProps: Object
): Object |
| Adds a child control to a container
|
|
public
| getContent (
index: Number
): MovieClip |
| Returns a reference to the content in the specified panel
|
|
public
| getPanel (
index: Number
): Object |
| Get a reference to the tab panel using the tabs index
|
|
public
| getPanelById (
pId: String
): Object |
| Get a reference to the tab panel using the tabs Id
|
|
public
| getTab (
index: Number
): Object |
| Get a reference to the tab button using the tabs index
|
|
public
| getTabById (
mId: String
): Object |
| Get a reference to the tab button using the tabs Id
|
|
public
| getUIBuilder (
) |
| Reference to the UIBuilder object
|
|
public
| loadContent (
src: String, index: Number
): Void |
| Loads or attaches the content
|
|
| 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 |
|
|
Although subclasses may be visually quite different the underlying structure is the same.
Each consists of a TabBar object and a TabPanels object.
TabBar contains Tabs, a series of Buttons which control which panels are viewable.
TabPanels contains panels, which are Frame objects wich contains the actual content, accesed via its content property.
The getTab and getTabPanel and getContent give you access to the relevant objects.
The control is usually setup by assigning an array of TabDescriptors to its items or itemsSource property.
The TabDescriptor is defined by each subclass but commonly consists of label, icon, source, action and id properties.
The label is the text to display in the tab.
The icon is a linkageId of a graphical object to display in the tab.
The source is the linkageId or swf/jpg url to be loaded as content into the panel.
The action is the action or command to execute when a tab is clicked. If not set this is by default "expand".
The id is the instance id property that can be used with the getTabById and getPanelById properties.
All properties except label are optional.
Event summary for the TabBase class
The following table lists events of the TabBase class.