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

Public Member Functions

void onExecute ()
 
void onSave ()
 
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 46 of file ReportComposer.java.

Member Function Documentation

◆ doAfterCompose()

void org.turro.financials.report.ReportComposer.doAfterCompose ( Component  comp) throws Exception

Definition at line 77 of file ReportComposer.java.

77  {
78  super.doAfterCompose(comp);
79  to.setValue(new Date());
80  from.setValue(new CheckDate(to.getValue()).addMonths(-1).getDate());
81  body = (ReportBody) Executions.getCurrent().getAttribute("body");
82  execute.setDisabled(body == null);
83  if(body.getFile() != null) {
84  text.setValue(FileUtil.getContent(body.getFile(), ElephantContext.getEncoding()));
85  }
86  }
Here is the call graph for this function:

◆ onExecute()

void org.turro.financials.report.ReportComposer.onExecute ( )

Definition at line 57 of file ReportComposer.java.

57  {
58  if(body.getFile() != null) {
59  body = ReportBody.load(body.getFile());
60  }
61  updateGrid();
62  }
static ReportBody load(File file)
Here is the call graph for this function:

◆ onSave()

void org.turro.financials.report.ReportComposer.onSave ( )

Definition at line 65 of file ReportComposer.java.

65  {
66  if(body.getFile() != null) {
67  try {
68  FileUtil.setContent(body.getFile(), text.getText(), ElephantContext.getEncoding());
69  } catch (IOException ex) {
70  Logger.getLogger(ReportComposer.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(null), ex);
71  }
72  }
73  }
Here is the call graph for this function:

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