|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectlazyj.widgets.Select<K,V>
K - key type (hidden ID field). Usually Integer or String.V - value type. Usually String.public class Select<K,V>
Build the options for a select HTML tag.
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
java.lang.StringBuilder |
getContents()
Get the (dynamic) content. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Select(java.util.Collection<Option<K,V>> options)
options - list of options
public 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 formatter| Method Detail |
|---|
public java.lang.StringBuilder getContents()
Page
getContents in interface Page
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||