BrightSide Workbench Full Report + Source Code
org.turro.documentation.model.DownloadDocuments Class Reference
Inheritance diagram for org.turro.documentation.model.DownloadDocuments:
Collaboration diagram for org.turro.documentation.model.DownloadDocuments:

Public Member Functions

 DownloadDocuments (String caption, List< Document > documents)
 
void afterCompose ()
 

Detailed Description

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

Definition at line 37 of file DownloadDocuments.java.

Constructor & Destructor Documentation

◆ DownloadDocuments()

org.turro.documentation.model.DownloadDocuments.DownloadDocuments ( String  caption,
List< Document >  documents 
)

Definition at line 42 of file DownloadDocuments.java.

42  {
43  this.caption = caption;
44  this.documents = documents;
45  }

Member Function Documentation

◆ afterCompose()

void org.turro.documentation.model.DownloadDocuments.afterCompose ( )

Definition at line 48 of file DownloadDocuments.java.

48  {
49  appendChild(new Caption(caption));
50  Vlayout vl = new Vlayout();
51  for(Document doc : documents) {
52  Hlayout hl = new Hlayout();
53  hl.appendChild(new Label(doc.name()));
54  A link = new A();
55  link.setIconSclass("z-icon-download");
56  link.addEventListener(Events.ON_CLICK, (event) -> {
57  new FileWrapper(doc.document()).download();
58  });
59  hl.appendChild(link);
60  vl.appendChild(hl);
61  }
62  appendChild(vl);
63  }

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