- Author
- Lluis Turró Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
- Parameters
-
Definition at line 32 of file CollectionListbox.java.
◆ CollectionListbox() [1/2]
◆ CollectionListbox() [2/2]
◆ beforeAppend()
◆ convertToString()
◆ equals()
◆ getCollection()
◆ getNullLabel()
◆ isAllowNull()
◆ isNullAtBottom()
◆ populateList()
Reimplemented from org.turro.zkoss.input.GenericListbox< V >.
Reimplemented in org.turro.financials.document.DocumentListbox, and org.turro.financials.document.DocumentLinesListbox.
Definition at line 95 of file CollectionListbox.java.
98 if(collection ==
null)
return;
99 if(allowNull && !nullAtBottom) {
100 Listitem li =
new Listitem(
"<" + I_.get(nullLabel) +
">",
null);
105 if(getListhead() !=
null && !getListhead().getChildren().isEmpty()) {
106 cells = getListhead().getChildren().size();
108 for(V v : collection) {
111 Listitem li =
new Listitem();
114 String ssa[] = s.split(SUBITEM_SEPARATOR_REGEX);
116 Listcell cell =
new Listcell(ssa[0]);
117 li.appendChild(cell);
118 Vlayout vbox =
new Vlayout();
119 vbox.setStyle(
"padding:2px");
120 for(
int i = 1; i < ssa.length; i++) {
121 vbox.appendChild(LabelTypes.getSoftLabel(ssa[i]));
123 cell.appendChild(vbox);
125 if(s !=
null && s.endsWith(SUBITEM_SEPARATOR)) {
126 s = s.replaceAll(SUBITEM_SEPARATOR_REGEX,
"");
128 li.appendChild(
new Listcell(s));
139 if(allowNull && nullAtBottom) {
140 Listitem li =
new Listitem(
"<" + I_.get(nullLabel) +
">",
null);
◆ setAllowNull()
◆ setCollection()
◆ setNullAtBottom()
◆ setNullLabel()
◆ updateCollection() [1/2]
◆ updateCollection() [2/2]
◆ ITEM_SEPARATOR
The documentation for this class was generated from the following file: