portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject cvs commit: jakarta-jetspeed/src/java/org/apache/jetspeed/util/template JetspeedTemplateLink.java
Date Mon, 11 Jun 2001 07:06:32 GMT
taylor      01/06/11 00:06:32

  Modified:    src/java/org/apache/jetspeed/util/template
                        JetspeedTemplateLink.java
  Log:
  added new panel key "select-panel" to the jlink tool for selecting the panel in a card portlet
controller. For example: $jlink.setPanel("User")
  
  Revision  Changes    Path
  1.4       +23 -4     jakarta-jetspeed/src/java/org/apache/jetspeed/util/template/JetspeedTemplateLink.java
  
  Index: JetspeedTemplateLink.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/util/template/JetspeedTemplateLink.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- JetspeedTemplateLink.java	2001/04/03 00:27:34	1.3
  +++ JetspeedTemplateLink.java	2001/06/11 07:06:27	1.4
  @@ -65,7 +65,7 @@
    * It is inserted into the template context by the JetspeedVelocityPage.
    *
    * @author <a href="mailto:raphael@apache.org">RaphaŽl Luta</a>
  - * @version $Id: JetspeedTemplateLink.java,v 1.3 2001/04/03 00:27:34 raphael Exp $
  + * @version $Id: JetspeedTemplateLink.java,v 1.4 2001/06/11 07:06:27 taylor Exp $
    */
   public class JetspeedTemplateLink
       extends TemplateLink
  @@ -79,7 +79,8 @@
       private static final String ACTION_KEY = "action";
       private static final String SCREEN_KEY = "screen";
       private static final String TEMPLATE_KEY = "template";
  -        
  +    private static final String PANEL_KEY = "select-panel";        
  +
       /**
        * Empty constructor.for introspection
        */
  @@ -98,9 +99,9 @@
       }
   
       /** 
  -     * Add a protlet reference in the link
  +     * Add a portlet reference in the link
        *
  -     * @param portle the name of the portlet to link to
  +     * @param portlet the name of the portlet to link to
        * @return a self reference for easy link construction in template
        */
       public DynamicURI setPortlet(String portlet) {
  @@ -144,4 +145,22 @@
       public String getPageKey() {
           return TEMPLATE_KEY;
       }
  +
  +    /** 
  +     * Add a select-panel reference in the link
  +     *
  +     * @param portlet the name of the portlet to link to
  +     * @return a self reference for easy link construction in template
  +     */
  +    public DynamicURI setPanel(String panel) {
  +        return addPathInfo(getPanelKey(), panel);
  +    }
  +    
  +     /** 
  +     * @return the panel parameter name
  +     */
  +    public String getPanelKey() {
  +        return PANEL_KEY;
  +    }
  +
   }
  
  
  

---------------------------------------------------------------------
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