From e3cd6bfb5d34bbd5f5f54672793ddf04732f279d Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Wed, 13 Oct 2010 13:49:35 +0200 Subject: [PATCH] Implement link-enabled callback interface. --- .../net/pterodactylus/sone/web/page/TemplatePage.java | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/pterodactylus/sone/web/page/TemplatePage.java b/src/main/java/net/pterodactylus/sone/web/page/TemplatePage.java index 7e478e7..73a3057 100644 --- a/src/main/java/net/pterodactylus/sone/web/page/TemplatePage.java +++ b/src/main/java/net/pterodactylus/sone/web/page/TemplatePage.java @@ -22,6 +22,7 @@ import java.util.Collection; import java.util.Collections; import net.pterodactylus.util.template.Template; +import freenet.clients.http.LinkEnabledCallback; import freenet.clients.http.PageMaker; import freenet.clients.http.PageNode; import freenet.clients.http.ToadletContext; @@ -32,7 +33,7 @@ import freenet.l10n.BaseL10n; * * @author David ‘Bombe’ Roden */ -public class TemplatePage implements Page { +public class TemplatePage implements Page, LinkEnabledCallback { /** The path of the page. */ private final String path; @@ -133,4 +134,16 @@ public class TemplatePage implements Page { return null; } + // + // INTERFACE LinkEnabledCallback + // + + /** + * {@inheritDoc} + */ + @Override + public boolean isEnabled(ToadletContext toadletContext) { + return true; + } + } -- 2.7.4