|
|||||||||||||||||||
| 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 | |||||||||||||||
| Menu.java | 50% | 100% | 100% | 87,5% |
|
||||||||||||||
| 1 |
/* |
|
| 2 |
* Angkor Web Framework |
|
| 3 |
* |
|
| 4 |
* Distributable under LGPL license. |
|
| 5 |
* See terms of license at gnu.org. |
|
| 6 |
*/ |
|
| 7 |
package com.tirsen.angkor.widget; |
|
| 8 |
|
|
| 9 |
import com.tirsen.angkor.RenderContext; |
|
| 10 |
|
|
| 11 |
import java.io.IOException; |
|
| 12 |
|
|
| 13 |
/** |
|
| 14 |
* |
|
| 15 |
* |
|
| 16 |
* <!-- $Id: Menu.java,v 1.5 2002/10/09 21:37:37 tirsen Exp $ --> |
|
| 17 |
* <!-- $Author: tirsen $ --> |
|
| 18 |
* |
|
| 19 |
* @author Jon Tirsén (tirsen@users.sourceforge.net) |
|
| 20 |
* @version $Revision: 1.5 $ |
|
| 21 |
*/ |
|
| 22 |
public class Menu extends Container |
|
| 23 |
{
|
|
| 24 | 2 |
public void render(RenderContext context) throws IOException |
| 25 |
{
|
|
| 26 | 2 |
if (isVisible()) |
| 27 |
{
|
|
| 28 | 2 |
context.startTag("P id=\"" + getId() + "\"");
|
| 29 | 2 |
renderChildren(context); |
| 30 | 2 |
context.emptyTag("HR");
|
| 31 | 2 |
context.endTag("P");
|
| 32 |
} |
|
| 33 |
} |
|
| 34 |
} |
|
| 35 |
|
|
||||||||||