19 package org.turro.zul.relpaths;
21 import org.turro.command.CommandUtil;
22 import org.turro.contacts.RelatedPaths;
23 import org.zkoss.zk.ui.HtmlBasedComponent;
24 import org.zkoss.zk.ui.ext.AfterCompose;
25 import org.zkoss.zul.Hlayout;
26 import org.zkoss.zul.Image;
33 class RelatedPathsLine
extends Hlayout {
35 public RelatedPathsLine(RelatedPaths rp,
boolean forward, HtmlBasedComponent newControl) {
37 HtmlBasedComponent comp = CommandUtil.getLink(rp.getDestination());
39 appendChild(
new Image(
"/_zul/images/forward.png"));
40 comp.setTooltiptext(rp.getDescription());
44 HtmlBasedComponent comp = CommandUtil.getLink(rp.getOrigin());
46 appendChild(
new Image(
"/_zul/images/back.png"));
47 comp.setTooltiptext(rp.getDescription());
51 if(newControl !=
null) {
52 appendChild(newControl);
53 if(newControl instanceof AfterCompose) {
54 ((AfterCompose) newControl).afterCompose();