BrightSide Workbench Full Report + Source Code
org.turro.financials.document.action.PrintDocumentAction Class Reference
Inheritance diagram for org.turro.financials.document.action.PrintDocumentAction:
Collaboration diagram for org.turro.financials.document.action.PrintDocumentAction:

Public Member Functions

 PrintDocumentAction (boolean send)
 
Object execute (Context context)
 
String getLabel ()
 
String getImage ()
 

Detailed Description

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

Definition at line 31 of file PrintDocumentAction.java.

Constructor & Destructor Documentation

◆ PrintDocumentAction()

org.turro.financials.document.action.PrintDocumentAction.PrintDocumentAction ( boolean  send)

Definition at line 35 of file PrintDocumentAction.java.

35  {
36  this.sendMail = send;
37  }

Member Function Documentation

◆ execute()

Object org.turro.financials.document.action.PrintDocumentAction.execute ( Context  context)

Definition at line 40 of file PrintDocumentAction.java.

40  {
41  Document doc = (Document) context.get("entity");
42  DocumentReport dr = new DocumentReport();
43  dr.setDocument(doc);
44  dr.setSendToParticipants(sendMail);
45  dr.doPrint();
46  return null;
47  }
Here is the call graph for this function:

◆ getImage()

String org.turro.financials.document.action.PrintDocumentAction.getImage ( )

Reimplemented from org.turro.action.AbstractAction.

Definition at line 59 of file PrintDocumentAction.java.

59  {
60  if(sendMail) {
61  return "/_zul/images/mail_send.png";
62  } else {
63  return "/_zul/images/printer.png";
64  }
65  }

◆ getLabel()

String org.turro.financials.document.action.PrintDocumentAction.getLabel ( )

Reimplemented from org.turro.action.AbstractAction.

Definition at line 50 of file PrintDocumentAction.java.

50  {
51  if(sendMail) {
52  return I_.get("Send documents");
53  } else {
54  return I_.get("Print");
55  }
56  }
Here is the call graph for this function:

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