1
2
3
4
5
6
7
8 package com.buckosoft.PicMan.web;
9
10 import java.util.List;
11
12 import com.buckosoft.BSAccount.web.BSAccountUserWebSession;
13 import com.buckosoft.PicMan.domain.Root;
14
15
16
17
18
19 public class RootManForm {
20
21 private List<Root> roots;
22 private BSAccountUserWebSession userWebSession;
23 private boolean flipFlop = false;
24 private Root newRoot = new Root();
25 private Root editRoot = null;
26 private List<Root> rootsToDelete;
27 private String rootToDelete;
28
29 public RootManForm() {
30 }
31
32
33
34
35 public BSAccountUserWebSession getUserWebSession() { return(userWebSession); }
36
37
38
39 public void setUserWebSession(BSAccountUserWebSession userWebSession) { this.userWebSession = userWebSession; }
40
41
42
43
44 public List<Root> getRoots() { return(roots); }
45
46
47
48
49 public void setRoots(List<Root> s) {
50 this.roots = s;
51 this.rootsToDelete = s;
52 }
53
54
55
56
57 public int getRootsCount() { return(roots.size()); }
58
59
60
61
62 public boolean getFlipFlop() { flipFlop = !flipFlop; return(flipFlop); }
63
64
65
66
67 public Root getNewRoot() { return(newRoot); }
68
69
70
71
72
73 public List<Root> getRootsToDelete() { return(rootsToDelete); }
74
75
76
77
78 public String getRootToDelete() { return(rootToDelete); }
79
80
81
82
83 public void setRootToDelete(String s) { rootToDelete = s; }
84
85
86
87
88 public Root getEditRoot() {
89 return editRoot;
90 }
91
92
93
94
95
96 public void setEditRoot(Root editRoot) {
97 this.editRoot = editRoot;
98 }
99 }