Field Summary |
public
| autoSync: Boolean |
| Controls whether the selectedIndex of the control and the dataProvider are automatically kept in sync
|
|
public
| canSelectWhileClosed: Boolean |
| Can items be selected while the dropdown is closed
|
|
public static
| classInfo: Object |
| A static class information object
|
|
public
| disableAcceptButton: Boolean |
| Disables the global accept button whilst this control has focus
|
|
public
| disableCancelButton: Boolean |
| Disables the global cancel button whilst this control has focus
|
|
public
| displayBindings: Object |
| A binding definition for the combobox display
|
|
public
| displayIconFormatFunction: Object |
| The format function object for the display icon field
|
|
public
| displayIconFormatter: Object |
| The formatter object for the display icon field
|
|
public
| displayIconFormatterOptions: Object |
| The formatter options object for the display icon field
|
|
public
| displayIconPath: String |
| The path or fieldName of the display icon field
|
|
public
| displayLabelFormatFunction: Object |
| The format function object for the display label field
|
|
public
| displayLabelFormatter: Object |
| The formatter object for the display label field
|
|
public
| displayLabelFormatterOptions: Object |
| The formatter options object for the display label field
|
|
public
| displayLabelPath: String |
| The path or fieldName of the display label field
|
|
public
| iconFormatFunction: Object |
| The format function object for the icon field
|
|
public
| iconFormatter: Object |
| The formatter object for the icon field
|
|
public
| iconPath: String |
| The path or field of the icon field
|
|
public
| initialMsg: String |
| Get or set the initial message displayed when there is no seleected item.
|
|
public
| itemBindings: Object |
| The DataBinding for the listItems
|
|
public
| keySearch: String |
| Controls the type of key search support enabled.
|
|
public
| keySearchPath: String |
| The data path in the item to the search key value
|
|
public
| labelFormatFunction: Object |
| The format function object for the label field
|
|
public
| labelFormatter: Object |
| The formatter object for the label field
|
|
public
| labelPath: String |
| The path or fieldName of the label field
|
|
public
| listData: Array |
| Authoring Parameter - Data for List Items (optional)
|
|
public
| listIcons: Array |
| Authoring Parameter - Icons for List Items (optional)
|
|
public
| listLabels: Array |
| Authoring Parameter - Labels for List Items (optional)
|
|
public
| raiseCommitOnClose: Boolean |
| Controls when the change event will be sent in response to selection changes
|
|
public
| selectedValueBinding: Object |
| The DataBinding for the selected item
|
|
public
| selectedValueFormatFunction: Object |
| The format function object for the value field
|
|
public
| selectedValueFormatter: Object |
| The formatter object for the value field
|
|
public
| selectedValuePath: String |
| The data path in the selected Item to the value
|
|
public
| showSearchSelection: Boolean |
| Controls whether the current search is show by selecting the text in the control
|
|
public
| styleClass: String |
| The name of the style class this instance will use.
|
|
public
| tabStop: Boolean |
| ComboBox's are by default a tabStop
|
|
public
| virtualMode: Boolean |
| Get or set the virtual mode
|
|
|
|
| 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 set the dataProvider
|
|
public
| dropdownWidth: Number (read, write) |
| Gets or set the width of the drop down list
|
|
public
| editable: Boolean (read, write) |
| Indicates whether the combo box is editable (true) or not (false).
|
|
public
| itemsSource: ListDataSource (read, write) |
| Gets or set the ListDataSource
|
|
public
| itemStyle (read, write) |
| The list item style
|
|
public
| length: Number (read-only)
|
| Number of items in the dataProvider.
|
|
public
| restrict: String (read, write) |
|
|
|
public
| rowCount: Number (read, write) |
| Gets or set the number of visble rows in the drop down list
|
|
public
| rowHeight: Number (read, write) |
| The default pixel height of rows in the list.
|
|
public
| selectedIndex: Number (read, write) |
| The index of a selection in a single-selection list.
|
|
public
| selectedItem: Object (read, write) |
| The selected item in a single-selection list.
|
|
public
| selectedValue: Object (read, write) |
| The value from the currently selected item
|
|
public
| value: Object (read, write) |
| If the combo box is editable, value returns the value of the text box.
|
|
|
| Properties inherited from class xp.controls.TextBasefont, fontBold, fontColor, fontEmbed, fontFamily, fontItalic, fontName, fontSize, fontStyle, fontUnderline, fontWeight, text, textAlign, textDecoration, textWrap |
|
| 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
| ComboBox (
)
|
| Constructor - This should not be called directly.
|
|
Method Summary |
public
| clearSelected (
): Void |
| Clears all selected indices
|
|
public
| close (
refocus: Boolean
): Void |
| Closes the drop down list
|
|
public
| drawComponent (
): Void |
| layout combo
|
|
public
| getClass (
): Function |
| Returns a reference to the components static class
|
|
public
| getItemAt (
index
) |
| given an index find the item from the source
|
|
public
| getItemIndex (
item: Object
) |
| given an item find its index
|
|
public
| getItemsArray (
labels: Array, icons: Array, data: Array
): Array |
| Gets the items array from 3 native type arrays
|
|
public
| getItemValue (
v
): Object |
| given an item find its value
|
|
public
| getValueIndex (
value: Object
) |
| given a value find its index
|
|
public static
| newInstance (
owner, instanceId, depth, initObj
) |
| Creates a new Instance of this class
|
|
public
| onEnabledChanged (
state: Boolean
): Void |
| Override to sync the button and the internal textField enabled state
|
|
public
| open (
): Void |
| Open the drop down list
|
|
public
| toggleList (
): Void |
| Toggles the display of the drop down
|
|
|
|
| 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 |
|
|
When a selection is made in the list, the label of the selection is copied to the text field at the top of the combo box. It doesn’t matter if the selection is made with the mouse or the keyboard.
A ComboBox component receives focus if you click the label or the button
The following table lists events of the ComboBox class.