portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jf...@apache.org
Subject cvs commit: jakarta-jetspeed-2/taglibs/treecontrol/src/java/org/apache/jetspeed/portlets/tags PortletTreeControlTag.java
Date Fri, 04 Mar 2005 03:44:45 GMT
jford       2005/03/03 19:44:45

  Modified:    taglibs/treecontrol/src/java/org/apache/webapp/admin
                        TreeControlTag.java TreeControlNode.java
               taglibs/treecontrol/src/java/org/apache/jetspeed/portlets/tags
                        PortletTreeControlTag.java
  Log:
  Now set a title that is mouseover friendly
  
  Revision  Changes    Path
  1.3       +7 -4      jakarta-jetspeed-2/taglibs/treecontrol/src/java/org/apache/webapp/admin/TreeControlTag.java
  
  Index: TreeControlTag.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/taglibs/treecontrol/src/java/org/apache/webapp/admin/TreeControlTag.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- TreeControlTag.java	4 Mar 2005 01:33:49 -0000	1.2
  +++ TreeControlTag.java	4 Mar 2005 03:44:45 -0000	1.3
  @@ -476,9 +476,12 @@
                       out.print("\"");
                   }
                   
  -                out.print(" title=\"");
  -                out.print(node.getLabel());
  -                out.print("\"");
  +                if(node.getTitle() != null)
  +                {
  +                    out.print(" title=\"");
  +                    out.print(node.getTitle());
  +                    out.print("\"");
  +                }
                   
                   // to refresh the tree in the same 'self' frame
                   out.print(" onclick=\"");
  
  
  
  1.5       +15 -1     jakarta-jetspeed-2/taglibs/treecontrol/src/java/org/apache/webapp/admin/TreeControlNode.java
  
  Index: TreeControlNode.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/taglibs/treecontrol/src/java/org/apache/webapp/admin/TreeControlNode.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- TreeControlNode.java	4 Mar 2005 01:33:49 -0000	1.4
  +++ TreeControlNode.java	4 Mar 2005 03:44:45 -0000	1.5
  @@ -196,6 +196,20 @@
       public String getLabel() {
           return (this.label);
       }
  +    
  +    /**
  +     * The label that will be displayed when this node is visible.
  +     */
  +    protected String title = null;
  +
  +    public String getTitle() {
  +        return (this.title);
  +    }
  +    
  +    public void setTitle(String title)
  +    {
  +        this.title = title;
  +    }
   
   
       /**
  
  
  
  1.9       +6 -3      jakarta-jetspeed-2/taglibs/treecontrol/src/java/org/apache/jetspeed/portlets/tags/PortletTreeControlTag.java
  
  Index: PortletTreeControlTag.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/taglibs/treecontrol/src/java/org/apache/jetspeed/portlets/tags/PortletTreeControlTag.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- PortletTreeControlTag.java	4 Mar 2005 01:33:49 -0000	1.8
  +++ PortletTreeControlTag.java	4 Mar 2005 03:44:45 -0000	1.9
  @@ -302,9 +302,12 @@
                       out.print("\"");
                   }
                   
  -                out.print(" title=\"");
  -                out.print(node.getLabel());
  -                out.print("\"");
  +                if(node.getTitle() != null)
  +                {
  +                    out.print(" title=\"");
  +                    out.print(node.getTitle());
  +                    out.print("\"");
  +                }
                   
                   /* Invalid, not used, and not usefull
                   // to refresh the tree in the same 'self' frame
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Mime
View raw message