Schnittstelle ElementContainer
- Alle Superschnittstellen:
SimpleElementContainer
- Alle bekannten Implementierungsklassen:
Section
The interface describes the methods to add some complex elements such as
multi-section lines, charts, subreports and crosstabs to the element container.
There are the methods for copy, move and paste elements too.
- Seit:
- 9.1
-
Methodenübersicht
Modifikator und TypMethodeBeschreibungAdds a new box to container and returns it.addChart2(ChartStyle style, int xpos, int ypos, int objwidth, int objheight) Adds a new chart element to the container and returns it.addCrossTab(int xpos, int ypos, SummaryField field) Adds the simplest possible cross table (at least on field for summarization) into this container and returns it.com.inet.report.FormFieldElementaddFormField(int xpos, int ypos, int objwidth, int objheight) Adds a new form field element to the container.com.inet.report.InteractiveSortingaddInteractiveSorting(Field field, int xpos, int ypos, int objwidth, int objheight) Adds a new InteractiveSorting element to the container.addSignatureForm(int xpos, int ypos, int objwidth, int objheight) Adds a new signature form element to the container and returns it.addSubreport(int xpos, int ypos, int objwidth, int objheight) Adds a new subreport element to the container and returns it.addSubreport(int xpos, int ypos, int objwidth, int objheight, String filename) Adds a new subreport element with definition from file to the container and returns it.addVerticalLine(int xpos, int ypos, int y2, Section endSection) Adds a new vertical line to the container and returns it.voidcopyContent(SimpleElementContainer source) Copies content and properties of the source container into this container.voidmoveElement(Element elem, SimpleElementContainer dest) Moves the elementelemfrom this container to the destination containerdest.pasteElement(Object copy) Paste a copy of an Element in this container.Von Schnittstelle geerbte Methoden SimpleElementContainer
addBox, addDatabasePicture, addFieldElement, addHorizontalLine, addJavaBean, addPicture, addPicture, addPicture, addPicture, addPicture, addText, addVerticalLine, getElements, getElementsV, getReportElement, getReportElementsCount, remove
-
Methodendetails
-
addBox
Adds a new box to container and returns it.- Parameter:
xpos- The horizontal offset in twips.ypos- The vertical offset in twips.objwidth- The width of the box in twips.objheight- The minimal height of the box in start section in twips.y2- The vertical offset of the end point in end sectionendSection- The section where the box ends- Gibt zurück:
- The created box element
- Seit:
- 9.1
-
addChart2
Chart2 addChart2(ChartStyle style, int xpos, int ypos, int objwidth, int objheight) throws IllegalArgumentException Adds a new chart element to the container and returns it. The chart type is defined by the parameter style. You can use e.g.BarStyle.BAR2Dfor a simple bar chart 2D. To see which chart types are allowed see the subclasses ofChartStyle. Initializes all properties with default values.- Parameter:
style- the style of chart.xpos- the x offset of the upper left corner in twips.ypos- the y offset of the upper left corner in twips.objwidth- the total width of the chart element in twips.objheight- the total height of the chart element in twips.- Gibt zurück:
- the new Chart2.
- Löst aus:
IllegalArgumentException- if the parameters width, height or chartType are negative.- Seit:
- 9.1
- Siehe auch:
-
addCrossTab
Adds the simplest possible cross table (at least on field for summarization) into this container and returns it. To make this cross table more complex use the add and append methods in classcom.inet.report.CrossTab.- Parameter:
xpos- The x position of the upper left corner of the whole cross table in twips..ypos- The y position of the upper left corner of the whole cross table in twips..field- The field to summarize in cross table.- Gibt zurück:
- The created Crosstab.
- Löst aus:
IllegalArgumentException- if the parameters x or y are negative- Seit:
- 9.1
- Siehe auch:
-
addSignatureForm
SignatureForm addSignatureForm(int xpos, int ypos, int objwidth, int objheight) throws IllegalArgumentException Adds a new signature form element to the container and returns it. The signature element is used only for PDF export.- Parameter:
xpos- the x position of the signature form element.ypos- the y position of the signature form element.objwidth- the width of the signature form element.objheight- the height of the signature form element.- Gibt zurück:
- the created signature form element.
- Löst aus:
IllegalArgumentException- if the parameters x, y, width or height are negative- Seit:
- 9.1
-
addSubreport
Subreport addSubreport(int xpos, int ypos, int objwidth, int objheight) throws IllegalArgumentException Adds a new subreport element to the container and returns it. Add-on is only possible if this report is a main report.- Parameter:
xpos- The x offset of the left upper corner of subreport frame.ypos- The y offset of the left upper corner of subreport frame.objwidth- The width of the subreport frame.objheight- The height of the subreport frame.- Gibt zurück:
- The created subreport element. You can get the engine of the subreport with method getEngine in class Subreport.
- Löst aus:
IllegalArgumentException- if the parameters x, y, width or height are negative.IllegalStateException- if the subreport is attempted to be added to a subreport- Seit:
- 9.1
-
addSubreport
Subreport addSubreport(int xpos, int ypos, int objwidth, int objheight, String filename) throws ReportException, MalformedURLException, FileNotFoundException Adds a new subreport element with definition from file to the container and returns it.- Parameter:
xpos- The x offset of the left upper corner of subreport frame.ypos- The y offset of the left upper corner of subreport frame.objwidth- The width of the subreport frame.objheight- The height of the subreport frame.filename- The file name of the subreport to insert.- Gibt zurück:
- The created subreport element. You can get the engine of the subreport with method getEngine in class Subreport.
- Löst aus:
MalformedURLException- Thrown to indicate that a malformed URL has occurred.ReportException- if Engine is not initialized or finished.FileNotFoundException- If no file for the subreport were found.IllegalStateException- if the subreport is attempted to be added to a subreport- Seit:
- 9.1
-
addFormField
com.inet.report.FormFieldElement addFormField(int xpos, int ypos, int objwidth, int objheight) Adds a new form field element to the container.- Parameter:
xpos- The x offset of the left upper corner of the form field.ypos- The y offset of the left upper corner of the form field.objwidth- The width of the form field.objheight- The height of the form field.- Gibt zurück:
- the created form field element.
- Seit:
- 13.0
-
addInteractiveSorting
com.inet.report.InteractiveSorting addInteractiveSorting(Field field, int xpos, int ypos, int objwidth, int objheight) Adds a new InteractiveSorting element to the container.- Parameter:
field- the a group field or a sorting field which sorting should be interactive.xpos- The x offset of the left upper corner of the form field.ypos- The y offset of the left upper corner of the form field.objwidth- The width of the form field.objheight- The height of the form field.- Gibt zurück:
- the created form field element.
- Seit:
- 13.0
-
addVerticalLine
Adds a new vertical line to the container and returns it.- Parameter:
xpos- The horizontal offset of the start point in twips.ypos- The vertical offset of the start point in twips.y2- The vertical offset of the end point in end section in twips.endSection- The section where the line should end.- Gibt zurück:
- The created line element.
- Seit:
- 9.1
-
pasteElement
Paste a copy of an Element in this container. The parameter is a byte array representing a serialized Element . If the Element needs references to a field or a group then these objects must exist in this Engine, otherwise a ReportException will be thrown. The coordinates on that the element will be paste in the container are the coordinates of the copied Element.- Parameter:
copy- An Object created with the method Element.copy().- Gibt zurück:
- The inserted Element.
- Löst aus:
ReportException- If the Element cannot be created because of missing References.- Seit:
- 9.1
- Siehe auch:
-
copyContent
Copies content and properties of the source container into this container.- Parameter:
source- The container thats content and properties should copied.- Seit:
- 9.1
-
moveElement
Moves the elementelemfrom this container to the destination containerdest.- Parameter:
elem- The element, which should move to another container.dest- The destination container of movement.- Löst aus:
ReportException- will thrown ifdestorelemisnull.- Seit:
- 9.1
- Siehe auch:
-