public abstract class AbstractSelectField extends FormField<AbstractSelectField>
| Modifier and Type | Field and Description |
|---|---|
protected List<SelectFieldItem> |
options |
childElements, nextRenderer, stylesproperties| Modifier | Constructor and Description |
|---|---|
protected |
AbstractSelectField(String id) |
| Modifier and Type | Method and Description |
|---|---|
void |
addOption(IBlockElement optionElement)
Deprecated.
starting from 8.0.1.
|
void |
addOption(SelectFieldItem option)
Add an option to the element.
|
void |
addOption(SelectFieldItem option,
boolean selected)
Add an option to the element.
|
List<SelectFieldItem> |
getItems()
Get a list of
SelectFieldItem. |
SelectFieldItem |
getOption(String value)
Get an option
SelectFieldItem by its string value. |
List<IBlockElement> |
getOptions()
Deprecated.
starting from 8.0.1.
|
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, 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, setPropertyprotected List<SelectFieldItem> options
protected AbstractSelectField(String id)
@Deprecated public void addOption(IBlockElement optionElement)
optionElement - a container with options.public void addOption(SelectFieldItem option)
option - a SelectFieldItem.public void addOption(SelectFieldItem option, boolean selected)
option - a SelectFieldItem.selected - true is the option if selected, false otherwise.public List<SelectFieldItem> getItems()
SelectFieldItem.public int optionsCount()
public boolean hasOptions()
public SelectFieldItem getOption(String value)
SelectFieldItem by its string value.value - string value to find an option by.SelectFieldItem.@Deprecated public List<IBlockElement> getOptions()
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.