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: | 76 |  | Methods: | 3
| NCLOC: | 35 |  | 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
PopupLink.java | - | 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.IMarkupWriter;
13 |  |
     import org.apache.tapestry.IRequestCycle;
14 |  |
15 |  |
     /**
16 |  |
      * @author akima
17 |  |
      */
18 |  |
     public abstract class PopupLink extends AbstractDesktopComponent {
19 |  |
20 |  |
         /**
21 |  |
          * @param scriptName
22 |  |
          */
23 | 0 |
         public PopupLink() {
24 | 0 |
             super("PopupLink.script");
25 | 0 |
             this.setBackGroundColor(null);
26 |  |
         }
27 |  |
28 |  |
         //    <input-symbol key="id" class="java.labg.String" required="yes"/>
29 |  |
         //    <input-symbol key="desktop_id" class="java.labg.String" required="yes"/>
30 |  |
         //    <input-symbol key="left" class="int" required="yes"/>
31 |  |
         //    <input-symbol key="top" class="int" required="yes"/>
32 |  |
         //    <input-symbol key="popup_id" class="java.labg.String" required="yes"/>
33 |  |
         /**
34 |  |
          * @see org.asyrinx.brownie.tapestry.script.AbstractScriptComponent#prepareScriptSymbols(java.util.Map,
35 |  |
          *      org.apache.tapestry.IRequestCycle)
36 |  |
          */
37 | 0 |
         public void prepareScriptSymbols(Map symbols, IRequestCycle cycle) {
38 | 0 |
             super.prepareScriptSymbols(symbols, cycle);
39 | 0 |
             symbols.put("popup_id", getPopupId());
40 |  |
         }
41 |  |
42 |  |
         /**
43 |  |
          * @see org.asyrinx.brownie.tapestry.script.AbstractScriptComponent#renderComponent(org.apache.tapestry.IMarkupWriter,
44 |  |
          *      org.apache.tapestry.IRequestCycle)
45 |  |
          */
46 | 0 |
         protected void renderComponent(IMarkupWriter writer, IRequestCycle cycle) {
47 | 0 |
             checkBeforeRender(writer, cycle);
48 | 0 |
             this.scriptWriter.execute(cycle);
49 |  |
50 | 0 |
             writer.begin("div");
51 | 0 |
             writer.attribute("id", getStyleId());
52 | 0 |
             writer.attribute("style", "VISIBILITY:hidden; TEXT-ALIGN:center; "
53 |  |
                     + toStyleValue());
54 | 0 |
             renderInformalParameters(writer, cycle);
55 | 0 |
             writer.println();
56 |  |
57 | 0 |
             writer.begin("a");
58 | 0 |
             writer.attribute("href", "javascript:void(0);");
59 | 0 |
             writer.attribute("onclick", "link_" + getStyleId() + "_click();");
60 | 0 |
             writer.attribute("style", "TEXT-DECORATION:none");
61 | 0 |
             writer.println();
62 |  |
63 | 0 |
             final IMarkupWriter nested = writer.getNestedWriter();
64 | 0 |
             renderBody(nested, cycle);
65 |  |
66 |  |
             // Close the nested writer, which dumps its buffered content
67 |  |
             // into its parent.
68 | 0 |
             nested.close();
69 | 0 |
             writer.end(); // <a>
70 | 0 |
             writer.end(); // <div>
71 |  |
         }
72 |  |
73 |  |
         abstract public String getPopupId();
74 |  |
75 |  |
         abstract public void setPopupId(String string);
76 |  |
     }