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

Public Member Functions

 RelatedLine (Related related, boolean forward, HtmlBasedComponent newControl)
 

Detailed Description

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

Definition at line 32 of file RelatedLine.java.

Constructor & Destructor Documentation

◆ RelatedLine()

org.turro.related.RelatedLine.RelatedLine ( Related  related,
boolean  forward,
HtmlBasedComponent  newControl 
)

Definition at line 34 of file RelatedLine.java.

34  {
35  if(forward) {
36  HtmlBasedComponent comp = CommandUtil.getLink(related.getDestination());
37  if(comp != null) {
38  appendChild(new Image("/_zul/images/forward.png"));
39  comp.setTooltiptext(related.getDescription());
40  appendChild(comp);
41  }
42  } else {
43  HtmlBasedComponent comp = CommandUtil.getLink(related.getOrigin());
44  if(comp != null) {
45  appendChild(new Image("/_zul/images/back.png"));
46  comp.setTooltiptext(related.getDescription());
47  appendChild(comp);
48  }
49  }
50  if(newControl != null) {
51  appendChild(newControl);
52  if(newControl instanceof AfterCompose) {
53  ((AfterCompose) newControl).afterCompose();
54  }
55  }
56  }
Here is the call graph for this function:

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