[jboss-svn-commits] JBoss Portal SVN: r5179 - trunk/theme/src/main/org/jboss/portal/theme/render/region

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Mon Sep 11 18:40:29 EDT 2006


Author: roy.russo at jboss.com
Date: 2006-09-11 18:40:28 -0400 (Mon, 11 Sep 2006)
New Revision: 5179

Added:
   trunk/theme/src/main/org/jboss/portal/theme/render/region/UtilityNavigation.java
Log:


Added: trunk/theme/src/main/org/jboss/portal/theme/render/region/UtilityNavigation.java
===================================================================
--- trunk/theme/src/main/org/jboss/portal/theme/render/region/UtilityNavigation.java	2006-09-11 22:39:41 UTC (rev 5178)
+++ trunk/theme/src/main/org/jboss/portal/theme/render/region/UtilityNavigation.java	2006-09-11 22:40:28 UTC (rev 5179)
@@ -0,0 +1,54 @@
+/*
+* JBoss, a division of Red Hat
+* Copyright 2006, Red Hat Middleware, LLC, and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+
+package org.jboss.portal.theme.render.region;
+
+/**
+ * This is a static div region, that is not bound to a window.
+ *
+ * @author <a href="mailto:roy at jboss.org">Roy Russo</a>
+ */
+
+public class UtilityNavigation
+{
+   /**
+    * Returns output for rendering in region tag.
+    *
+    * @param s
+    * @return output for rendering
+    */
+   public String render(String s)
+   {
+      if(s == null)
+      {
+         return "<a href=\"#\" class=\"addcontent\">Add Content</a>" +
+                "&nbsp;&nbsp;|&nbsp;&nbsp;" +
+                "<a href=\"#\">Edit Page</a>" +
+                "&nbsp;&nbsp;|&nbsp;&nbsp;" +
+                "<a href=\"#\" class=\"addcontent\">Add Page</a>";
+      }
+      else
+      {
+         return "";
+      }
+   }
+}




More information about the jboss-svn-commits mailing list