- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 32 of file WebMap.java.
◆ WebMap()
org.turro.elephant.impl.navigation.WebMap.WebMap |
( |
IConstructor |
constructor | ) |
|
◆ draw() [1/2]
void org.turro.elephant.impl.navigation.WebMap.draw |
( |
| ) |
throws IOException |
◆ draw() [2/2]
void org.turro.elephant.impl.navigation.WebMap.draw |
( |
int |
maxLevels | ) |
throws IOException |
Definition at line 46 of file WebMap.java.
49 ElContext root = ElContextMap.getRoot();
50 hp.startTable(
"cellspacing='5px' width='100%' class='wmap'");
51 hp.startTableRow(
"class='wmap'");
52 SortedSet<ElContext> ctxs =
new ContextAdapter(root.getChildren()).getVisible();
54 boolean hasSingles =
false;
56 for(ElContext ctx : ctxs) {
57 if(
new ContextAdapter(ctx.getChildren()).getVisible().size() == 0) {
66 for(ElContext ctx : ctxs) {
67 if(
new ContextAdapter(ctx.getChildren()).getVisible().size() > 0) {
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)) +
"%'");
80 for(ElContext ctx : ctxs) {
81 if(
new ContextAdapter(ctx.getChildren()).getVisible().size() == 0) {
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);
◆ constructor
IConstructor org.turro.elephant.impl.navigation.WebMap.constructor |
|
protected |
◆ maxLevels
int org.turro.elephant.impl.navigation.WebMap.maxLevels |
|
protected |
The documentation for this class was generated from the following file: