public class ComboBoxField extends AbstractSelectField
optionschildElements, nextRenderer, stylesproperties| Constructor and Description |
|---|
ComboBoxField(String id)
Creates a new select field box.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addOption(SelectFieldItem option)
Add an option to the element.
|
String |
getSelectedExportValue()
Gets the export value of the selected option.
|
SelectFieldItem |
getSelectedOption()
Gets the selected option.
|
protected IRenderer |
makeNewRenderer() |
ComboBoxField |
setSelected(int index)
Selects an option by its index.
|
ComboBoxField |
setSelected(SelectFieldItem item)
Selects an option by its value.
|
ComboBoxField |
setSelected(String value)
Selects an option by its export value.
|
addOption, addOption, getItems, getOption, getOptions, hasExportAndDisplayValues, hasOptions, optionsCountgetDefaultProperty, getId, setHeight, setInteractive, setSize, setValue, setWidthaddStyle, createRendererSubTree, getChildren, getProperty, getRenderer, hasProperty, isEmpty, setAction, setNextRenderer, setPageNumberdeleteOwnProperty, getOwnProperty, getSplitCharacters, getStrokeColor, getStrokeWidth, getTextRenderingMode, hasOwnProperty, setBackgroundColor, setBackgroundColor, setBackgroundColor, setBackgroundColor, setBackgroundImage, setBackgroundImage, setBaseDirection, setBold, setBorder, setBorderBottom, setBorderBottomLeftRadius, setBorderBottomRightRadius, setBorderLeft, setBorderRadius, setBorderRight, setBorderTop, setBorderTopLeftRadius, setBorderTopRightRadius, setCharacterSpacing, setDestination, setFixedPosition, setFixedPosition, setFixedPosition, setFixedPosition, setFont, setFontColor, setFontColor, setFontColor, setFontFamily, setFontFamily, setFontKerning, setFontScript, setFontSize, setHorizontalAlignment, setHyphenation, setItalic, setLineThrough, setOpacity, setProperty, setRelativePosition, setSplitCharacters, setStrokeColor, setStrokeWidth, setTextAlignment, setTextRenderingMode, setUnderline, setUnderline, setUnderline, setUnderline, setWordSpacingclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetChildrencreateRendererSubTree, getRenderer, setNextRendererdeleteOwnProperty, getOwnProperty, getProperty, hasOwnProperty, hasProperty, setPropertypublic ComboBoxField(String id)
id - the idpublic String getSelectedExportValue()
public ComboBoxField setSelected(int index)
index - the index of the option to select.ComboBoxField instance.IndexOutOfBoundsException - if the index is out of bounds.public ComboBoxField setSelected(String value)
value - the export value of the option to select.ComboBoxField instance.public ComboBoxField setSelected(SelectFieldItem item)
item - the option to select.ComboBoxField instance.public void addOption(SelectFieldItem option)
addOption in class AbstractSelectFieldoption - a SelectFieldItem.public SelectFieldItem getSelectedOption()
protected IRenderer makeNewRenderer()
makeNewRenderer in class AbstractElement<AbstractSelectField>Copyright © 1998–2024 Apryse Group NV. All rights reserved.