|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--org.jfree.report.function.AbstractExpression
|
+--org.jfree.report.function.AbstractFunction
|
+--org.jfree.report.function.ItemHideFunction
The ItemHideFunction hides equal values in a group. Only the first changed
value is printed. This function uses the property element to
define the name of the element in the ItemBand that should be made visible or
invisible by this function. The property field defines the field
in the datasource or the expression which should be used to determine the
visibility.
| Constructor Summary | |
ItemHideFunction()
Constructs an unnamed function. |
|
ItemHideFunction(java.lang.String name)
Constructs a named function. |
|
| Method Summary | |
java.lang.String |
getElement()
Returns the name of the element in the item band that should be set visible/invisible. |
java.lang.String |
getField()
Returns the field used by the function. |
Expression |
getInstance()
Return a completly separated copy of this function. |
java.lang.Object |
getValue()
Returns the function value, in this case the visibility of the defined element. |
boolean |
isIgnoreGroupBreaks()
|
boolean |
isIgnorePageBreaks()
|
void |
itemsAdvanced(ReportEvent event)
Receives notification that a row of data is being processed. |
void |
itemsStarted(ReportEvent event)
Resets the state of the function when a new ItemGroup has started. |
void |
pageCanceled(ReportEvent event)
Receives notification that a page was canceled by the ReportProcessor. |
void |
pageFinished(ReportEvent event)
Receives notification that a page is completed. |
void |
pageRolledBack(ReportEvent event)
This event is fired, whenever an automatic pagebreak has been detected and the report state had been reverted to the previous state. |
void |
pageStarted(ReportEvent event)
Receives notification that a new page is being started. |
void |
reportInitialized(ReportEvent event)
Receives notification that the report has started. |
void |
setElement(java.lang.String name)
Sets the name of the element in the item band that should be set visible/invisible. |
void |
setField(java.lang.String field)
Sets the field name for the function. |
void |
setIgnoreGroupBreaks(boolean ignoreGroupBreaks)
|
void |
setIgnorePageBreaks(boolean ignorePageBreaks)
|
| Methods inherited from class org.jfree.report.function.AbstractFunction |
clone,
groupFinished,
groupStarted,
itemsFinished,
reportDone,
reportFinished,
reportStarted |
| Methods inherited from class org.jfree.report.function.AbstractExpression |
getDataRow,
getDependencyLevel,
getName,
getReportConfiguration,
getResourceBundleFactory,
getRuntime,
isActive,
setActive,
setDependencyLevel,
setName,
setRuntime |
| Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public ItemHideFunction()
Make sure to set the function name before it is used, or function initialisation will fail.
public ItemHideFunction(java.lang.String name)
The field must be defined before using the function.
name - The function name.| Method Detail |
public boolean isIgnoreGroupBreaks()
public void setIgnoreGroupBreaks(boolean ignoreGroupBreaks)
public boolean isIgnorePageBreaks()
public void setIgnorePageBreaks(boolean ignorePageBreaks)
public java.lang.String getElement()
public void setElement(java.lang.String name)
name - the element name (must not be null).public java.lang.String getField()
The field name corresponds to a column name in the report's TableModel or to an expression.
public void setField(java.lang.String field)
The field name corresponds to a column name in the report's TableModel.
field - the field name (null not permitted).public void itemsAdvanced(ReportEvent event)
event - Information about the event.public void itemsStarted(ReportEvent event)
event - the report event.public java.lang.Object getValue()
public void pageCanceled(ReportEvent event)
event - The event.public void pageFinished(ReportEvent event)
event - The event.public void pageStarted(ReportEvent event)
event - The event.public Expression getInstance()
public void pageRolledBack(ReportEvent event)
event - public void reportInitialized(ReportEvent event)
event - the event.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||