You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by ta...@apache.org on 2001/06/11 09:06:32 UTC

cvs commit: jakarta-jetspeed/src/java/org/apache/jetspeed/util/template JetspeedTemplateLink.java

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