Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.jfree.report.filter.templates
Class StringFieldTemplate  view StringFieldTemplate download StringFieldTemplate.java

java.lang.Object
  extended byorg.jfree.report.filter.templates.AbstractTemplate
      extended byorg.jfree.report.filter.templates.StringFieldTemplate
All Implemented Interfaces:
java.lang.Cloneable, org.jfree.report.filter.DataRowConnectable, org.jfree.report.filter.DataSource, java.io.Serializable, Template

public class StringFieldTemplate
extends AbstractTemplate
implements org.jfree.report.filter.DataRowConnectable

A string field template.


Field Summary
private  org.jfree.report.filter.DataRowDataSource dataRowDataSource
          The data-row data source.
private  org.jfree.report.filter.StringFilter stringFilter
          A string filter.
 
Fields inherited from class org.jfree.report.filter.templates.AbstractTemplate
 
Constructor Summary
StringFieldTemplate()
          Creates a new string field template.
 
Method Summary
 java.lang.Object clone()
          Clones the template.
 void connectDataRow(org.jfree.report.DataRow row)
          Connects the DataRow to the data source.
 void disconnectDataRow(org.jfree.report.DataRow row)
          Releases the connection to the data row.
 java.lang.String getField()
          Returns the field name.
 java.lang.String getNullValue()
          Returns the value displayed by the field when the data source value is null.
 java.lang.Object getValue()
          Returns the current value for the data source.
 void setField(java.lang.String field)
          Sets the field name.
 void setNullValue(java.lang.String nullValue)
          Sets the value displayed by the field when the data source value is null.
 
Methods inherited from class org.jfree.report.filter.templates.AbstractTemplate
getInstance, getName, setName
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dataRowDataSource

private org.jfree.report.filter.DataRowDataSource dataRowDataSource
The data-row data source.


stringFilter

private org.jfree.report.filter.StringFilter stringFilter
A string filter.

Constructor Detail

StringFieldTemplate

public StringFieldTemplate()
Creates a new string field template.

Method Detail

getField

public java.lang.String getField()
Returns the field name.


setField

public void setField(java.lang.String field)
Sets the field name.


getNullValue

public java.lang.String getNullValue()
Returns the value displayed by the field when the data source value is null.


setNullValue

public void setNullValue(java.lang.String nullValue)
Sets the value displayed by the field when the data source value is null.


getValue

public java.lang.Object getValue()
Returns the current value for the data source.

Specified by:
getValue in interface org.jfree.report.filter.DataSource

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Clones the template.

Specified by:
clone in interface org.jfree.report.filter.DataSource
Overrides:
clone in class AbstractTemplate

connectDataRow

public void connectDataRow(org.jfree.report.DataRow row)
                    throws java.lang.IllegalStateException
Connects the DataRow to the data source.

Specified by:
connectDataRow in interface org.jfree.report.filter.DataRowConnectable

disconnectDataRow

public void disconnectDataRow(org.jfree.report.DataRow row)
                       throws java.lang.IllegalStateException
Releases the connection to the data row.

If no data row is connected, an IllegalStateException is thrown to indicate the programming error.

Specified by:
disconnectDataRow in interface org.jfree.report.filter.DataRowConnectable