BrightSide Workbench Full Report + Source Code
org.turro.financials.contract.ContractDefinitionTree Class Reference
Inheritance diagram for org.turro.financials.contract.ContractDefinitionTree:
Collaboration diagram for org.turro.financials.contract.ContractDefinitionTree:

Public Member Functions

 ContractDefinitionTree ()
 
- Public Member Functions inherited from org.turro.zkoss.tree.GenericTree< V >
void afterCompose ()
 
void clearItems ()
 
void setObjectValue (V value)
 
getObjectValue ()
 
void selectItemByText (String text)
 
void showItem (Treeitem item)
 

Protected Member Functions

void populateList ()
 
- Protected Member Functions inherited from org.turro.zkoss.tree.GenericTree< V >
boolean equals (V value, V obj)
 
void addTreeitem (Treeitem parent, Treeitem child)
 

Additional Inherited Members

- Protected Attributes inherited from org.turro.zkoss.tree.GenericTree< V >
boolean populated = false
 

Detailed Description

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

Definition at line 35 of file ContractDefinitionTree.java.

Constructor & Destructor Documentation

◆ ContractDefinitionTree()

org.turro.financials.contract.ContractDefinitionTree.ContractDefinitionTree ( )

Definition at line 40 of file ContractDefinitionTree.java.

40  {
41  ctcDefs = new ArrayList(ContractDefinitionWrapper.getContractDefinitions());
42  addChildrenSpace();
43  addEventListener(Events.ON_SELECT, new EventListener() {
44  @Override
45  public void onEvent(Event event) {
46  Treeitem ti = getSelectedItem();
47  if(!ti.isEmpty()) {
48  ti.setOpen(true);
49  event.stopPropagation();
50  }
51  }
52  });
53  }
Here is the call graph for this function:

Member Function Documentation

◆ populateList()

void org.turro.financials.contract.ContractDefinitionTree.populateList ( )
protected

Reimplemented from org.turro.zkoss.tree.GenericTree< V >.

Definition at line 56 of file ContractDefinitionTree.java.

56  {
57  Treeitem n1, n2;
58  n1 = new Treeitem("Proveïdor (suministres, mercaderies, serveis, inversions, municipi)");
59  n1.setOpen(false);
60  children.appendChild(n1);
61  addChildTo(n1, 55);
62  addChildTo(n1, 48);
63  //n2 = addChildTo(n1, "De suministres (aigua, llum, telefonía, material, etc.)");
64  //addChildTo(n2, 14);
65  //addChildTo(n2, 13);
66  //addChildTo(n2, 12);
67  //addChildTo(n2, 42);
68  //addChildTo(n2, 49);
69  //addChildTo(n2, 15);
70  //addChildTo(n2, 16);
71  //addChildTo(n2, 21);
72  //addChildTo(n2, 20);
73  //addChildTo(n2, 27);
74  //addChildTo(n2, 18);
75  //addChildTo(n2, 52);
76  //n2 = addChildTo(n1, "De mercaderies (productes en general per posar-los a la venda)");
77  //addChildTo(n2, 48);
78  //n2 = addChildTo(n1, "De serveis (Advocats, notaris, dissenyadors, arquitectes, assesors, arrendadors, mutues, etc.)");
79  //addChildTo(n2, 22);
80  //addChildTo(n2, 17);
81  //addChildTo(n2, 41);
82  //addChildTo(n2, 34);
83  //addChildTo(n2, 31);
84  //addChildTo(n2, 24);
85  //addChildTo(n2, 19);
86  //addChildTo(n2, 51);
87  //n2 = addChildTo(n1, "De inversions");
88  //addChildTo(n2, 25);
89  n1 = new Treeitem("Client (Clients en general)");
90  n1.setOpen(false);
91  children.appendChild(n1);
92  addChildTo(n1, 56);
93  //addChildTo(n1, 40);
94  //addChildTo(n1, 6);
95  //addChildTo(n1, 7);
96  addChildTo(n1, 23);
97  addChildTo(n1, 47);
98  n1 = new Treeitem("Banc (Comptes corrents, tarjetes de crèdit, estalvi, etc.)");
99  n1.setOpen(false);
100  children.appendChild(n1);
101  addChildTo(n1, 1);
102  addChildTo(n1, 2);
103  addChildTo(n1, 44);
104  addChildTo(n1, 45);
105  addChildTo(n1, 46);
106  addChildTo(n1, 50);
107  n1 = new Treeitem("Prestecs (Prestecs a llarc plaç, leasings)");
108  n1.setOpen(false);
109  children.appendChild(n1);
110  addChildTo(n1, 35);
111  addChildTo(n1, 43);
112  addChildTo(n1, 53);
113  n1 = new Treeitem("Gestoria (Gestors, administradors de finques");
114  n1.setOpen(false);
115  children.appendChild(n1);
116  addChildTo(n1, 36);
117  n1 = new Treeitem("Impostos (de la Seguretat Social i Hisenda");
118  n1.setOpen(false);
119  children.appendChild(n1);
120  addChildTo(n1, 33);
121  addChildTo(n1, 37);
122  //addChildTo(n1, 29);
123  addChildTo(n1, 54);
124  n1 = new Treeitem("Empresa (Socis, treballadors, magatzems, caixa fort, etc.)");
125  n1.setOpen(false);
126  children.appendChild(n1);
127  addChildTo(n1, 30);
128  addChildTo(n1, 32);
129  addChildTo(n1, 3);
130  n2 = addChildTo(n1, "Laboral (Treballadors)");
131  addChildTo(n2, 26);
132  //addChildTo(n2, 28);
133  n2 = addChildTo(n1, "Dipòsits (Dipòsits d'explotació, oficina, botigues, magatzems, etc.)");
134  addChildTo(n2, 5);
135  addChildTo(n2, 4);
136  if(!ctcDefs.isEmpty()) {
137  n1 = new Treeitem("No classificats");
138  n1.setOpen(false);
139  children.appendChild(n1);
140  addAllChildTo(n1);
141  }
142  }

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