BrightSide Workbench Full Report + Source Code
org.turro.contacts.zul.contact.AddressGrid Class Reference
Inheritance diagram for org.turro.contacts.zul.contact.AddressGrid:
Collaboration diagram for org.turro.contacts.zul.contact.AddressGrid:

Public Member Functions

 AddressGrid ()
 
void setContact (Contact contact)
 
void setAddToolbar (boolean addToolbar)
 
void addRows ()
 

Detailed Description

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

Definition at line 38 of file zul/contact/AddressGrid.java.

Constructor & Destructor Documentation

◆ AddressGrid()

org.turro.contacts.zul.contact.AddressGrid.AddressGrid ( )

Definition at line 45 of file zul/contact/AddressGrid.java.

45  {
46  rows = new Rows();
47  appendChild(rows);
48  }

Member Function Documentation

◆ addRows()

void org.turro.contacts.zul.contact.AddressGrid.addRows ( )

Definition at line 66 of file zul/contact/AddressGrid.java.

66  {
67  for(Address a : contact.getAddresses()) {
68  Row row = new Row();
69  row.setValue(a);
70  rows.appendChild(row);
71 
72  addRow(a, row);
73  }
74  }
Set< Address > getAddresses()
Definition: Contact.java:355
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setAddToolbar()

void org.turro.contacts.zul.contact.AddressGrid.setAddToolbar ( boolean  addToolbar)

Definition at line 58 of file zul/contact/AddressGrid.java.

58  {
59  if(addToolbar) {
60  toolbar = new Toolbar();
61  getParent().appendChild(toolbar);
62  addToolbarButtons();
63  }
64  }

◆ setContact()

void org.turro.contacts.zul.contact.AddressGrid.setContact ( Contact  contact)

Definition at line 50 of file zul/contact/AddressGrid.java.

50  {
51  this.contact = contact;
52  rows.getChildren().clear();
53  if(contact != null) {
54  addRows();
55  }
56  }
Here is the call graph for this function:

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