Constructor and Description |
---|
Select(java.util.Collection<Option<K,V>> options)
Build the list of options from a collection.
|
Select(java.util.Collection<Option<K,V>> options,
java.util.Set<K> selected)
Build the list of options from a collection, selecting by default the elements that show up in the set.
|
Select(java.util.Collection<Option<K,V>> options,
java.util.Set<K> selected,
java.lang.String sIndent)
Build the list of options from a collection, selecting by default the elements that show up in the set,
indenting options that have level>0 with some string.
|
Select(java.util.Collection<Option<K,V>> options,
java.util.Set<K> selected,
java.lang.String sIndent,
BasePage pOption)
Build the list of options from a collection, selecting by default the elements that show up in the set,
indenting options that have level>0 with some string.
|
Select(java.util.Collection<Option<K,V>> options,
java.util.Set<K> selected,
java.lang.String sIndent,
BasePage pOption,
OptionFormatter formatter)
Build the list of options from a collection, selecting by default the elements that show up in the set,
indenting options that have level>0 with some string.
|
Modifier and Type | Method and Description |
---|---|
java.lang.StringBuilder |
getContents()
Get the (dynamic) content.
|
public Select(java.util.Collection<Option<K,V>> options)
options
- list of optionspublic Select(java.util.Collection<Option<K,V>> options, java.util.Set<K> selected)
options
- list of optionsselected
- list of selected items. Can be null
.public Select(java.util.Collection<Option<K,V>> options, java.util.Set<K> selected, java.lang.String sIndent)
options
- list of optionsselected
- list of selected items. Can be null
.sIndent
- indentation to be appended for each level (can be null
or empty string if you don't want indentation based on the level).public Select(java.util.Collection<Option<K,V>> options, java.util.Set<K> selected, java.lang.String sIndent, BasePage pOption)
sIndent
options
- list of optionsselected
- list of selected items. Can be null
.sIndent
- indentation to be appended for each level (can be null
or empty string if you don't want indentation based on the level).pOption
- a page that has the following tags : 'key', 'selected', 'indent' and 'value'. Can be null
, if you want to use the built-in simple template.public Select(java.util.Collection<Option<K,V>> options, java.util.Set<K> selected, java.lang.String sIndent, BasePage pOption, OptionFormatter formatter)
sIndent
options
- list of optionsselected
- list of selected items. Can be null
.sIndent
- indentation to be appended for each level (can be null
or empty string if you don't want indentation based on the level).pOption
- a page that has the following tags : 'key', 'selected', 'indent' and 'value'. Can be null
, if you want to use the built-in simple template.formatter
- line extra formatterpublic java.lang.StringBuilder getContents()
Page
getContents
in interface Page