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.Hlayout;
24 import org.zkoss.zul.Vlayout;
30 public class VboxH extends Hlayout {
32 private int maxRows, currentRow;
33 private Vlayout currentBox;
36 this.maxRows = maxRows;
44 this.maxRows = maxRows;
48 if(currentBox ==
null || currentRow >= maxRows) {
49 currentBox =
new Vlayout();
51 appendChild(currentBox);
53 currentBox.appendChild(comp);
58 List list =
new ArrayList();
59 for(Component v : (List<Component>) getChildren()) {
60 list.addAll(v.getChildren());
66 getChildren().clear();
void addComponent(Component comp)
void setMaxRows(int maxRows)