Klasse SubreportLink
java.lang.Object
com.inet.report.SubreportLink
- Alle implementierten Schnittstellen:
NodeParser, com.inet.report.ReferenceHolder, Serializable
public class SubreportLink
extends Object
implements Serializable, com.inet.report.ReferenceHolder, NodeParser
A
This class is part of the
SubreportLink object links a field in main report with a field in subreport with use of a prompt field in the subreport.
The values of the field in main report will used as prompt values in the subreport.
These prompt values will be used in the record selection formula to compare with
the values of the field in the subreport. The PromptField will be generated
automatically, so if you want to use your own PromptField add one to the Fields
set and use setPromptField method.
This class is part of the
RDC.- Siehe auch:
-
Feldübersicht
Felder -
Methodenübersicht
Modifikator und TypMethodeBeschreibungfinal voidaddReferencedObject(com.inet.report.ReferencedObject reference) FOR INTERNAL USE ONLYbooleanCompares two SubreportLink objects for equality.Gets the main Engine to which the subreport is linked.Gets the Field to that the field in subreport is linked.Returns the PromptField of the subreport, that is linked with the DatabaseField from the main report.final intFOR INTERNAL USE ONLYfinal intFOR INTERNAL USE ONLYfinal com.inet.report.ReferencedObject[]FOR INTERNAL USE ONLYGets the Engine of the subreport.Returns the field in the subreport, that is used to compare with the value of the links PromptField in the record selection formula.intindexOf()Returns the index of this subreport link in the list of subreport links of the subreport.booleanFOR INTERNAL USE ONLY Internal method for reading report XMLvoidFOR INTERNAL USE ONLY Internal method for reading report XMLparseElement(com.inet.report.parser.XMLTag group, String tag, Attributes atts, Map<String, Object> parserMap) FOR INTERNAL USE ONLY Internal method for reading report XMLvoidparseEndElement(com.inet.report.parser.XMLTag group, String tag, Map<String, Object> parserMap) FOR INTERNAL USE ONLY Internal method for reading report XMLvoidFOR INTERNAL USE ONLY Internal method for reading report XMLfinal voidremoveReferencedObject(com.inet.report.ReferencedObject reference) FOR INTERNAL USE ONLYfinal voidFOR INTERNAL USE ONLYvoidsetMainField(Field field) Sets the field in the mainreport that value will be used to set the value of the PromptField in the subreport.setMainField(Field field, boolean generatePrompt) Sets the Field in the mainreport that value will be used to set the value of the PromptField in the subreport.voidSet the PromptField of the subreport, that is linked with the DatabaseField from the main report.final voidFOR INTERNAL USE ONLYvoidsetSubField(Field field) Sets the Field in the subreport, that is used to compare with the value of the links PromptField in the record selection formula.
-
Felddetails
-
SUBFIELD_SYMBOL
-
SUBFIELD
public static final int SUBFIELDFOR INTERNAL USE ONLY- Siehe auch:
-
SUBFIELD_TYPE_SYMBOL
-
SUBFIELD_TYPE
public static final int SUBFIELD_TYPEFOR INTERNAL USE ONLY- Siehe auch:
-
-
Methodendetails
-
getMainEngine
Gets the main Engine to which the subreport is linked.- Gibt zurück:
- The Engine object of the main report of this sub report link.
- Seit:
- 6.0
-
getSubEngine
Gets the Engine of the subreport.- Gibt zurück:
- The Engine object of the sub report of this sub report link.
- Seit:
- 6.0
-
getMainField
Gets the Field to that the field in subreport is linked.- Gibt zurück:
- The Field that values are used for the subreports PromptField.
- Seit:
- 6.0
-
setMainField
Sets the Field in the mainreport that value will be used to set the value of the PromptField in the subreport. A new prompt field for the subreport will be generated.- Parameter:
field- The Field that gives the values for the subreports PromptField.generatePrompt- iftruean prompt will be automatically generated if neccessary.- Gibt zurück:
- the prompt field used by this link
- Löst aus:
ReportException- If the generation of the prompt field for the sub report failed.IllegalArgumentException- If the given field doesnt exist in main report.- Seit:
- 6.0
- Siehe auch:
-
setMainField
Sets the field in the mainreport that value will be used to set the value of the PromptField in the subreport. A new prompt field for the subreport will be generated. An update of the record selection formula of the subreport is performed.- Parameter:
field- The Field that gives the values for the subreports PromptField.- Löst aus:
ReportException- If the generation of the prompt field for the sub report failed.- Seit:
- 6.0
- Siehe auch:
-
setSubField
Sets the Field in the subreport, that is used to compare with the value of the links PromptField in the record selection formula. An update of the record selection formula of the subreport is performed.- Parameter:
field- - The field to compare with.- Seit:
- 6.0
- Siehe auch:
-
getSubField
Returns the field in the subreport, that is used to compare with the value of the links PromptField in the record selection formula.- Gibt zurück:
- The field to compare with prompt fields value.
- Löst aus:
ReportException- If this sub report link is invalid.- Seit:
- 6.0
- Siehe auch:
-
setPromptField
Set the PromptField of the subreport, that is linked with the DatabaseField from the main report. An update of the record selection formula of the subreport is performed.- Parameter:
p- The new prompt field which should be used for this subreport link.- Seit:
- 7.0
- Siehe auch:
-
getPromptField
Returns the PromptField of the subreport, that is linked with the DatabaseField from the main report.- Gibt zurück:
- The PromptField of this link.
- Seit:
- 7.0
- Siehe auch:
-
equals
Compares two SubreportLink objects for equality. Returns a boolean that indicates whether the SubreportLink object is equivalent to the specified object. -
indexOf
public int indexOf()Returns the index of this subreport link in the list of subreport links of the subreport.- Gibt zurück:
- The index of this sub report link or -1 if this sub report link is not valid anymore.
- Seit:
- 6.0
-
addReferencedObject
public final void addReferencedObject(com.inet.report.ReferencedObject reference) FOR INTERNAL USE ONLY- Angegeben von:
addReferencedObjectin Schnittstellecom.inet.report.ReferenceHolder- Seit:
- 6.0
-
removeReferencedObject
public final void removeReferencedObject(com.inet.report.ReferencedObject reference) FOR INTERNAL USE ONLY- Angegeben von:
removeReferencedObjectin Schnittstellecom.inet.report.ReferenceHolder- Seit:
- 6.0
-
getRealReferencedObjectCount
public final int getRealReferencedObjectCount()FOR INTERNAL USE ONLY- Angegeben von:
getRealReferencedObjectCountin Schnittstellecom.inet.report.ReferenceHolder- Seit:
- 6.0
-
getReferencedObjectCount
public final int getReferencedObjectCount()FOR INTERNAL USE ONLY- Angegeben von:
getReferencedObjectCountin Schnittstellecom.inet.report.ReferenceHolder
-
getReferencedObjects
public final com.inet.report.ReferencedObject[] getReferencedObjects()FOR INTERNAL USE ONLY- Angegeben von:
getReferencedObjectsin Schnittstellecom.inet.report.ReferenceHolder
-
resetReferences
public final void resetReferences()FOR INTERNAL USE ONLY- Angegeben von:
resetReferencesin Schnittstellecom.inet.report.ReferenceHolder
-
setReferences
public final void setReferences()FOR INTERNAL USE ONLY- Angegeben von:
setReferencesin Schnittstellecom.inet.report.ReferenceHolder
-
isDOMParser
public boolean isDOMParser()FOR INTERNAL USE ONLY Internal method for reading report XMLReturns whether this node is to be read via a DOM parser.
- Angegeben von:
isDOMParserin SchnittstelleNodeParser- Gibt zurück:
- true if this node is to be read via a DOM parser, false otherwise.
-
parseDOM
FOR INTERNAL USE ONLY Internal method for reading report XMLParses the node.
- Angegeben von:
parseDOMin SchnittstelleNodeParser- Parameter:
node- the nodeparserMap- The map of current Parser.- Löst aus:
FatalParserException- if an exception occurs which causes the report to not be able to be read: causes the abortion of the reading of the report.
-
parseElement
public NodeParser parseElement(com.inet.report.parser.XMLTag group, String tag, Attributes atts, Map<String, Object> parserMap) throws FatalParserExceptionFOR INTERNAL USE ONLY Internal method for reading report XMLParses an XML node with the given information, and returns either a sub-element which was created as a result, or null if no sub-element was created, i.e. the information was applied to the ReportComponent itself. Note that the parsing is highly tolerant, i.e. exceptions are intercepted and suppressed if at all possible.
- Angegeben von:
parseElementin SchnittstelleNodeParser- Parameter:
group- XMLTag of the current node to be parsed, or null if there is no such current group. An XMLTag is a group of nodes bundled together, usually it is a Properties node such as CommonProperties, BorderProperties, etc.tag- The XMLTag to be parsedatts- The set of attributes in the current XMLTagparserMap- The map of current Parser.- Gibt zurück:
- The NodeParser sub-element if one needed to be created, or null if none was created.
- Löst aus:
FatalParserException- if an exception occurs which causes the report to not be able to be read: causes the abortion of the reading of the report.
-
parseEndElement
public void parseEndElement(com.inet.report.parser.XMLTag group, String tag, Map<String, Object> parserMap) throws FatalParserExceptionFOR INTERNAL USE ONLY Internal method for reading report XMLReceive notification of the end of an XML tag.
- Angegeben von:
parseEndElementin SchnittstelleNodeParser- Parameter:
group- XMLTag of the current node to be parsed, or null if there is no such current group.tag- The XMLTag to be parsedparserMap- The map of current Parser.- Löst aus:
FatalParserException- if an exception occurs which causes the report to not be able to be read: causes the abortion of the reading of the report.
-
parseText
FOR INTERNAL USE ONLY Internal method for reading report XMLThis method is called if text was encountered in the context of this node. (Examples would be a formula's text or a text element's text)
- Angegeben von:
parseTextin SchnittstelleNodeParser- Parameter:
text- text encountered and to be storedparserMap- The map of current Parser.
-