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

Public Member Functions

 RelationLayout (Contact contact)
 
void setOnClick (Consumer< Contact > onClick)
 
void fillContactInfo ()
 
void fill ()
 
HtmlBasedComponent getIcon (boolean validated)
 
boolean hasContent ()
 

Detailed Description

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

Definition at line 44 of file RelationLayout.java.

Constructor & Destructor Documentation

◆ RelationLayout()

org.turro.contacts.zul.relation.RelationLayout.RelationLayout ( Contact  contact)

Definition at line 50 of file RelationLayout.java.

50  {
51  this.contact = contact;
52  }

Member Function Documentation

◆ fill()

void org.turro.contacts.zul.relation.RelationLayout.fill ( )

Definition at line 85 of file RelationLayout.java.

85  {
86  process(ContactRelations.getRelations(contact.getId(), ContactRelations.MODE_ALL));
87  }
Here is the call graph for this function:

◆ fillContactInfo()

void org.turro.contacts.zul.relation.RelationLayout.fillContactInfo ( )

Definition at line 58 of file RelationLayout.java.

58  {
59  processContactInfo(ContactRelations.getRelations(contact.getId(), ContactRelations.MODE_ALL));
60  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getIcon()

HtmlBasedComponent org.turro.contacts.zul.relation.RelationLayout.getIcon ( boolean  validated)

Definition at line 129 of file RelationLayout.java.

129  {
130  A a = new A();
131  a.setStyle("cursor:none;");
132  if(validated) {
133  a.setIconSclass("z-icon-check");
134  } else {
135  a.setIconSclass("z-icon-times");
136  }
137  return a;
138  }

◆ hasContent()

boolean org.turro.contacts.zul.relation.RelationLayout.hasContent ( )

Definition at line 140 of file RelationLayout.java.

140  {
141  return hasContent;
142  }

◆ setOnClick()

void org.turro.contacts.zul.relation.RelationLayout.setOnClick ( Consumer< Contact onClick)

Definition at line 54 of file RelationLayout.java.

54  {
55  this.onClick = onClick;
56  }

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