portals-pluto-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e..@apache.org
Subject svn commit: r554804 - in /portals/pluto/branches/pluto-1.1.x/pluto-portal-driver/src/main/java/org/apache/pluto/driver/tags: PortletModeAnchorTag.java PortletWindowStateAnchorTag.java
Date Tue, 10 Jul 2007 02:30:22 GMT
Author: esm
Date: Mon Jul  9 19:30:21 2007
New Revision: 554804

URL: http://svn.apache.org/viewvc?view=rev&rev=554804
Log:
[PLUTO-186]: Fixing tooltips: lets try a simple "title" attribute.

Modified:
    portals/pluto/branches/pluto-1.1.x/pluto-portal-driver/src/main/java/org/apache/pluto/driver/tags/PortletModeAnchorTag.java
    portals/pluto/branches/pluto-1.1.x/pluto-portal-driver/src/main/java/org/apache/pluto/driver/tags/PortletWindowStateAnchorTag.java

Modified: portals/pluto/branches/pluto-1.1.x/pluto-portal-driver/src/main/java/org/apache/pluto/driver/tags/PortletModeAnchorTag.java
URL: http://svn.apache.org/viewvc/portals/pluto/branches/pluto-1.1.x/pluto-portal-driver/src/main/java/org/apache/pluto/driver/tags/PortletModeAnchorTag.java?view=diff&rev=554804&r1=554803&r2=554804
==============================================================================
--- portals/pluto/branches/pluto-1.1.x/pluto-portal-driver/src/main/java/org/apache/pluto/driver/tags/PortletModeAnchorTag.java
(original)
+++ portals/pluto/branches/pluto-1.1.x/pluto-portal-driver/src/main/java/org/apache/pluto/driver/tags/PortletModeAnchorTag.java
Mon Jul  9 19:30:21 2007
@@ -92,12 +92,17 @@
 
             // Build a string buffer containing the anchor tag
             StringBuffer tag = new StringBuffer();
-            tag.append("<a class=\"" + ToolTips.CSS_CLASS_NAME + "\" href=\"" + portalUrl.toString()
+ "\">");
-            tag.append("<span class=\"" + portletMode + "\"></span>");
-            tag.append("<span class=\"" + ToolTips.CSS_CLASS_NAME + "\">");
+//            tag.append("<a class=\"" + ToolTips.CSS_CLASS_NAME + "\" href=\"" + portalUrl.toString()
+ "\">");
+//            tag.append("<span class=\"" + portletMode + "\"></span>");
+//            tag.append("<span class=\"" + ToolTips.CSS_CLASS_NAME + "\">");
+//            tag.append(ToolTips.forMode(new PortletMode(portletMode)));
+//            tag.append("</span></a>");
+            tag.append("<a title=\"");
             tag.append(ToolTips.forMode(new PortletMode(portletMode)));
-            tag.append("</span></a>");
-
+            tag.append("\" ");
+            tag.append("href=\"" + portalUrl.toString() + "\">");
+            tag.append("<span class=\"" + portletMode + "\"></span>");      

+            tag.append("</a>");
             // Print the mode anchor tag.
             try {
                 JspWriter out = pageContext.getOut();

Modified: portals/pluto/branches/pluto-1.1.x/pluto-portal-driver/src/main/java/org/apache/pluto/driver/tags/PortletWindowStateAnchorTag.java
URL: http://svn.apache.org/viewvc/portals/pluto/branches/pluto-1.1.x/pluto-portal-driver/src/main/java/org/apache/pluto/driver/tags/PortletWindowStateAnchorTag.java?view=diff&rev=554804&r1=554803&r2=554804
==============================================================================
--- portals/pluto/branches/pluto-1.1.x/pluto-portal-driver/src/main/java/org/apache/pluto/driver/tags/PortletWindowStateAnchorTag.java
(original)
+++ portals/pluto/branches/pluto-1.1.x/pluto-portal-driver/src/main/java/org/apache/pluto/driver/tags/PortletWindowStateAnchorTag.java
Mon Jul  9 19:30:21 2007
@@ -91,10 +91,16 @@
 
             // Build a string buffer containing the anchor tag
             StringBuffer tag = new StringBuffer();
-            tag.append("<a class=\"" + ToolTips.CSS_CLASS_NAME + "\" href=\"" + portalUrl.toString()
+ "\">");
-            tag.append("<span class=\"" + state + "\"></span>");
-            tag.append("<span class=\"" + ToolTips.CSS_CLASS_NAME + "\">");
+//            tag.append("<a class=\"" + ToolTips.CSS_CLASS_NAME + "\" href=\"" + portalUrl.toString()
+ "\">");
+//            tag.append("<span class=\"" + state + "\"></span>");
+//            tag.append("<span class=\"" + ToolTips.CSS_CLASS_NAME + "\">");
+//            tag.append(ToolTips.forWindowState(new WindowState(state)));
+//            tag.append("</span></a>");
+            tag.append("<a title=\"");
             tag.append(ToolTips.forWindowState(new WindowState(state)));
+            tag.append("\" ");
+            tag.append("href=\"" + portalUrl.toString() + "\">");
+            tag.append("<span class=\"" + state + "\"></span>");
             tag.append("</span></a>");
 
             // Print the mode anchor tag.



Mime
View raw message