public abstract class AbstractSelectField extends FormField<AbstractSelectField>
| Modifier and Type | Field and Description |
|---|---|
protected List<SelectFieldItem> |
options |
tagPropertieschildElements, nextRenderer, stylesproperties| Modifier | Constructor and Description |
|---|---|
protected |
AbstractSelectField(String id)
Instantiates a new
AbstractSelectField instance. |
| Modifier and Type | Method and Description |
|---|---|
void |
addOption(SelectFieldItem option)
Add an option to the element.
|
void |
addOption(SelectFieldItem option,
boolean selected)
Add an option to the element.
|
SelectFieldItem |
getOption(String value)
Get an option
SelectFieldItem by its string value. |
List<SelectFieldItem> |
getOptions()
Get a list of
SelectFieldItem. |
boolean |
hasExportAndDisplayValues()
Checks if the field has options with export and display values.
|
boolean |
hasOptions()
Checks if the element has any options.
|
int |
optionsCount()
Gets the total amount of options available.
|
getDefaultProperty, getId, setHeight, setInteractive, setSize, setValue, setWidthaddStyle, createRendererSubTree, getChildren, getProperty, getRenderer, hasProperty, isEmpty, makeNewRenderer, setAction, setNextRenderer, setPageNumberdeleteOwnProperty, getOwnProperty, getSplitCharacters, getStrokeColor, getStrokeWidth, getTextRenderingMode, hasOwnProperty, setBackgroundColor, setBackgroundColor, setBackgroundColor, setBackgroundColor, setBackgroundImage, setBackgroundImage, setBaseDirection, 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, setLineThrough, setOpacity, setProperty, setRelativePosition, setSplitCharacters, setStrokeColor, setStrokeWidth, setTextAlignment, setTextRenderingMode, setUnderline, setUnderline, setUnderline, setUnderline, setWordSpacing, simulateBold, simulateItalicclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetChildrencreateRendererSubTree, getRenderer, setNextRendererdeleteOwnProperty, getOwnProperty, getProperty, hasOwnProperty, hasProperty, setPropertygetAccessibilityPropertiesprotected List<SelectFieldItem> options
protected AbstractSelectField(String id)
AbstractSelectField instance.id - the id of the fieldpublic void addOption(SelectFieldItem option)
option - a SelectFieldItempublic void addOption(SelectFieldItem option, boolean selected)
option - a SelectFieldItemselected - true is the option if selected, false otherwisepublic List<SelectFieldItem> getOptions()
SelectFieldItem.public int optionsCount()
public boolean hasOptions()
public SelectFieldItem getOption(String value)
SelectFieldItem by its string value.value - string value to find an option bySelectFieldItem.public boolean hasExportAndDisplayValues()
true if the field has options with export and display values, false otherwise.Copyright © 1998–2024 Apryse Group NV. All rights reserved.