BrightSide Workbench Full Report + Source Code
org.turro.dossier.zul.dossier.ParticipantGrid Class Reference
Inheritance diagram for org.turro.dossier.zul.dossier.ParticipantGrid:
Collaboration diagram for org.turro.dossier.zul.dossier.ParticipantGrid:

Public Member Functions

 ParticipantGrid ()
 
void edit ()
 
void setDossier (Dossier dossier)
 
void setAddToolbar (boolean addToolbar)
 
void addRows ()
 
- Public Member Functions inherited from org.turro.zkoss.grid.PagingGrid
void setColumns (int columns)
 
void setColumns (String hflexs)
 
void refine ()
 
boolean isDefaultBehavior ()
 
void setDefaultBehavior (boolean defaultBehavior)
 
String getRefineValue ()
 
void setRefineValue (String value)
 
int getMaxResults ()
 
void setMaxResults (int maxResults)
 
String getPagingMold ()
 
void setPagingMold (String pagingMold)
 
int getRowCount ()
 
void setRowCount (int rows)
 
void setHeadersVisible (boolean value)
 
boolean isHeadersVisible ()
 
String getVarColumns ()
 
void setVarColumns (String varColumns)
 
Collection< String > getVarColumnsList (String defaultCols)
 
void addDetailColumn ()
 
void addDetailColumn (HtmlBasedComponent caption)
 
void openDetails ()
 
boolean isEmpty ()
 
void clearColumns ()
 
void clearRows ()
 
void clearEmptyGroups ()
 
Columns getColumns (boolean create)
 
Rows getRows (boolean create)
 
Foot getFoot (boolean create)
 
Foot createFoot ()
 
void exportToPdf ()
 

Detailed Description

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

Definition at line 48 of file dossier/ParticipantGrid.java.

Constructor & Destructor Documentation

◆ ParticipantGrid()

org.turro.dossier.zul.dossier.ParticipantGrid.ParticipantGrid ( )

Definition at line 54 of file dossier/ParticipantGrid.java.

54  {
55  addColumns();
56  rows = new Rows();
57  appendChild(rows);
58  }

Member Function Documentation

◆ addRows()

void org.turro.dossier.zul.dossier.ParticipantGrid.addRows ( )

Definition at line 111 of file dossier/ParticipantGrid.java.

111  {
112  for(final IDossierParticipant p : dossier.getFullParticipants()) {
113  if(isEmpty(p)) continue;
114  Row row = new Row();
115  row.setValue(p);
116  rows.appendChild(row);
117 
118  Hlayout hbox = new Hlayout();
119  row.appendChild(hbox);
120  if(p instanceof CategoryParticipant) {
121  hbox.appendChild(new Image("/_zul/images/forward.png"));
122  }
123  if(p.isShowAllAttachments()) {
124  hbox.appendChild(new Image("/_zul/images/clip.png"));
125  }
126  if(p.isShowAllIssues()) {
127  hbox.appendChild(new Image("/_zul/images/issue.png"));
128  }
129  if(p.isReceiveAllEmails()) {
130  hbox.appendChild(new Image("/_zul/images/mail_forward.png"));
131  }
132  if(p.isShowParticipants()) {
133  hbox.appendChild(new Image("/_zul/images/contacts.png"));
134  }
135  if(p.isBindingVote()) {
136  hbox.appendChild(new Image("/_zul/images/accepted.png"));
137  }
138  if(p.isDriver()) {
139  hbox.appendChild(new Image("/_zul/images/driver.png"));
140  }
141  if(p.isCoordinator()) {
142  hbox.appendChild(new Image("/_zul/images/coordinator.png"));
143  }
144  if(p.isBeneficiary()) {
145  hbox.appendChild(new Image("/_zul/images/beneficiary.png"));
146  }
147  if(p.isOfferer()) {
148  hbox.appendChild(new Image("/_zul/images/offerer.png"));
149  }
150  if(p.isResearch()) {
151  hbox.appendChild(new Image("/_zul/images/research.png"));
152  }
153  if(p.isFunding()) {
154  hbox.appendChild(new Image("/_zul/images/funding.png"));
155  }
156  if(p.isSupport()) {
157  hbox.appendChild(new Image("/_zul/images/support.png"));
158  }
159  if(p.isConsortium()) {
160  hbox.appendChild(new Image("/_zul/images/consortium.png"));
161  }
162  if(p.isAdmin()) {
163  hbox.appendChild(new Image("/_zul/images/admin.png"));
164  }
165 
166  hbox.appendChild(new ContactInfo((Contact) p.getIContact().getContact()));
167  Label label = new Label(I_.byKey(p.getRole().toString()));
168  row.appendChild(label);
169  label = new Label(p.getDiscriminator());
170  row.appendChild(label);
171  }
172  setRowCount(rows.getChildren().size());
173  }
ParticipantSet< IDossierParticipant > getFullParticipants()
Definition: Dossier.java:399
Here is the call graph for this function:
Here is the caller graph for this function:

◆ edit()

void org.turro.dossier.zul.dossier.ParticipantGrid.edit ( )

Definition at line 60 of file dossier/ParticipantGrid.java.

60  {
61  if(dossier != null) {
62  DossierParticipantGrid dpg = new DossierParticipantGrid(dossier);
63  dpg.setSclass("grid-header-wrap");
64  dpg.setAllowDeletions(true);
65  dpg.setAllowInsertions(true);
66  SelectionDialog.showComponent(getPage(), I_.get("Participants"),
67  dpg, "900px", "500px", new Command() {
68  @Override
69  public Object execute(Context context) {
70  doClean();
71  setDossier(dossier);
72  Events.postEvent(new Event(Events.ON_CHANGE));
73  return null;
74  }
75  });
76  }
77  }
Here is the call graph for this function:

◆ setAddToolbar()

void org.turro.dossier.zul.dossier.ParticipantGrid.setAddToolbar ( boolean  addToolbar)

Definition at line 87 of file dossier/ParticipantGrid.java.

87  {
88  if(addToolbar) {
89  addToolbarButtons();
90  }
91  }
Here is the caller graph for this function:

◆ setDossier()

void org.turro.dossier.zul.dossier.ParticipantGrid.setDossier ( Dossier  dossier)

Definition at line 79 of file dossier/ParticipantGrid.java.

79  {
80  this.dossier = dossier;
81  rows.getChildren().clear();
82  if(dossier != null) {
83  addRows();
84  }
85  }
Here is the call graph for this function:
Here is the caller graph for this function:

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