Package com.oorian.html.elements
Class Select<T extends Select<T>>
java.lang.Object
com.oorian.html.Element<T>
com.oorian.html.VisualElement<T>
com.oorian.html.StyledElement<T>
com.oorian.html.elements.InputElement<T>
com.oorian.html.elements.Select<T>
Represents the HTML
<select> element for creating dropdown selection lists.
The Select class provides a Java representation of the HTML select element, which creates a dropdown list of options from which users can choose. It supports both single and multiple selection modes, dynamic option management, and provides comprehensive methods for managing the selected state and retrieving values in various data types.
Features:
- Dynamic option addition and removal
- Selection by index, text, or value
- Support for initial placeholder text
- Type-safe value retrieval (int, long, float, double, boolean)
- Multiple selection support
- Selected option and options list access
- Automatic value synchronization
- Event-driven selection change handling
- Reset capability to restore initial state
Usage Example:
// Create a country selector
Select countrySelect = new Select("country");
countrySelect.setInitialText("-- Select Country --");
countrySelect.addOption("US", "United States");
countrySelect.addOption("CA", "Canada");
countrySelect.addOption("MX", "Mexico");
countrySelect.setSelectedValue("US");
// Create a number selector with typed retrieval
Select quantitySelect = new Select("quantity");
quantitySelect.addOption(1, "One");
quantitySelect.addOption(2, "Two");
quantitySelect.addOption(5, "Five");
quantitySelect.addOption(10, "Ten");
int quantity = quantitySelect.getSelectedValueAsInt();
// Create a select with option groups
Select carSelect = new Select("car");
carSelect.setInitialText("-- Choose a car --");
OptGroup swedish = new OptGroup();
swedish.setLabel("Swedish Cars");
swedish.addOption(new Option("volvo", "Volvo"));
swedish.addOption(new Option("saab", "Saab"));
carSelect.addOptGroup(swedish);
OptGroup german = new OptGroup();
german.setLabel("German Cars");
german.addOption(new Option("mercedes", "Mercedes"));
german.addOption(new Option("audi", "Audi"));
carSelect.addOptGroup(german);
- Since:
- 2007
- Version:
- 1.0
- Author:
- Marvin P. Warble Jr.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidaddOptGroup(OptGroup group) Adds an option group to this select element.final voidAdds an Option object to this select element.final voidAdds an option where the value is used as both value and display text.final voidAdds an option with the specified value and display text.final intReturns the number of options in this select element.Returns all options in this select element, including options within option groups.final intReturns the index of the currently selected option.final OptionReturns the currently selected Option.Returns all selected options (for multiple select).final StringReturns the display text of the selected option.final StringReturns the value of the selected option.final booleanReturns the selected value as a boolean.final doubleReturns the selected value as a double.final floatReturns the selected value as a float.final intReturns the selected value as an integer.final longReturns the selected value as a long.final shortReturns the selected value as a short.final ObjectgetValue(int index) Returns the value of the option at the specified index.protected voidonSelectedIndexSet(int index) Called when the selected index is programmatically set.protected voidonSelectedValueSet(Object value) Called when the selected value is programmatically set.final voidonSelectionChange(int index, String value) Called when the selection changes from the client.final voidonSelectionInitialized(int index, String value) Called when the selection is first initialized from the client.final voidRemoves all options and option groups from this select element.final voidremoveOption(int index) Removes the option at the specified index.final voidremoveOptionByText(String text) Removes the option with the specified display text.final voidremoveOptionByValue(Object value) Removes the option with the specified value.booleanreset()Resets the selection to its initial state.final voidsetInitialText(String text) Sets the initial placeholder text shown before a selection is made.final voidsetSelectedIndex(int index) Sets the selected option by index.final voidsetSelectedText(String text) Sets the selected option by matching display text.final voidsetSelectedValue(Object value) Sets the selected option by matching value.Methods inherited from class com.oorian.html.elements.InputElement
associateLabel, focus, getAutoComplete, getDirName, getFormAction, getFormEncType, getFormMethod, getFormTarget, getMax, getMaxLength, getMin, getMinLength, getName, getPlaceholder, getSize, getValue, isFormNoValidate, isMultiple, isReadOnly, isRequired, onValueChange, onValueInitialized, onValueUpdate, setAccept, setAutocomplete, setCapture, setChecked, setDescription, setDirName, setDisabled, setErrorDisplay, setForm, setFormAction, setFormEncType, setFormEncType, setFormMethod, setFormMethod, setFormNoValidate, setFormTarget, setFormTarget, setHasError, setList, setMax, setMaxLength, setMaxLength, setMin, setMinLength, setMultiple, setName, setPattern, setPlaceholder, setReadOnly, setRequired, setRequiredAccessible, setSize, setStep, setValueMethods inherited from class com.oorian.html.StyledElement
addClass, addStyle, addStyle, addStyleAttribute, addTransition, animate, clearTransitions, getActiveStyle, getCssClass, getDisabledStyle, getFocusStyle, getFocusVisibleStyle, getHoverStyle, getHtml, getStyle, getStyleAttribute, hidden, hide, initialize, isDisplayed, isTransitionForwardActive, onHide, onRemovedFromPage, onShow, removeClass, setActiveStyle, setAlignContent, setAlignContent, setAlignItems, setAlignItems, setAlignSelf, setAlignSelf, setAnimation, setAnimationDelay, setAnimationDelay, setAnimationDelay, setAnimationDirection, setAnimationDirection, setAnimationDuration, setAnimationDuration, setAnimationDuration, setAnimationFillMode, setAnimationFillMode, setAnimationIterationCount, setAnimationIterationCount, setAnimationIterationCount, setAnimationName, setAnimationPlayState, setAnimationPlayState, setAnimationTimingFunction, setAnimationTimingFunction, setAnimationTimingFunction, setAnimationTimingFunction, setBackdropFilter, setBackdropFilter, setBackfaceVisibility, setBackfaceVisibility, setBackground, setBackground, setBackgroundAttachment, setBackgroundAttachment, setBackgroundBlendMode, setBackgroundBlendMode, setBackgroundClip, setBackgroundClip, setBackgroundColor, setBackgroundColor, setBackgroundColor, setBackgroundImage, setBackgroundImage, setBackgroundOrigin, setBackgroundOrigin, setBackgroundPosition, setBackgroundPosition, setBackgroundPosition, setBackgroundPosition, setBackgroundPosition, setBackgroundRepeat, setBackgroundRepeat, setBackgroundSize, setBackgroundSize, setBackgroundSize, setBackgroundSize, setBackgroundSize, setBlur, setBorder, setBorder, setBorder, setBorder, setBorder, setBorder, setBorder, setBorder, setBorder, setBorderBottom, setBorderBottom, setBorderBottom, setBorderBottom, setBorderBottom, setBorderBottom, setBorderBottom, setBorderBottom, setBorderBottomColor, setBorderBottomColor, setBorderBottomLeftRadius, setBorderBottomLeftRadius, setBorderBottomLeftRadius, setBorderBottomRightRadius, setBorderBottomRightRadius, setBorderBottomRightRadius, setBorderBottomStyle, setBorderBottomStyle, setBorderBottomWidth, setBorderBottomWidth, setBorderBottomWidth, setBorderBottomWidth, setBorderColor, setBorderColor, setBorderColor, setBorderColor, setBorderImage, setBorderImage, setBorderImageOutset, setBorderImageRepeat, setBorderImageSlice, setBorderImageSource, setBorderImageWidth, setBorderLeft, setBorderLeft, setBorderLeft, setBorderLeft, setBorderLeft, setBorderLeft, setBorderLeft, setBorderLeft, setBorderLeftColor, setBorderLeftColor, setBorderLeftStyle, setBorderLeftStyle, setBorderLeftWidth, setBorderLeftWidth, setBorderLeftWidth, setBorderLeftWidth, setBorderRadius, setBorderRadius, setBorderRadius, setBorderRadius, setBorderRadius, setBorderRadius, setBorderRight, setBorderRight, setBorderRight, setBorderRight, setBorderRight, setBorderRight, setBorderRight, setBorderRight, setBorderRightColor, setBorderRightColor, setBorderRightStyle, setBorderRightStyle, setBorderRightWidth, setBorderRightWidth, setBorderRightWidth, setBorderRightWidth, setBorderStyle, setBorderStyle, setBorderTop, setBorderTop, setBorderTop, setBorderTop, setBorderTop, setBorderTop, setBorderTop, setBorderTop, setBorderTopColor, setBorderTopColor, setBorderTopLeftRadius, setBorderTopLeftRadius, setBorderTopLeftRadius, setBorderTopRightRadius, setBorderTopRightRadius, setBorderTopRightRadius, setBorderTopStyle, setBorderTopStyle, setBorderTopWidth, setBorderTopWidth, setBorderTopWidth, setBorderTopWidth, setBorderWidth, setBorderWidth, setBorderWidth, setBorderWidth, setBorderWidth, setBorderWidth, setBorderWidth, setBottom, setBottom, setBottom, setBoxShadow, setBoxShadow, setBoxShadow, setBoxShadow, setBoxShadow, setBoxSizing, setBoxSizing, setBreakAfter, setBreakBefore, setBreakInside, setBrightness, setClass, setClear, setClear, setClip, setClipPath, setClipPath, setColGap, setColGap, setColor, setColor, setColumnCount, setColumnCount, setColumnFill, setColumnFill, setColumnGap, setColumnRule, setColumnRuleColor, setColumnRuleColor, setColumnRuleStyle, setColumnRuleStyle, setColumnRuleWidth, setColumnRuleWidth, setColumns, setColumns, setColumns, setColumnSpan, setColumnWidth, setColumnWidth, setColumnWidth, setContrast, setCounterIncrement, setCounterReset, setCursor, setCursor, setDirection, setDirection, setDisabledStyle, setDisplay, setDisplay, setFilter, setFilter, setFilterOpacity, setFlex, setFlexBasis, setFlexDirection, setFlexDirection, setFlexFlow, setFlexGrow, setFlexGrow, setFlexShrink, setFlexShrink, setFlexWrap, setFlexWrap, setFloat, setFloat, setFocusStyle, setFocusVisibleStyle, setFont, setFont, setFont, setFont, setFont, setFont, setFont, setFont, setFont, setFont, setFont, setFont, setFontFace, setFontFamily, setFontFamily, setFontFeatureSettings, setFontKerning, setFontLanguageOverride, setFontSize, setFontSize, setFontSize, setFontSizeAdjust, setFontStretch, setFontStretch, setFontStyle, setFontStyle, setFontSynthesis, setFontVariant, setFontVariant, setFontVariantAlternates, setFontVariantCaps, setFontVariantEastAsian, setFontVariantLigatures, setFontVariantNumeric, setFontVariantPosition, setFontWeight, setFontWeight, setGap, setGap, setGap, setGap, setGrayscale, setHangingPunctuation, setHangingPunctuation, setHeight, setHeight, setHeight, setHoverStyle, setHueRotate, setHyphens, setImageOrientation, setImageRendering, setImageResolution, setImeMode, setInvert, setJustifyContent, setJustifyContent, setKeyFrames, setLeft, setLeft, setLeft, setLetterSpacing, setLetterSpacing, setLetterSpacing, setLetterSpacing, setLineBreak, setLineHeight, setLineHeight, setLineHeight, setLineHeight, setMargin, setMargin, setMargin, setMargin, setMargin, setMarginBottom, setMarginBottom, setMarginBottom, setMarginLeft, setMarginLeft, setMarginLeft, setMarginRight, setMarginRight, setMarginRight, setMarginTop, setMarginTop, setMarginTop, setMark, setMarkAfter, setMarkBefore, setMarks, setMarqueeDirection, setMarqueePlayCount, setMarqueeSpeed, setMarqueeStyle, setMask, setMaskType, setMaxHeight, setMaxHeight, setMaxHeight, setMaxHeightToWindowHeight, setMaxWidth, setMaxWidth, setMaxWidth, setMaxWidthToWindowWidth, setMinHeight, setMinHeight, setMinHeight, setMinHeightToWindowHeight, setMinWidth, setMinWidth, setMinWidth, setMinWidthToWindowWidth, setNavDown, setNavIndex, setNavIndex, setNavLeft, setNavRight, setNavUp, setObjectFit, setObjectPosition, setOnClickNavigateBack, setOnClickNavigateBack, setOnClickNavigateBack, setOnClickNavigateForward, setOnClickNavigateForward, setOnClickNavigateForward, setOnClickNavigateTo, setOnDblClick, setOnDblClickChange, setOpacity, setOpacity, setOrder, setOrder, setOrphans, setOutline, setOutline, setOutline, setOutline, setOutlineColor, setOutlineColor, setOutlineOffset, setOutlineOffset, setOutlineOffset, setOutlineStyle, setOutlineStyle, setOutlineWidth, setOutlineWidth, setOutlineWidth, setOutlineWidth, setOverflow, setOverflow, setOverflow, setOverflowWrap, setOverflowX, setOverflowX, setOverflowY, setOverflowY, setPadding, setPadding, setPadding, setPadding, setPadding, setPadding, setPadding, setPadding, setPaddingBottom, setPaddingBottom, setPaddingBottom, setPaddingLeft, setPaddingLeft, setPaddingLeft, setPaddingRight, setPaddingRight, setPaddingRight, setPaddingTop, setPaddingTop, setPaddingTop, setPageBreakAfter, setPageBreakAfter, setPageBreakBefore, setPageBreakBefore, setPageBreakInside, setPageBreakInside, setPerspective, setPerspective, setPerspective, setPerspectiveOrigin, setPerspectiveOrigin, setPerspectiveOrigin, setPerspectiveOrigin, setPhonemes, setPosition, setPosition, setPosition, setPosition, setPosition, setQuotes, setResize, setResize, setResizeToWindowHeight, setResizeToWindowHeight, setResizeToWindowWidth, setRest, setRestAfter, setRestBefore, setRight, setRight, setRight, setRotate, setRotate, setRowGap, setRowGap, setSaturate, setScale, setScale, setSepia, setShow, setSize, setSize, setSize, setSkewX, setSkewY, setStyle, setStyle, setTabSize, setTabSize, setTabSize, setTabSize, setTextAlign, setTextAlign, setTextAlignLast, setTextAlignLast, setTextCombineUpright, setTextCombineWeight, setTextDecoration, setTextDecoration, setTextDecorationColor, setTextDecorationColor, setTextDecorationLine, setTextDecorationLine, setTextDecorationStyle, setTextDecorationStyle, setTextIndent, setTextIndent, setTextIndent, setTextIndent, setTextJustify, setTextJustify, setTextOrientation, setTextOverflow, setTextOverflow, setTextSelectDisabled, setTextShadow, setTextShadow, setTextShadow, setTextShadow, setTextShadow, setTextTransform, setTextTransform, setTextUnderlinePosition, setTop, setTop, setTop, setTransform, setTransform, setTransformOrigin, setTransformOrigin, setTransformOrigin, setTransformOrigin, setTransformOrigin, setTransformStyle, setTransformStyle, setTransition, setTransitionDelay, setTransitionDelay, setTransitionDelay, setTransitionDuration, setTransitionDuration, setTransitionDuration, setTransitionProperty, setTransitionTimingFunction, setTransitionTimingFunction, setTransitionTimingFunction, setTransitionTimingFunction, setTranslateX, setTranslateY, setTranslateZ, setUnicodeBidi, setUnicodeBidi, setVerticalAlign, setVerticalAlign, setVisibility, setVisibility, setVoiceBalance, setVoiceDuration, setVoicePitch, setVoicePitchRange, setVoiceRate, setVoiceStress, setVoiceVolume, setWhiteSpace, setWhiteSpace, setWidows, setWidth, setWidth, setWidth, setWordBreak, setWordBreak, setWordSpacing, setWordSpacing, setWordSpacing, setWordSpacing, setWordWrap, setWordWrap, setWritingMode, setZIndex, setZIndex, show, shown, stopAnimation, transitionForward, transitionForward, transitionReverse, transitionReverse, updateStyle, updateStyle, updateStyleIfChangedMethods inherited from class com.oorian.html.VisualElement
clearOnClick, click, disable, enable, getAccessKey, getAutoCapitalize, getEnterKeyHint, getInputMode, getPopover, getRole, getTabIndex, getTitle, isAutoFocus, isContentEditable, isDisabled, isDraggable, isHidden, isInert, isSpellCheck, onDisabled, onEnabled, setAccessKey, setAriaAtomic, setAriaBusy, setAriaChecked, setAriaCheckedMixed, setAriaControls, setAriaCurrent, setAriaDescribedBy, setAriaDisabled, setAriaErrorMessage, setAriaExpanded, setAriaHasPopup, setAriaHasPopup, setAriaHidden, setAriaInvalid, setAriaLabel, setAriaLabelledBy, setAriaLevel, setAriaLive, setAriaModal, setAriaOwns, setAriaPressed, setAriaRequired, setAriaSelected, setAriaValueRange, setAriaValueText, setAutoCapitalize, setAutoFocus, setConsumeEvent, setContentEditable, setDraggable, setDropAllowed, setEnterKeyHint, setFocus, setHidden, setInert, setInputMode, setOnAnimationCancel, setOnAnimationEnd, setOnAnimationIteration, setOnAnimationStart, setOnAuxClick, setOnBeforeInput, setOnBeforeToggle, setOnBlur, setOnChange, setOnClick, setOnClickChange, setOnCompositionEnd, setOnCompositionStart, setOnCompositionUpdate, setOnContextMenu, setOnCopy, setOnCut, setOnDocumentResize, setOnFocus, setOnFocusIn, setOnFocusOut, setOnFormData, setOnGotPointerCapture, setOnInput, setOnInvalid, setOnKeyDown, setOnKeyPressed, setOnKeyUp, setOnLostPointerCapture, setOnMouseDown, setOnMouseEnter, setOnMouseLeave, setOnMouseMove, setOnMouseOut, setOnMouseOutChangeClass, setOnMouseOutChangeStyle, setOnMouseOutChangeStyle, setOnMouseOver, setOnMouseOverChangeClass, setOnMouseOverChangeStyle, setOnMouseOverChangeStyle, setOnMouseOverShow, setOnMouseUp, setOnPageLoad, setOnPaste, setOnPointerCancel, setOnPointerDown, setOnPointerEnter, setOnPointerLeave, setOnPointerMove, setOnPointerOut, setOnPointerOver, setOnPointerUp, setOnResize, setOnScroll, setOnScrollEnd, setOnSelect, setOnSelectionChange, setOnSelectStart, setOnToggle, setOnTouchCancel, setOnTouchEnd, setOnTouchMove, setOnTouchStart, setOnTransitionCancel, setOnTransitionEnd, setOnTransitionRun, setOnTransitionStart, setOnWheel, setOnWindowResize, setPopover, setRole, setRole, setSpellCheck, setTabIndex, setTitle, setTooltipMethods inherited from class com.oorian.html.Element
addAttribute, addAttribute, addAttribute, addAttribute, addElement, addLineBreak, addLineOfText, addLineOfText, addLineOfText, addParagraph, addParagraph, addSpacer, addText, addText, addText, addText, assignId, containsElement, containsElement, create, dispatchEvent, dispatchEvent, dispatchEvent, dispatchEvent, equals, excludeId, executeJs, executeJs, executeJs, getAccept, getAllElements, getAncestor, getAttribute, getAttributes, getComponent, getDir, getElement, getElementById, getElementCount, getElementCount, getElements, getElements, getElementsByComponentName, getElementsByTagName, getHtml, getId, getInnerHtml, getInnerHtml, getIs, getItemId, getItemProp, getItemRef, getItemType, getLang, getNextSibling, getPage, getParent, getPart, getPrevSibling, getSlot, getTagName, getTextContent, getUrl, hasAttribute, hasElements, insertElement, isChildOf, isClosedTag, isCreated, isDescendantOf, isDescendantOf, isInitialized, isItemScope, isTranslate, onCallback, onCreated, onElementAdded, onElementRemoved, onHashChange, onHidden, onInitialized, onJsReturn, onPageLoaded, onPageUnloaded, onRefresh, onShown, onUpdated, onUserEvent, prewrite, recreate, refresh, refresh, registerAddition, registerListener, registerListener, registerListener, registerListener, registerListener, registerListener, registerListener, registerSubtraction, registerUpdate, removeAllElements, removeAttribute, removeAttribute, removeElement, removeElement, removeFromParent, requestCallback, requestCallback, requestCallback, requestCallback, resetId, scrollTo, scrollToBottom, scrollToTop, self, sendCommand, sendUpdate, setComponent, setDir, setDir, setElement, setId, setIs, setItemId, setItemProp, setItemRef, setItemScope, setItemType, setLang, setOnError, setOnLoad, setPage, setParent, setPart, setSlot, setTagName, setText, setText, setText, setText, setTranslate, toString, unregisterListener, update, updateAttributes
-
Constructor Details
-
Select
public Select()Creates a new empty Select element. -
Select
Creates a new Select element with the specified name.- Parameters:
name- the form field name
-
-
Method Details
-
setInitialText
Sets the initial placeholder text shown before a selection is made. The placeholder option is disabled and cannot be selected.- Parameters:
text- the placeholder text to display
-
addOption
Adds an option with the specified value and display text.- Parameters:
value- the option valuetext- the text to display
-
addOption
Adds an option where the value is used as both value and display text.- Parameters:
value- the option value and display text
-
addOption
Adds an Option object to this select element.- Parameters:
option- the Option to add
-
addOptGroup
Adds an option group to this select element.The OptGroup and all of its contained
Optionelements are added to this select. Options within the group are automatically included in selection tracking, so methods likegetSelectedIndex(),setSelectedValue(Object), andgetSelectedOption()work across all options regardless of grouping.- Parameters:
group- the OptGroup to add
-
setSelectedIndex
public final void setSelectedIndex(int index) Sets the selected option by index.- Parameters:
index- the zero-based index of the option to select
-
setSelectedText
Sets the selected option by matching display text.- Parameters:
text- the display text of the option to select, or null to deselect
-
setSelectedValue
Sets the selected option by matching value.- Parameters:
value- the value of the option to select, or null to deselect
-
removeAllOptions
public final void removeAllOptions()Removes all options and option groups from this select element. -
removeOption
public final void removeOption(int index) Removes the option at the specified index.- Parameters:
index- the zero-based index of the option to remove
-
removeOptionByValue
Removes the option with the specified value.- Parameters:
value- the value of the option to remove
-
removeOptionByText
Removes the option with the specified display text.- Parameters:
text- the display text of the option to remove
-
getSelectedIndex
public final int getSelectedIndex()Returns the index of the currently selected option.- Returns:
- the zero-based selected index
-
getSelectedOption
Returns the currently selected Option.- Returns:
- the selected Option, or null if none selected
-
getSelectedOptions
Returns all selected options (for multiple select).- Returns:
- a list of selected Option objects
-
getSelectedText
Returns the display text of the selected option.- Returns:
- the selected text, or null if none selected
-
getSelectedValue
Returns the value of the selected option.- Returns:
- the selected value, or null if none selected
-
getSelectedValueAsInt
public final int getSelectedValueAsInt()Returns the selected value as an integer.- Returns:
- the selected value parsed as int, or 0 if null
-
getSelectedValueAsLong
public final long getSelectedValueAsLong()Returns the selected value as a long.- Returns:
- the selected value parsed as long, or 0 if null
-
getSelectedValueAsShort
public final short getSelectedValueAsShort()Returns the selected value as a short.- Returns:
- the selected value parsed as short, or 0 if null
-
getSelectedValueAsFloat
public final float getSelectedValueAsFloat()Returns the selected value as a float.- Returns:
- the selected value parsed as float, or 0 if null
-
getSelectedValueAsDouble
public final double getSelectedValueAsDouble()Returns the selected value as a double.- Returns:
- the selected value parsed as double, or 0 if null
-
getSelectedValueAsBoolean
public final boolean getSelectedValueAsBoolean()Returns the selected value as a boolean.- Returns:
- the selected value parsed as boolean, or false if null
-
getValue
Returns the value of the option at the specified index.- Parameters:
index- the zero-based option index- Returns:
- the option value
-
getNumberOfOptions
public final int getNumberOfOptions()Returns the number of options in this select element.- Returns:
- the option count
-
getOptions
Returns all options in this select element, including options within option groups.- Returns:
- a list of all Option objects
-
onSelectionInitialized
Called when the selection is first initialized from the client.- Parameters:
index- the initial selected indexvalue- the comma-separated list of selected values
-
onSelectionChange
Called when the selection changes from the client.- Parameters:
index- the new selected indexvalue- the comma-separated list of selected values
-
reset
public boolean reset()Resets the selection to its initial state.- Overrides:
resetin classInputElement<T extends Select<T>>- Returns:
- true if the value was changed
-
onSelectedIndexSet
protected void onSelectedIndexSet(int index) Called when the selected index is programmatically set. Override this method to add custom behavior.- Parameters:
index- the new selected index
-
onSelectedValueSet
Called when the selected value is programmatically set. Override this method to add custom behavior.- Parameters:
value- the new selected value
-