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

Public Member Functions

void onChange $notes ()
 
void onSelect $definition ()
 
void onClick $save ()
 
void doAfterCompose (Component comp) throws Exception
 

Detailed Description

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

Definition at line 34 of file ContractNotesComposer.java.

Member Function Documentation

◆ $definition()

void onSelect org.turro.financials.contract.logic.ContractNotesComposer.$definition ( )

Definition at line 44 of file ContractNotesComposer.java.

44  {
45  ContractDefinition ctcdef = definition.getObjectValue();
46  if(ctcdef != null) {
47  if(ctcdef.getNotes() == null) {
48  notes.setValue("");
49  } else {
50  notes.setValue(ctcdef.getNotes().getNotes());
51  }
52  notes.setDisabled(false);
53  } else {
54  notes.setValue("");
55  notes.setDisabled(true);
56  }
57  save.setDisabled(true);
58  }
Here is the call graph for this function:

◆ $notes()

void onChange org.turro.financials.contract.logic.ContractNotesComposer.$notes ( )

Definition at line 40 of file ContractNotesComposer.java.

40  {
41  save.setDisabled(false);
42  }

◆ $save()

void onClick org.turro.financials.contract.logic.ContractNotesComposer.$save ( )

Definition at line 60 of file ContractNotesComposer.java.

60  {
61  ContractDefinition ctcdef = definition.getObjectValue();
62  if(ctcdef != null) {
63  ContractDefinitionNotes cdn = ctcdef.getNotes();
64  if(ctcdef.getNotes() == null) {
65  cdn = new ContractDefinitionNotes();
66  cdn.setContractDefinition(ctcdef);
67  }
68  cdn.setNotes(notes.getValue());
69  new FinancialsPU().saveObject(cdn);
70  }
71  save.setDisabled(true);
72  }
Here is the call graph for this function:

◆ doAfterCompose()

void org.turro.financials.contract.logic.ContractNotesComposer.doAfterCompose ( Component  comp) throws Exception

Definition at line 75 of file ContractNotesComposer.java.

75  {
76  super.doAfterCompose(comp);
77  save.setDisabled(true);
78  }

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