Implemented navigation

This commit is contained in:
Ziver Koc 2015-04-25 15:22:44 +00:00
parent 846ed78252
commit b3e0757b29
11 changed files with 203 additions and 90 deletions

View file

@ -22,10 +22,10 @@
package wa.server.page;
import wa.server.WAAbstractPage;
import wa.server.WAContext;
import wa.server.page.struct.WANavigation;
import wa.server.plugin.WAService;
import wa.server.plugin.WAStatus;
import zutil.net.http.HttpHeaderParser;
import zutil.parser.DataNode;
import zutil.parser.Templator;
@ -37,7 +37,7 @@ import java.util.Map;
/**
* Created by Ziver on 2015-04-06.
*/
public class ServicesPage extends AbstractPage{
public class ServicesPage implements WAPage {
private ArrayList<WAService> plugins;
public ServicesPage(PluginManager pluginManager){
@ -46,7 +46,7 @@ public class ServicesPage extends AbstractPage{
WANavigation nav = new WANavigation("Services");
for(WAService plugin : plugins)
nav.addSubNav(new WANavigation(plugin.getName()));
WANavigation.getRootNav().addSubNav(nav);
WANavigation.addRootNav(nav);
}