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

Public Member Functions

 VboxH (int maxRows)
 
int getMaxRows ()
 
void setMaxRows (int maxRows)
 
void addComponent (Component comp)
 
List getRealChildren ()
 
void clear ()
 

Detailed Description

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

Definition at line 30 of file VboxH.java.

Constructor & Destructor Documentation

◆ VboxH()

org.turro.zkoss.layout.VboxH.VboxH ( int  maxRows)

Definition at line 35 of file VboxH.java.

35  {
36  this.maxRows = maxRows;
37  }

Member Function Documentation

◆ addComponent()

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

Definition at line 47 of file VboxH.java.

47  {
48  if(currentBox == null || currentRow >= maxRows) {
49  currentBox = new Vlayout();
50  currentRow = 0;
51  appendChild(currentBox);
52  }
53  currentBox.appendChild(comp);
54  currentRow++;
55  }
Here is the caller graph for this function:

◆ clear()

void org.turro.zkoss.layout.VboxH.clear ( )

Reimplemented in org.turro.zkoss.input.CollectionCheckbox< V >.

Definition at line 65 of file VboxH.java.

65  {
66  getChildren().clear();
67  currentBox = null;
68  currentRow = 0;
69  }

◆ getMaxRows()

int org.turro.zkoss.layout.VboxH.getMaxRows ( )

Definition at line 39 of file VboxH.java.

39  {
40  return maxRows;
41  }

◆ getRealChildren()

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

Definition at line 57 of file VboxH.java.

57  {
58  List list = new ArrayList();
59  for(Component v : (List<Component>) getChildren()) {
60  list.addAll(v.getChildren());
61  }
62  return list;
63  }
Here is the caller graph for this function:

◆ setMaxRows()

void org.turro.zkoss.layout.VboxH.setMaxRows ( int  maxRows)

Definition at line 43 of file VboxH.java.

43  {
44  this.maxRows = maxRows;
45  }

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