|
|||||||||||||||||||
| 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 | |||||||||||||||
| ReadOnlyValueModel.java | - | 0% | 0% | 0% |
|
||||||||||||||
| 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.widget; |
|
| 9 |
|
|
| 10 |
|
|
| 11 |
/** |
|
| 12 |
* A value model with a value that can not be modified, useful for creating dynamic content by |
|
| 13 |
* creating an anonymous class overriding the getValue-method. |
|
| 14 |
* |
|
| 15 |
* <!-- $Id: ReadOnlyValueModel.java,v 1.2 2002/10/07 19:49:21 tirsen Exp $ --> |
|
| 16 |
* |
|
| 17 |
* @author $Author: tirsen $ |
|
| 18 |
* @version $Revision: 1.2 $ |
|
| 19 |
*/ |
|
| 20 |
public class ReadOnlyValueModel extends BasicValueModel |
|
| 21 |
{
|
|
| 22 | 0 |
public ReadOnlyValueModel(Object value) |
| 23 |
{
|
|
| 24 | 0 |
setValue(value); |
| 25 |
} |
|
| 26 |
|
|
| 27 | 0 |
public ReadOnlyValueModel() |
| 28 |
{
|
|
| 29 |
} |
|
| 30 |
|
|
| 31 | 0 |
public boolean isReadOnly() |
| 32 |
{
|
|
| 33 | 0 |
return true; |
| 34 |
} |
|
| 35 |
} |
|
| 36 |
|
|
||||||||||