Clover coverage report - brownies library - 1.0-beta-1
Coverage timestamp: 月 8 16 2004 17:14:42 GMT+09:00
file stats: LOC: 98   Methods: 8
NCLOC: 45   Classes: 1
30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover
 
 Source file Conditionals Statements Methods TOTAL
AbstractLinkRowRenderer.java 0% 0% 0% 0%
coverage
 1   
 /*
 2   
  * Joey and its relative products are published under the terms
 3   
  * of the Apache Software License.
 4   
  */
 5   
 /*
 6   
  * Created on 2004/01/04
 7   
  */
 8   
 package org.asyrinx.brownie.tapestry.components.link;
 9   
 
 10   
 import org.apache.tapestry.IMarkupWriter;
 11   
 import org.apache.tapestry.IRequestCycle;
 12   
 import org.apache.tapestry.components.ILinkComponent;
 13   
 import org.asyrinx.brownie.core.lang.StringUtils;
 14   
 
 15   
 /**
 16   
  * @author akima
 17   
  */
 18   
 public abstract class AbstractLinkRowRenderer extends
 19   
         AbstractScriptLinkRenderer {
 20   
 
 21   
     /**
 22   
      * @param scriptName
 23   
      */
 24  0
     public AbstractLinkRowRenderer(String scriptName) {
 25  0
         super(scriptName);
 26   
     }
 27   
 
 28   
     public static final String CLICK_LINK_ROW_METHOD_NAME = "clickLinkRow";
 29   
 
 30   
     public static final String MOSUE_OVER_LINK_ROW_METHOD_NAME = "mouseOverLinkRow";
 31   
 
 32   
     public static final String MOSUE_OUT_LINK_ROW_METHOD_NAME = "mouseOutLinkRow";
 33   
 
 34   
     /**
 35   
      * @see org.asyrinx.brownie.tapestry.components.link.AbstractScriptLinkRenderer#renderBeginTag(org.apache.tapestry.IMarkupWriter,
 36   
      *      org.apache.tapestry.IRequestCycle,
 37   
      *      org.apache.tapestry.components.ILinkComponent)
 38   
      */
 39  0
     protected void renderBeginTag(IMarkupWriter writer, IRequestCycle cycle,
 40   
             ILinkComponent linkComponent) {
 41  0
         if (getHasBody())
 42  0
             writer.begin(getElement());
 43   
         else
 44  0
             writer.beginEmpty(getElement());
 45  0
         writer.attribute("onclick", CLICK_LINK_ROW_METHOD_NAME + "(this)");
 46  0
         writer.attribute("onmouseover", MOSUE_OVER_LINK_ROW_METHOD_NAME
 47   
                 + "(this)");
 48  0
         writer.attribute("onmouseout", MOSUE_OUT_LINK_ROW_METHOD_NAME
 49   
                 + "(this)");
 50   
     }
 51   
 
 52   
     /**
 53   
      * @return
 54   
      */
 55  0
     private String getElement() {
 56  0
         return "tr";
 57   
     }
 58   
 
 59   
     /**
 60   
      * this method is called from ScriptLinkRenderer.script
 61   
      */
 62  0
     public boolean isSelectStyleClassAvailable() {
 63  0
         return !StringUtils.isEmpty(getSelectStyleClass());
 64   
     }
 65   
 
 66   
     private String selectBgColor = "lightseagreen";
 67   
 
 68   
     private String selectStyleClass = "";
 69   
 
 70   
     /**
 71   
      * @return
 72   
      */
 73  0
     public String getSelectBgColor() {
 74  0
         return selectBgColor;
 75   
     }
 76   
 
 77   
     /**
 78   
      * @return
 79   
      */
 80  0
     public String getSelectStyleClass() {
 81  0
         return selectStyleClass;
 82   
     }
 83   
 
 84   
     /**
 85   
      * @param string
 86   
      */
 87  0
     public void setSelectBgColor(String string) {
 88  0
         selectBgColor = string;
 89   
     }
 90   
 
 91   
     /**
 92   
      * @param string
 93   
      */
 94  0
     public void setSelectStyleClass(String string) {
 95  0
         selectStyleClass = string;
 96   
     }
 97   
 
 98   
 }