|
|||||||||||||||||||
| 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 | |||||||||||||||
| EmptyView.java | - | 75% | 75% | 75% |
|
||||||||||||||
| 1 |
/* |
|
| 2 |
* Angkor Web Framework |
|
| 3 |
* |
|
| 4 |
* Distributable under LGPL license. |
|
| 5 |
* See terms of license at gnu.org. |
|
| 6 |
*/ |
|
| 7 |
|
|
| 8 |
package com.tirsen.angkor; |
|
| 9 |
|
|
| 10 |
import java.io.IOException; |
|
| 11 |
|
|
| 12 |
/** |
|
| 13 |
* An empty view, you can't see it, you can't touch it, you can't smell it, it doesn't exist. |
|
| 14 |
* |
|
| 15 |
* <!-- $Id: EmptyView.java,v 1.4 2002/10/13 13:37:26 tirsen Exp $ --> |
|
| 16 |
* <!-- $Author: tirsen $ --> |
|
| 17 |
* |
|
| 18 |
* @author Jon Tirs´n (tirsen@users.sourceforge.net) |
|
| 19 |
* @version $Revision: 1.4 $ |
|
| 20 |
*/ |
|
| 21 |
public class EmptyView implements View |
|
| 22 |
{
|
|
| 23 |
public static final View EMPTY_VIEW = new EmptyView(); |
|
| 24 |
|
|
| 25 | 1 |
public boolean isVisible() |
| 26 |
{
|
|
| 27 | 1 |
return false; |
| 28 |
} |
|
| 29 |
|
|
| 30 | 0 |
public void setVisible(boolean visible) |
| 31 |
{
|
|
| 32 |
} |
|
| 33 |
|
|
| 34 | 0 |
public boolean isParsing() |
| 35 |
{
|
|
| 36 | 0 |
return false; |
| 37 |
} |
|
| 38 |
|
|
| 39 | 1 |
public String uniqueId(RenderContext context) |
| 40 |
{
|
|
| 41 | 1 |
return null; |
| 42 |
} |
|
| 43 |
|
|
| 44 | 2 |
public View getContainer() |
| 45 |
{
|
|
| 46 | 2 |
return null; |
| 47 |
} |
|
| 48 |
|
|
| 49 | 1 |
public void setContainer(View container) |
| 50 |
{
|
|
| 51 |
// do nothing, it's the empty view remember |
|
| 52 |
} |
|
| 53 |
|
|
| 54 | 1 |
public void render(RenderContext context) throws IOException |
| 55 |
{
|
|
| 56 |
// do nothing, it's the empty view remember |
|
| 57 |
} |
|
| 58 |
|
|
| 59 | 1 |
public void parse(RenderContext context) |
| 60 |
{
|
|
| 61 |
// do nothing, it's the empty view remember |
|
| 62 |
} |
|
| 63 |
} |
|
| 64 |
|
|
||||||||||