X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2Fpage%2FPageToadletFactory.java;h=a517f0ad1e68183d35b4bf1faccd6332409af0d5;hb=0fd78802d3ee78b558108d714314d0117078d105;hp=bd0adb9ce5f1cf4709800cde588e8cf9e11f537f;hpb=c5e641893a2656ebf2c2c8c369fe75eaf3061b52;p=Sone.git
diff --git a/src/main/java/net/pterodactylus/sone/web/page/PageToadletFactory.java b/src/main/java/net/pterodactylus/sone/web/page/PageToadletFactory.java
index bd0adb9..a517f0a 100644
--- a/src/main/java/net/pterodactylus/sone/web/page/PageToadletFactory.java
+++ b/src/main/java/net/pterodactylus/sone/web/page/PageToadletFactory.java
@@ -1,5 +1,5 @@
/*
- * Sone - PageToadletFactory.java - Copyright © 2010 David Roden
+ * Sone - PageToadletFactory.java - Copyright © 2010â2013 David Roden
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -17,12 +17,13 @@
package net.pterodactylus.sone.web.page;
+import net.pterodactylus.util.web.Page;
import freenet.client.HighLevelSimpleClient;
/**
* Factory that creates {@link PageToadlet}s using a given
* {@link HighLevelSimpleClient}.
- *
+ *
* @author David âBombeâ Roden
*/
public class PageToadletFactory {
@@ -35,7 +36,7 @@ public class PageToadletFactory {
/**
* Creates a new {@link PageToadlet} factory.
- *
+ *
* @param highLevelSimpleClient
* The client to use when creating the toadlets
* @param pathPrefix
@@ -49,26 +50,26 @@ public class PageToadletFactory {
/**
* Creates a {@link PageToadlet} that wraps the given page and does not
* appear in the nodeâs menu.
- *
+ *
* @param page
* The page to wrap
* @return The toadlet wrapped around the page
*/
- public PageToadlet createPageToadlet(Page page) {
+ public PageToadlet createPageToadlet(Page page) {
return createPageToadlet(page, null);
}
/**
* Creates a {@link PageToadlet} that wraps the given page and appears in
* the nodeâs menu under the given name.
- *
+ *
* @param page
* The page to wrap
* @param menuName
* The name of the menu item
* @return The toadlet wrapped around the page
*/
- public PageToadlet createPageToadlet(Page page, String menuName) {
+ public PageToadlet createPageToadlet(Page page, String menuName) {
return new PageToadlet(highLevelSimpleClient, menuName, page, pathPrefix);
}