craigmcc    01/06/12 20:44:29

  Modified:    doc      Tag: STRUTS_1_0_BRANCH struts-html.xml
               src/share/org/apache/struts/taglib/html Tag:
                        STRUTS_1_0_BRANCH BaseHandlerTag.java
  Log:
  Add a "title" attribute to the <html:link> tag.
  
  PR: Bugzilla #2133
  Submitted by: [EMAIL PROTECTED]
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.11.2.3  +9 -0      jakarta-struts/doc/struts-html.xml
  
  Index: struts-html.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-struts/doc/struts-html.xml,v
  retrieving revision 1.11.2.2
  retrieving revision 1.11.2.3
  diff -u -r1.11.2.2 -r1.11.2.3
  --- struts-html.xml   2001/06/01 18:50:48     1.11.2.2
  +++ struts-html.xml   2001/06/13 03:44:29     1.11.2.3
  @@ -2527,6 +2527,15 @@
                   </attribute>
   
                   <attribute>
  +                  <name>title</name>
  +                  <required>false</required>
  +                  <rtexprvalue>true</rtexprvalue>
  +                  <info>
  +                  <p>The advisory title for this hyperlink.</p>
  +                  </info>
  +                </attribute>
  +
  +                <attribute>
                     <name>transaction</name>
                     <required>false</required>
                     <rtexprvalue>true</rtexprvalue>
  
  
  
  No                   revision
  
  
  No                   revision
  
  
  1.3.2.3   +29 -4     
jakarta-struts/src/share/org/apache/struts/taglib/html/BaseHandlerTag.java
  
  Index: BaseHandlerTag.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-struts/src/share/org/apache/struts/taglib/html/BaseHandlerTag.java,v
  retrieving revision 1.3.2.2
  retrieving revision 1.3.2.3
  diff -u -r1.3.2.2 -r1.3.2.3
  --- BaseHandlerTag.java       2001/06/10 03:51:40     1.3.2.2
  +++ BaseHandlerTag.java       2001/06/13 03:44:29     1.3.2.3
  @@ -1,7 +1,7 @@
   /*
  - * $Header: 
/home/cvs/jakarta-struts/src/share/org/apache/struts/taglib/html/BaseHandlerTag.java,v 
1.3.2.2 2001/06/10 03:51:40 craigmcc Exp $
  - * $Revision: 1.3.2.2 $
  - * $Date: 2001/06/10 03:51:40 $
  + * $Header: 
/home/cvs/jakarta-struts/src/share/org/apache/struts/taglib/html/BaseHandlerTag.java,v 
1.3.2.3 2001/06/13 03:44:29 craigmcc Exp $
  + * $Revision: 1.3.2.3 $
  + * $Date: 2001/06/13 03:44:29 $
    *
    * ====================================================================
    *
  @@ -71,7 +71,7 @@
    * appropriate implementations of these.
    *
    * @author Don Clasen
  - * @version $Revision: 1.3.2.2 $ $Date: 2001/06/10 03:51:40 $
  + * @version $Revision: 1.3.2.3 $ $Date: 2001/06/13 03:44:29 $
    */
   
   public abstract class BaseHandlerTag extends BodyTagSupport {
  @@ -162,6 +162,12 @@
       /** Identifier associated with component.  */
       private String styleId = null;
   
  +// Other Common Attributes
  +
  +    /** The advisory title of this element. */
  +    private String title = null;
  +
  +
       // ------------------------------------------------------------- Properties
   
   //  Navigation Management
  @@ -387,6 +393,19 @@
           return styleId;
       }
   
  +// Other Common Elements
  +
  +    /** Returns the advisory title attribute. */
  +    public String getTitle() {
  +        return title;
  +    }
  +
  +    /** Sets the advisory title attribute. */
  +    public void setTitle(String title) {
  +        this.title = title;
  +    }
  +
  +
       // --------------------------------------------------------- Public Methods
   
   
  @@ -417,6 +436,7 @@
        style = null;
        styleClass = null;
           styleId = null;
  +        title = null;
   
       }
   
  @@ -443,6 +463,11 @@
           if (styleId != null) {
               styles.append(" id=\"");
               styles.append(styleId);
  +            styles.append("\"");
  +        }
  +        if (title != null) {
  +            styles.append(" title=\"");
  +            styles.append(title);
               styles.append("\"");
           }
           return styles.toString();
  
  
  

Reply via email to