18 package org.turro.elephant.impl.navigation;
20 import java.io.IOException;
21 import java.util.SortedSet;
22 import org.turro.elephant.context.IConstructor;
23 import org.turro.elephant.impl.context.ContextAdapter;
24 import org.turro.elephant.web.ElContext;
25 import org.turro.elephant.web.ElContextMap;
26 import org.turro.html.HTMLHelper;
41 public void draw() throws IOException {
50 hp.
startTable(
"cellspacing='5px' width='100%' class='wmap'");
54 boolean hasSingles =
false;
68 hp.
startTableCol(
"style='width:" + ((
int)Math.ceil(100 / ctxCount)) +
"%'")
69 .
startTag(
"ul",
"class='wmap" + level +
"'")
70 .
startTag(
"li",
"class='wmap" + level +
"'")
71 .
startAnchor(ctx.getWebPath(), ctx.getName(),
"wmap" + level)
74 doChildren(hp, ctx, level + 1);
79 hp.
startTableCol(
"style='width:" + ((
int)Math.ceil(100 / ctxCount)) +
"%'");
82 hp.
startTag(
"ul",
"class='wmap" + level +
"'")
83 .
startTag(
"li",
"class='wmap" + level +
"'")
84 .
startAnchor(ctx.getWebPath(), ctx.getName(),
"wmap" + level)
87 doChildren(hp, ctx, level + 1);
98 if (ctxs.size() > 0) {
100 hp.
startTag(
"ul",
"class='wmap" + level +
"'")
101 .
startTag(
"li",
"class='wmap" + level +
"'")
102 .
startAnchor(ctx.getWebPath(), ctx.getName(),
"wmap" + level)
103 .
write(ctx.getName())
105 doChildren(hp, ctx, level + 1);
TreeSet< ElContext > getVisible()
WebMap(IConstructor constructor)
static ElContext getRoot()
TreeSet< ElContext > getChildren()
HTMLGenerator endAllTags()
HTMLGenerator write(String value)
HTMLGenerator startTag(String tag)
HTMLGenerator startTableRow(String attributes)
HTMLGenerator startAnchor(String url, String hint)
HTMLGenerator startTableCol(String attributes)
HTMLGenerator startTable(String attributes)