BrightSide Workbench Full Report + Source Code
org.turro.zkoss.layout.HboxV Class Reference
Inheritance diagram for org.turro.zkoss.layout.HboxV:
Collaboration diagram for org.turro.zkoss.layout.HboxV:

Public Member Functions

 HboxV (int maxCols)
 
void addComponent (Component comp)
 
List getRealChildren ()
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 30 of file HboxV.java.

Constructor & Destructor Documentation

◆ HboxV()

org.turro.zkoss.layout.HboxV.HboxV ( int  maxCols)

Definition at line 35 of file HboxV.java.

35  {
36  this.maxCols = maxCols;
37  }

Member Function Documentation

◆ addComponent()

void org.turro.zkoss.layout.HboxV.addComponent ( Component  comp)

Definition at line 39 of file HboxV.java.

39  {
40  if(cols == null) {
41  cols = new Vbox[maxCols];
42  for(int i = 0; i < maxCols; i++) {
43  cols[i] = new Vbox();
44  }
45  }
46  if(currentCol >= maxCols) currentCol = 0;
47  cols[currentCol].appendChild(comp);
48  currentCol++;
49  }

◆ getRealChildren()

List org.turro.zkoss.layout.HboxV.getRealChildren ( )

Definition at line 51 of file HboxV.java.

51  {
52  List list = new ArrayList();
53  for(Component v : (List<Component>) getChildren()) {
54  list.addAll(v.getChildren());
55  }
56  return list;
57  }

The documentation for this class was generated from the following file: