|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jrefinery.report.filter.templates.AbstractTemplate
com.jrefinery.report.filter.templates.ShapeFieldTemplate
A shape field template.
Constructor Summary | |
ShapeFieldTemplate()
Creates a new shape field template. |
Method Summary | |
java.lang.Object |
clone()
Clones the template. |
void |
connectDataRow(DataRow row)
Connects a DataRow to the data source. |
void |
disconnectDataRow(DataRow row)
Releases the connection to the data row. |
java.lang.String |
getField()
Returns the field name. |
java.lang.Object |
getValue()
Returns the current value for the data source. |
void |
setField(java.lang.String field)
Sets the field name. |
Methods inherited from class com.jrefinery.report.filter.templates.AbstractTemplate |
getInstance, getName, setName |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ShapeFieldTemplate()
Method Detail |
public java.lang.String getField()
public void setField(java.lang.String field)
field
- the field name.public java.lang.Object getValue()
getValue
in interface DataSource
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in interface DataSource
clone
in class AbstractTemplate
java.lang.CloneNotSupportedException
- this should never happen.public void connectDataRow(DataRow row) throws java.lang.IllegalStateException
DataRow
to the data source.
connectDataRow
in interface DataRowConnectable
row
- the data row.
java.lang.IllegalStateException
- if there is already a data row connected.public void disconnectDataRow(DataRow row) throws java.lang.IllegalStateException
If no data row is connected, an IllegalStateException
is thrown to indicate the
programming error.
disconnectDataRow
in interface DataRowConnectable
row
- the data row.
java.lang.IllegalStateException
- if there is already a data row connected.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |