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

Public Member Functions

 ProposalRow (GenericAttribute attribute)
 
void setGridDestination (Contact contact)
 
void updateContent ()
 

Detailed Description

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

Definition at line 36 of file ProposalRow.java.

Constructor & Destructor Documentation

◆ ProposalRow()

org.turro.contacts.zul.proposal.ProposalRow.ProposalRow ( GenericAttribute  attribute)

Definition at line 40 of file ProposalRow.java.

40  {
41  this.attribute = attribute;
42  }

Member Function Documentation

◆ setGridDestination()

void org.turro.contacts.zul.proposal.ProposalRow.setGridDestination ( Contact  contact)

Definition at line 44 of file ProposalRow.java.

44  {
45  ProposalGrid pg = (ProposalGrid) ProposalRow.this.getGrid();
46  pg.setDestination(contact);
47  Events.postEvent(new Event(Events.ON_SELECT, pg));
48  }
ProposalRow(GenericAttribute attribute)
Here is the call graph for this function:

◆ updateContent()

void org.turro.contacts.zul.proposal.ProposalRow.updateContent ( )

Definition at line 50 of file ProposalRow.java.

50  {
51  addDetail();
52 
53  Hbox hbox = new Hbox();
54  hbox.setAlign("center");
55  appendChild(hbox);
56 
57  final Checkbox active = new Checkbox();
58  active.setChecked(attribute.isActive());
59  active.addEventListener(Events.ON_CHECK, new EventListener() {
60  @Override
61  public void onEvent(Event event) throws Exception {
62  attribute.setActive(active.isChecked());
63  }
64  });
65  hbox.appendChild(active);
66  Label l = new Label(attribute.getAttributeName());
67  l.setSclass("attrName");
68  hbox.appendChild(l);
69  l = new Label(attribute.getAsString());
70  l.setSclass("attrValue");
71  hbox.appendChild(l);
72  }
Here is the call graph for this function:

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