fix bug generating tables - cells with only imgs that are refs - and add convenience methods
This commit is contained in:
parent
e496907985
commit
e2c955a8f4
|
@ -208,6 +208,11 @@ public class HierarchicalTableGenerator extends TranslatingUtilities {
|
|||
children = new ArrayList<XhtmlNode>();
|
||||
return children;
|
||||
}
|
||||
|
||||
public Piece addHtml(XhtmlNode x) {
|
||||
getChildren().add(x);
|
||||
return this;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
@ -735,7 +740,11 @@ public class HierarchicalTableGenerator extends TranslatingUtilities {
|
|||
a.setAttribute("href", p.getReference());
|
||||
if (!Utilities.noString(p.getHint()))
|
||||
a.setAttribute("title", p.getHint());
|
||||
a.addText(p.getText());
|
||||
if (p.getText() != null) {
|
||||
a.addText(p.getText());
|
||||
} else {
|
||||
a.addChildren(p.getChildren());
|
||||
}
|
||||
addStyle(a, p);
|
||||
} else {
|
||||
if (!Utilities.noString(p.getHint())) {
|
||||
|
|
|
@ -653,4 +653,10 @@ public class XhtmlNode implements IBaseXhtml {
|
|||
return this;
|
||||
}
|
||||
|
||||
|
||||
public XhtmlNode addChildren(List<XhtmlNode> children) {
|
||||
getChildNodes().addAll(children);
|
||||
return this;
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue