BrightSide Workbench Full Report + Source Code
org.turro.contacts.organigram.OrganigramVM Class Reference

Public Member Functions

void init (@ExecutionArgParam("contact") IContact contact)
 
IContact getContact ()
 
TreeModel getModel ()
 

Detailed Description

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

Definition at line 44 of file OrganigramVM.java.

Member Function Documentation

◆ getContact()

IContact org.turro.contacts.organigram.OrganigramVM.getContact ( )

Definition at line 62 of file OrganigramVM.java.

62  {
63  return contact;
64  }

◆ getModel()

TreeModel org.turro.contacts.organigram.OrganigramVM.getModel ( )

Definition at line 66 of file OrganigramVM.java.

66  {
67  if(contact == null) return new DefaultTreeModel(null);
68  return new DefaultTreeModel(new DefaultTreeNode(
69  I_.get("Organigram"), initTreeModel(), true));
70  }
Here is the call graph for this function:

◆ init()

void org.turro.contacts.organigram.OrganigramVM.init ( @ExecutionArgParam("contact") IContact  contact)

Definition at line 49 of file OrganigramVM.java.

49  {
50  if(contact != null) {
51  this.contact = contact;
52  } else {
53  Object attrContact = Executions.getCurrent().getAttribute("contact");
54  if(attrContact instanceof Contact) {
55  this.contact = ((Contact) attrContact).getIContact();
56  } else if(attrContact instanceof IContact) {
57  this.contact = (IContact) attrContact;
58  }
59  }
60  }
Here is the call graph for this function:

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