BrightSide Workbench Full Report + Source Code
org.turro.agreements.AgreementComposer Class Reference
Inheritance diagram for org.turro.agreements.AgreementComposer:
Collaboration diagram for org.turro.agreements.AgreementComposer:

Public Member Functions

final void onSignatures ()
 
final void onReminders ()
 
final void onSave ()
 
final void onDelete ()
 
final void onChange ()
 
final void onAction ()
 
final void onWiki ()
 
final void onSelect ()
 
final void onCheck ()
 

Detailed Description

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

Definition at line 50 of file AgreementComposer.java.

Member Function Documentation

◆ onAction()

final void org.turro.agreements.AgreementComposer.onAction ( )

Definition at line 126 of file AgreementComposer.java.

126  {
127  checkAgreement().setAction(action.getValue());
128  updateControls();
129  }
Here is the call graph for this function:

◆ onChange()

final void org.turro.agreements.AgreementComposer.onChange ( )

Definition at line 120 of file AgreementComposer.java.

120  {
121  checkAgreement().setTitle(title.getValue());
122  updateControls();
123  }
Here is the call graph for this function:

◆ onCheck()

final void org.turro.agreements.AgreementComposer.onCheck ( )

Definition at line 155 of file AgreementComposer.java.

155  {
156  checkAgreement().setRequiredToNotify(toNotify.isChecked());
157  checkAgreement().setRequiredToAccess(toAccess.isChecked());
158  checkAgreement().setRequiredToAction(toAction.isChecked());
159  checkAgreement().setPeremptory(peremptory.isChecked());
160  updateControls();
161  }
void setRequiredToAction(boolean requiredToAction)
Definition: Agreement.java:124
void setRequiredToNotify(boolean requiredToNotify)
Definition: Agreement.java:116
void setRequiredToAccess(boolean requiredToAccess)
Definition: Agreement.java:108
void setPeremptory(boolean peremptory)
Definition: Agreement.java:132
Here is the call graph for this function:

◆ onDelete()

final void org.turro.agreements.AgreementComposer.onDelete ( )

Definition at line 112 of file AgreementComposer.java.

112  {
113  if (AgreementsUtil.deleteAgreement(agreement)) {
114  agreement = null;
115  updateControls();
116  }
117  }
Here is the call graph for this function:

◆ onReminders()

final void org.turro.agreements.AgreementComposer.onReminders ( )

Definition at line 96 of file AgreementComposer.java.

96  {
97  Messages.confirmProcess().show(() -> {
98  try {
99  sendNotSigned();
100  } catch (Exception ex) {
101  Logger.getLogger(AgreementComposer.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(null), ex);
102  }
103  });
104  }
Here is the call graph for this function:

◆ onSave()

final void org.turro.agreements.AgreementComposer.onSave ( )

Definition at line 107 of file AgreementComposer.java.

107  {
108  getDao().saveObject(agreement);
109  }

◆ onSelect()

final void org.turro.agreements.AgreementComposer.onSelect ( )

Definition at line 139 of file AgreementComposer.java.

139  {
140  agreement = agreeCombo.getObjectValue();
141  if (agreement != null) {
142  List<AgreementSignature> signatures = agreement.getSignatures();
143  agreed.setValue("" + signatures.stream().filter((as) -> (as.isSigned() && as.isAgreed())).count());
144  declined.setValue("" + signatures.stream().filter((as) -> (as.isSigned() && !as.isAgreed())).count());
145  notsigned.setValue("" + signatures.stream().filter((as) -> (!as.isSigned())).count());
146  } else {
147  agreed.setValue("");
148  declined.setValue("");
149  notsigned.setValue("");
150  }
151  updateControls();
152  }
List< AgreementSignature > getSignatures()
Definition: Agreement.java:152
Here is the call graph for this function:

◆ onSignatures()

final void org.turro.agreements.AgreementComposer.onSignatures ( )

Definition at line 88 of file AgreementComposer.java.

88  {
89  if (agreement != null) {
90  SelectionDialog.showComponent(getPage(), I_.get("Signatures"),
91  new SignaturesListbox(agreement), "900px", "500px", (Command) null);
92  }
93  }
Here is the call graph for this function:

◆ onWiki()

final void org.turro.agreements.AgreementComposer.onWiki ( )

Definition at line 132 of file AgreementComposer.java.

132  {
133  checkAgreement().setWiki(agreeWiki.getValue());
134  checkAgreement().setText(agreeWiki.getHtml());
135  updateControls();
136  }
Here is the call graph for this function:

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