be.lassi.web
Class MenuBuilder
java.lang.Object
be.lassi.web.MenuBuilder
public class MenuBuilder
- extends java.lang.Object
Writes the html for the menu in the web pages.
Constructor Summary |
MenuBuilder(java.io.PrintWriter out)
Constructs a new instance. |
Method Summary |
void |
print(MainPage page,
int depth)
Prints the menu. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MenuBuilder
public MenuBuilder(java.io.PrintWriter out)
- Constructs a new instance.
- Parameters:
out
- output destination
print
public void print(MainPage page,
int depth)
- Prints the menu.
- Parameters:
page
- the main page that this page belongs todepth
- the depth of the sub-directory