18 package org.turro.zkoss.layout;
20 import java.util.ArrayList;
21 import java.util.List;
22 import org.zkoss.zk.ui.Component;
23 import org.zkoss.zul.Hbox;
24 import org.zkoss.zul.Vbox;
30 public class HboxV extends Hbox {
32 private int maxCols, currentCol;
36 this.maxCols = maxCols;
41 cols =
new Vbox[maxCols];
42 for(
int i = 0; i < maxCols; i++) {
46 if(currentCol >= maxCols) currentCol = 0;
47 cols[currentCol].appendChild(comp);
52 List list =
new ArrayList();
53 for(Component v : (List<Component>) getChildren()) {
54 list.addAll(v.getChildren());
void addComponent(Component comp)