E
- the object on which the filter element is setpublic class FilterElementLink<E> extends FilterElement<E>
fatherisroot, linktoparent
Constructor and Description |
---|
FilterElementLink(DataObjectDefinition linkobject)
creates a filter element based on link
|
Modifier and Type | Method and Description |
---|---|
ArgumentContent |
getArgumentContent(java.lang.String suffix)
should return an argument content with as base the name of object, the name
of field, and the suffix
|
protected java.lang.String |
getBlankValue() |
java.lang.String[] |
getImportClasses()
provides the import classes to be put in the page
|
java.lang.String[] |
getImportClassesForAction(java.lang.String reportname)
provides he import classes to be put in the action
|
DataObjectDefinition |
getParent() |
protected boolean |
hasfilterafter()
A filter is considered as 'after' if it is a filter after the query was
performed
|
protected boolean |
hasfilterbefore()
A filter is considered as 'before' if it is a condition to be put in the
query to get children objects in the navigation
|
void |
writeFilterCriteria(SourceGenerator sg,
java.lang.String reportname)
The filter criteria for the page of the smart report
|
void |
writeFilterInDataGathering(SourceGenerator sg,
java.lang.String prefixforobject,
DataObjectDefinition reportroot,
java.lang.String reportname)
writes the filter code in the data gathering phase of the report
|
isHardCoded, setContext
public FilterElementLink(DataObjectDefinition linkobject)
linkobject
- link objectpublic DataObjectDefinition getParent()
getParent
in class FilterElement<E>
public ArgumentContent getArgumentContent(java.lang.String suffix)
FilterElement
getArgumentContent
in class FilterElement<E>
suffix
- suffix of the current node in the reportpublic void writeFilterCriteria(SourceGenerator sg, java.lang.String reportname) throws java.io.IOException
FilterElement
writeFilterCriteria
in class FilterElement<E>
sg
- source generator for the given filereportname
- name of the reportjava.io.IOException
- if anything bad happens while writing the filepublic java.lang.String[] getImportClasses()
FilterElement
getImportClasses
in class FilterElement<E>
protected boolean hasfilterbefore()
FilterElement
hasfilterbefore
in class FilterElement<E>
protected boolean hasfilterafter()
FilterElement
hasfilterafter
in class FilterElement<E>
public void writeFilterInDataGathering(SourceGenerator sg, java.lang.String prefixforobject, DataObjectDefinition reportroot, java.lang.String reportname) throws java.io.IOException
FilterElement
writeFilterInDataGathering
in class FilterElement<E>
sg
- source generatorprefixforobject
- step suffixreportroot
- root object of the reportreportname
- report namejava.io.IOException
- if anything bad happens while writing the filepublic java.lang.String[] getImportClassesForAction(java.lang.String reportname)
FilterElement
getImportClassesForAction
in class FilterElement<E>
reportname
- name of the reportprotected java.lang.String getBlankValue()
getBlankValue
in class FilterElement<E>