public class ListBoxField extends AbstractSelectField
optionschildElements, nextRenderer, stylesproperties| Constructor and Description |
|---|
ListBoxField(String id,
int size,
boolean allowMultipleSelection)
Create a new list box field.
|
| Modifier and Type | Method and Description |
|---|---|
ListBoxField |
addOption(String option)
Add an option for
ListBoxField. |
ListBoxField |
addOption(String option,
boolean selected)
Add an option for
ListBoxField. |
<T1> T1 |
getDefaultProperty(int property) |
List<String> |
getSelectedStrings()
Get a list of selected options.
|
protected IRenderer |
makeNewRenderer() |
addOption, addOption, addOption, getItems, getOption, getOptions, hasExportAndDisplayValues, hasOptions, optionsCountgetId, 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 ListBoxField(String id, int size, boolean allowMultipleSelection)
size - the size of the list box, which will define the height of visible properties,
shall be greater than zeroallowMultipleSelection - a boolean flag that defines whether multiple options are allowed
to be selected at onceid - the idpublic <T1> T1 getDefaultProperty(int property)
FormFieldgetDefaultProperty in interface IPropertyContainergetDefaultProperty in class FormField<AbstractSelectField>property - public ListBoxField addOption(String option)
ListBoxField. The option is not selected.option - string representation of the option.ListBoxField.public ListBoxField addOption(String option, boolean selected)
ListBoxField.option - string representation of the option.selected - true is the option if selected, false otherwise.ListBoxField.public List<String> getSelectedStrings()
protected IRenderer makeNewRenderer()
makeNewRenderer in class AbstractElement<AbstractSelectField>Copyright © 1998–2024 Apryse Group NV. All rights reserved.