|
|||||||||
| Home >> All >> org >> jfree >> report >> filter >> [ templates overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.jfree.report.filter.templates
Class NumberFieldTemplate

java.lang.Objectorg.jfree.report.filter.templates.AbstractTemplate
org.jfree.report.filter.templates.NumberFieldTemplate
- All Implemented Interfaces:
- java.lang.Cloneable, org.jfree.report.filter.DataRowConnectable, org.jfree.report.filter.DataSource, java.io.Serializable, Template
- public class NumberFieldTemplate
- extends AbstractTemplate
- implements org.jfree.report.filter.DataRowConnectable
- extends AbstractTemplate
A number field template.
| Field Summary | |
private org.jfree.report.filter.DataRowDataSource |
dataRowDataSource
A data-row accessor. |
private org.jfree.report.filter.DecimalFormatFilter |
decimalFormatFilter
A decimal format filter. |
private org.jfree.report.filter.StringFilter |
stringFilter
A string filter. |
| Fields inherited from class org.jfree.report.filter.templates.AbstractTemplate |
|
| Constructor Summary | |
NumberFieldTemplate()
Creates a new number field template. |
|
| Method Summary | |
java.lang.Object |
clone()
Clones the template. |
void |
connectDataRow(org.jfree.report.DataRow row)
Connects a org.jfree.report.DataRow to the data source. |
void |
disconnectDataRow(org.jfree.report.DataRow row)
Releases the connection to the data row. |
java.text.DecimalFormat |
getDecimalFormat()
Returns the number formatter. |
java.lang.String |
getField()
Returns the field name. |
java.lang.String |
getFormat()
Returns the format string. |
java.lang.String |
getNullValue()
Returns the string that represents a null value. |
java.lang.Object |
getValue()
Returns the current value for the data source. |
void |
setDecimalFormat(java.text.DecimalFormat decimalFormat)
Sets the number formatter. |
void |
setField(java.lang.String field)
Sets the field name. |
void |
setFormat(java.lang.String format)
Sets the format string. |
void |
setNullValue(java.lang.String nullValue)
Sets the string that represents a null value. |
| 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 |
decimalFormatFilter
private org.jfree.report.filter.DecimalFormatFilter decimalFormatFilter
- A decimal format filter.
dataRowDataSource
private org.jfree.report.filter.DataRowDataSource dataRowDataSource
- A data-row accessor.
stringFilter
private org.jfree.report.filter.StringFilter stringFilter
- A string filter.
| Constructor Detail |
NumberFieldTemplate
public NumberFieldTemplate()
- Creates a new number field template.
| Method Detail |
getDecimalFormat
public java.text.DecimalFormat getDecimalFormat()
- Returns the number formatter.
setDecimalFormat
public void setDecimalFormat(java.text.DecimalFormat decimalFormat)
- Sets the number formatter.
getFormat
public java.lang.String getFormat()
- Returns the format string.
setFormat
public void setFormat(java.lang.String format)
- Sets the format string.
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 string that represents a
nullvalue.
setNullValue
public void setNullValue(java.lang.String nullValue)
- Sets the string that represents a
nullvalue.
getValue
public java.lang.Object getValue()
- Returns the current value for the data source.
- Specified by:
getValuein interfaceorg.jfree.report.filter.DataSource
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
- Clones the template.
- Specified by:
clonein interfaceorg.jfree.report.filter.DataSource- Overrides:
clonein classAbstractTemplate
connectDataRow
public void connectDataRow(org.jfree.report.DataRow row) throws java.lang.IllegalStateException
- Connects a org.jfree.report.DataRow to the data source.
- Specified by:
connectDataRowin interfaceorg.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
IllegalStateExceptionis thrown to indicate the programming error.- Specified by:
disconnectDataRowin interfaceorg.jfree.report.filter.DataRowConnectable
|
|||||||||
| Home >> All >> org >> jfree >> report >> filter >> [ templates overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC