Author: batosai
Date: 2008-10-02 19:10:37 +0000 (Thu, 02 Oct 2008)
New Revision: 22915
Modified:
trunk/plugins/WoT/ui/web/HomePage.java
trunk/plugins/WoT/ui/web/OwnIdentitiesPage.java
Log:
Javadoc.
Modified: trunk/plugins/WoT/ui/web/HomePage.java
===================================================================
--- trunk/plugins/WoT/ui/web/HomePage.java 2008-10-02 19:02:46 UTC (rev
22914)
+++ trunk/plugins/WoT/ui/web/HomePage.java 2008-10-02 19:10:37 UTC (rev
22915)
@@ -22,14 +22,26 @@
public class HomePage extends WebPageImpl {
+ /**
+ * Creates a new HomePage.
+ *
+ * @param wot a reference to the WoT, used to get resources the page
needs.
+ * @param request the request sent by the user.
+ */
public HomePage(WoT wot, HTTPRequest request) {
super(wot, request);
}
+ /**
+ * Makes the page content.
+ */
public void make() {
makeSummary();
}
+ /**
+ * Creates a short summary of what the plugin knows of the WoT.
+ */
private void makeSummary() {
ObjectContainer db = wot.getDB();
HTMLNode box = getContentBox("Summary");
Modified: trunk/plugins/WoT/ui/web/OwnIdentitiesPage.java
===================================================================
--- trunk/plugins/WoT/ui/web/OwnIdentitiesPage.java 2008-10-02 19:02:46 UTC
(rev 22914)
+++ trunk/plugins/WoT/ui/web/OwnIdentitiesPage.java 2008-10-02 19:10:37 UTC
(rev 22915)
@@ -20,11 +20,20 @@
* @author Julien Cornuwel (batosai at freenetproject.org)
*/
public class OwnIdentitiesPage extends WebPageImpl {
-
+
+ /**
+ * Creates a new OwnIdentitiesPage.
+ *
+ * @param wot a reference to the WoT, used to get resources the page
needs.
+ * @param request the request sent by the user.
+ */
public OwnIdentitiesPage(WoT wot, HTTPRequest request) {
super(wot, request);
}
+ /**
+ * Makes the page content.
+ */
public void make() {
ObjectContainer db = wot.getDB();
PluginRespirator pr = wot.getPR();
@@ -32,6 +41,12 @@
makeRestoreOwnIdentityForm(pr);
}
+ /**
+ * Makes the list of known identities.
+ *
+ * @param db a reference to the database.
+ * @param pr a reference to the {@link PluginRespirator}
+ */
private void makeOwnIdentitiesList(ObjectContainer db, PluginRespirator
pr) {
HTMLNode boxContent = getContentBox("Summary");
@@ -88,6 +103,11 @@
createForm.addChild("input", new String[] { "type", "name",
"value" }, new String[] { "submit", "create", "Create a new identity !" });
}
+ /**
+ * Makes the form used to restore an OwnIdentity from Freenet.
+ *
+ * @param pr a reference to the {@link PluginRespirator}
+ */
private void makeRestoreOwnIdentityForm(PluginRespirator pr) {
HTMLNode restoreBoxContent = getContentBox("Restore an identity
from Freenet");
restoreBoxContent.addChild("p", "Use this if you lost your
database for some reason (crash, reinstall...) but still have your identity's
keys :");