Clover coverage report - brownies library - 1.0-beta-1 Coverage timestamp: 月 8 16 2004 17:14:42 GMT+09:00 FRAMES NO FRAMES |
file stats: | LOC: | 54 |  | Methods: | 3
| NCLOC: | 25 |  | 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
AbstractDesktopComponent.java | 0% | 0% | 0% | 0% |

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/08
7 |  |
      */
8 |  |
     package org.asyrinx.brownie.tapestry.components.layer;
9 |  |
10 |  |
     import java.util.Map;
11 |  |
12 |  |
     import org.apache.tapestry.ApplicationRuntimeException;
13 |  |
     import org.apache.tapestry.IMarkupWriter;
14 |  |
     import org.apache.tapestry.IRequestCycle;
15 |  |
     import org.apache.tapestry.Tapestry;
16 |  |
17 |  |
     /**
18 |  |
      * @author akima
19 |  |
      */
20 |  |
     public abstract class AbstractDesktopComponent extends AbstractLayerComponent {
21 |  |
22 |  |
         /**
23 |  |
          * @param scriptName
24 |  |
          */
25 | 0 |
         protected AbstractDesktopComponent(String scriptName) {
26 | 0 |
             super(scriptName);
27 |  |
         }
28 |  |
29 |  |
         /**
30 |  |
          * @see org.asyrinx.brownie.tapestry.script.AbstractScriptComponent#checkBeforeRender(org.apache.tapestry.IMarkupWriter,
31 |  |
          *      org.apache.tapestry.IRequestCycle)
32 |  |
          */
33 | 0 |
         protected void checkBeforeRender(IMarkupWriter writer, IRequestCycle cycle) {
34 | 0 |
             if (writer == null)
35 | 0 |
                 throw new ApplicationRuntimeException("no way to write!", this,
36 |  |
                         null, null);
37 | 0 |
             final Desktop desktop = Desktop.get(cycle);
38 | 0 |
             if (desktop == null)
39 | 0 |
                 throw new ApplicationRuntimeException(
40 |  |
                         Tapestry
41 |  |
                                 .getMessage("AbstractDesktopComponent.must-be-contained-by-form"),
42 |  |
                         this, null, null);
43 |  |
         }
44 |  |
45 |  |
         /**
46 |  |
          * @see org.asyrinx.brownie.tapestry.components.layer.AbstractLayerComponent#prepareScriptSymbols(java.util.Map,
47 |  |
          *      org.apache.tapestry.IRequestCycle)
48 |  |
          */
49 | 0 |
         public void prepareScriptSymbols(Map symbols, IRequestCycle cycle) {
50 | 0 |
             super.prepareScriptSymbols(symbols, cycle);
51 | 0 |
             symbols.put("desktop_id", Desktop.get(cycle).getStyleId());
52 |  |
         }
53 |  |
54 |  |
     }