org.jfree.report.filter
Class StaticDataSource
java.lang.Object
|
+--org.jfree.report.filter.StaticDataSource
- public class StaticDataSource
- extends java.lang.Object
- implements DataSource, java.io.Serializable
A data source that returns a constant value. An example is a label on a report.
- Author:
- Thomas Morgner
- See Also:
- Serialized Form
|
Method Summary |
java.lang.Object |
clone()
Clones the data source, although the enclosed 'static' value is not cloned. |
java.lang.Object |
getValue()
Returns the value of the data source. |
void |
setValue(java.lang.Object o)
Sets the value of the data source. |
| Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
StaticDataSource
public StaticDataSource()
- Default constructor.
StaticDataSource
public StaticDataSource(java.lang.Object o)
- Constructs a new static data source.
- Parameters:
o - The value.
setValue
public void setValue(java.lang.Object o)
- Sets the value of the data source.
- Parameters:
o - The value.
getValue
public java.lang.Object getValue()
- Returns the value of the data source.
- Specified by:
- getValue in interface DataSource
- Returns:
- The value.
clone
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
- Clones the data source, although the enclosed 'static' value is not cloned.
- Specified by:
- clone in interface DataSource
- Overrides:
- clone in class java.lang.Object
- Returns:
- a clone.
- Throws:
- java.lang.CloneNotSupportedException - this should never happen.