Field Summary |
| __itemStyle |
|
|
|
public static
| classInfo: Object |
| A static class information object
|
|
| dataItems: Array |
| Authoring Parameter - Data for list items
|
|
| labels: Array |
| Authoring Parameter - Labels for list items
|
|
public
| selectedItem: Object |
| Gets or sets the selected item of the group
|
|
public
| selectedValue: Object |
| Gets or sets the selected value of the group
|
|
public
| tabStop: Boolean |
| Gets or sets whether a control should be included in tab navigation.
|
|
| 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
| columns: Number (read, write) |
| The number of columns to use in laying out the controls
|
|
public
| flowOrientation: String (read, write) |
| Gets or sets a value that indicates the direction that elements flow within the container
|
|
public
| groupName: String (read-only)
|
| Gets the group name for this button group. The groupName is an alias for the _name of the control.
|
|
public
| items: Array (read, write) |
| Gets or sets an array of tab descriptors
|
|
public
| itemsSource: ListDataSource (read, write) |
| Gets or sets an itemsSource
|
|
public
| itemStyle: (write)
|
| A component descriptor for items in the list
|
|
public
| itemStyle: Object (read)
|
|
|
|
public
| labelPosition: Object (read, write) |
| Controls the placement of the label
|
|
public
| labelText: String (read, write) |
| The text content of the label
|
|
public
| selectedIndex: Number (read, write) |
| The index of a selection in a single-selection list.
|
|
| 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
| ButtonList (
)
|
| Constructor - This should not be called directly.
|
|
Method Summary |
public
| addItem (
item: Object
): Void |
| Adds an item to the end of the list.
|
|
public
| getClass (
): Function |
| Returns a reference to the components static class
|
|
public
| setGroupItems (
items: Array, selectedIndex: Number
): Void |
| Adds an array of pre-created items to the list
|
|
public
| setNext (
inc: Number
): Void |
| Moves the selection and focus to the next item in the group.
|
|
public
| setSelectedItem (
item: Object
): Void |
| Sets the selected item in the list
|
|
| 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 |
|
|
All ButtonList can operate in two modes; either bydirectly creating component within it own container or by managing an exisiting set of controls on the parent container.
At run time when the ButtonList loads if a valid items or itemsSource exists then it will search its parent container for groupItems.
Whether a control is part of this lists group is determined by comparing the name of the control to the lists group name
For example a ButtonList called creditCards would match with group items called creditCards01,creditCards02,creditCards03