Package com.inet.designer
Interface DesignerDataModel
- All Known Implementing Classes:
AbstractDesignerDataModel,BasicDesignerDataModel
public interface DesignerDataModel
This interface allows the implementation of a custom data model for the designer.
The model is responsible for loading, saving and creating the report templates
as well as for restricting access to some menu options. Since this interface
may be extended in the future it is recommended to extend either
AbstractDesignerDataModel or
BasicDesignerDataModel.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intShows the database object type is: Commandstatic final intShows the database object type is: Connectionstatic final intShows the database object type is: Stored procedurestatic final intShows the database object type is: Stored procedure with parametersstatic final intShows the database object type is: System Tablestatic final intShows the database object type is: Tablestatic final intShows the database object type is: Viewstatic final intShows the database object type is: View with parameters -
Method Summary
Modifier and TypeMethodDescriptionvoidaddedElement(Element element) This method is called if the user has added an element to the report.voidaddedGroup(Group group) This method is called if a group was added to the report by the user.voidaddedSubreport(Engine engine) This method is called if a subreport was added to the current report.voidclosedReport(Engine engine) This method is called if a report was closed.voidclosedSubreport(Engine engine) This method is called if a subreport was closed by the user.createNewReport(Component parent) Creates a new report and returns its Engine if the creation was successful or null if it was not successful.creates a newSwingReportViewerand initializes it with the necessaryViewerContext, as well as piping its log stream to the appropriate position (viaSwingReportViewer.setLoggingStream(java.io.PrintStream).Returns the location of the application directory which is the directory where the designer is located in.ArrayList<com.inet.font.FontFamily>Returns a list of all available fonts for the designer.List<com.inet.font.FontFamily>fetches a list of fonts available on the repository configured for the designerbooleanisAddElementAllowed(int elementType) Check if it is allowed to add a element with the given type to the report.booleanChecks if groups may be added to the Report.booleanCheck if adding sections to the report is allowed.booleanChecks if reports may be closed.booleanCheck if the database configuration may be changed.booleanisDatabaseObjectVisible(int databaseObjectType, String databaseObjectName) Checks if the given database object should be visible in the database browser.booleanReturns whether the datasource manager dialog is accessible or not.booleanReturns whether the design of reports needs a connection.booleanReturns true if the templates supplied through i-net will be enabled or not.booleanReturns whether stored procedures marked as invalid should be selectable in the visual database wizard or not.booleanChecks if it is allowed to open reports.booleanChecks if the preview tab should be visible or not.booleanisRemoveElementAllowed(int elementType) Check if it is allowed to remove a element with the given type from the report.booleanChecks if groups may be removed.booleanChecks if removing sections from the report is allowed.booleanChecks if it is allowed to use the reopen menu.booleanReturns true if a new report shall be created using the ReportWizard.booleanChecks if it is allowed to save reports.booleanChecks if is allowed to save reports with a new name.booleanChecks if tables may be added or removed and if the links may be changed.loadReport(Component parent) Load a report.loadReportFrom(Component parent, File dir) Load a report.Engine[]loadReportsFrom(Component parent, URL initialURL) Loads one or more report.voidopenedSubreport(Engine engine) This method is called if a subreport was opened by the user to edit it.voidopenFacturMappingDialog(String searchterm) This method is called if the user wants to open the Fractur mapping dialog.voidOpens a dialog enabling the user to choose a report file to open from the repository configured for the designer.voidopenGroupDialog(Group group) This method is called if the user wants to open the dialog for a group.openGroupSelectionFormulaDialog(FormulaField formulafield) This method is called if the user wants to open the dialog for a group selection formula.voidThis method is called if the user wants to open the Java Bean dialog.voidThis method is called if the user wants to open the Page Layout dialog.voidopenParameterDialog(PromptField parameterField) This method is called if the user wants to open the dialog for a parameter field.openPropertyFormulaDialog(FormulaField formulafield, int valueType, ReportComponent element, Object defaultValue, String propertyName, boolean isTristate) This method is called if the user wants to open the dialog for a property formula.openRecordSelectionFormulaDialog(FormulaField formulafield) This method is called if the user wants to open the dialog for a record selection formula.voidOpens a repository configuration dialog which enables the user to choose the repository URL he wants to employ when opening and saving reports on a repository.voidopenSectionDialog(Section section) This method is called if the user wants to open the Section dialog.voidThis method is called if the user wants to open the Records dialog.openSQLDialog(SQLField SQLfield) This method is called if the user wants to open the dialog for a SQL field.voidThis method is called if the user wants to open the Subreport links dialog.voidopenSumDialog(SummaryField sumfield) This method is called if the user wants to open the dialog for a summary field.voidThis method is called if the user wants to open the Summary Info dialog.openUserFormulaDialog(FormulaField formulafield) This method is called if the user wants to open the dialog for a user defined formula.voidThis method is called if the user wants to open the Visual Database Wizard dialog.voidremovedElement(Element element) This method is called if the user has removed an element from the report.voidremovedGroup(Group group) This method is called if a group was removed from the report by the user.voidremovedSubreport(Engine engine) This method will be called if a subreport was removed from the current report.reopenReport(File reportFile) Load a report.voidOpens up a save dialog which enables the user to save a report onto the repository configured for the designer.booleansaveReport(Component parent, Engine e, boolean saveAs) Save a report Choosing a location is the task of the programmer who may use any Swing component.voidsetAddElementAllowed(boolean isAddElementAllowed, int elementType) Set if it is allowed to add a element with the given type to the report.voidsetAddGroupAllowed(boolean isAddGroupAllowed) Sets if add groups is allowed.voidsetAddSectionAllowed(boolean isAddSectionAllowed) Sets if it is allowed to add sections to the report.voidsetCloseAllowed(boolean isCloseAllowed) Sets if is allowed to close reports.voidsetDatabaseChangeAllowed(boolean databaseChangeAllowed) Sets whether changes to the connection are allowed.voidsetDataSourceManagerAllowed(boolean isAllowed) Sets whether the datasource manager dialog shall be accessible or not.voidsetDesignNeedsConnection(boolean designWithoutConnection) Sets whether the design of reports needs a connection.voidsetOpenAllowed(boolean openAllowed) Sets whether 'open' is allowed.voidsetPreviewTabVisible(boolean previewTabVisible) Sets whether the preview tab should be visible or not.voidsetRemoveElementAllowed(boolean isRemoveElementAllowed, int elementType) Set if it is allowed to remove a element with the given type from the report.voidsetRemoveGroupAllowed(boolean isRemoveGroupAllowed) Sets if remove groups is allowed.voidsetRemoveSectionAllowed(boolean isRemoveSectionAllowed) Sets if it is allowed to remove sections from the report.voidsetReopenAllowed(boolean isReopenAllowed) Sets if it is allowed to reopen a report.voidsetSaveAllowed(boolean saveAllowed) Sets whether 'save' is allowed.voidsetSaveAsAllowed(boolean saveAsAllowed) Sets whether 'save as' is allowed.voidsetTablesChangeAllowed(boolean tablesChangeAllowed) Sets whether tables may be changed.
-
Field Details
-
TYPE_TABLE
static final int TYPE_TABLEShows the database object type is: Table- See Also:
-
TYPE_SYSTEM_TABLE
static final int TYPE_SYSTEM_TABLEShows the database object type is: System Table- See Also:
-
TYPE_VIEW
static final int TYPE_VIEWShows the database object type is: View- See Also:
-
TYPE_VIEW_WITH_PARAM
static final int TYPE_VIEW_WITH_PARAMShows the database object type is: View with parameters- See Also:
-
TYPE_SPROC
static final int TYPE_SPROCShows the database object type is: Stored procedure- See Also:
-
TYPE_SPROC_WITH_PARAM
static final int TYPE_SPROC_WITH_PARAMShows the database object type is: Stored procedure with parameters- See Also:
-
TYPE_CONNECTION
static final int TYPE_CONNECTIONShows the database object type is: Connection- See Also:
-
TYPE_COMMAND
static final int TYPE_COMMANDShows the database object type is: Command- See Also:
-
-
Method Details
-
createNewReport
Creates a new report and returns its Engine if the creation was successful or null if it was not successful.- Parameters:
parent- A parent window to use for your own dialog.- Returns:
nullto indicate nothing was created or the engine of the new report- Throws:
IOException- to indicate nothing was created as the result of an IO problemReportException- to indicate nothing was created as the result of a Report problem- Since:
- 6.0
-
getApplicationDirectory
File getApplicationDirectory()Returns the location of the application directory which is the directory where the designer is located in.- Returns:
- The directory where the designer is located in.
- Since:
- 7.0
-
getAvailableFonts
ArrayList<com.inet.font.FontFamily> getAvailableFonts()Returns a list of all available fonts for the designer.- Returns:
- A list of all available fonts.
- Since:
- 9.1
-
isReportWizardEnabled
boolean isReportWizardEnabled()Returns true if a new report shall be created using the ReportWizard.- Returns:
- true <=> Create a new report using the ReportWizard.
- Since:
- 7.0
-
isInetTemplatesEnabled
boolean isInetTemplatesEnabled()Returns true if the templates supplied through i-net will be enabled or not.- Returns:
- true <=> The templates supplied through i-net will be enabled.
- Since:
- 7.0
-
isDatabaseChangeAllowed
boolean isDatabaseChangeAllowed()Check if the database configuration may be changed.- Returns:
- true if it is allowed to change the database configuration.
- Since:
- 6.0
-
isDatabaseObjectVisible
Checks if the given database object should be visible in the database browser.- Parameters:
databaseObjectType- The type of the database object. This will be one of the followingtable,system table,vieworstored proceduredatabaseObjectName- The name of the database object (e.g. of a table)- Returns:
Trueif this database object should be visible in the database browser otherwisefalse.- Since:
- 6.0
-
isOpenAllowed
boolean isOpenAllowed()Checks if it is allowed to open reports.- Returns:
- true if it is allowed to open reports
- Since:
- 6.0
-
isPreviewTabVisible
boolean isPreviewTabVisible()Checks if the preview tab should be visible or not.- Returns:
trueif the preview tab should be visible otherwisefalse- Since:
- 6.0
-
isSaveAllowed
boolean isSaveAllowed()Checks if it is allowed to save reports.- Returns:
- true if it is allowed to save reports
- Since:
- 6.0
-
isSaveAsAllowed
boolean isSaveAsAllowed()Checks if is allowed to save reports with a new name.- Returns:
- true if it is allowed to save reports with a new name (Save As)
- Since:
- 6.0
-
isTablesChangeAllowed
boolean isTablesChangeAllowed()Checks if tables may be added or removed and if the links may be changed.- Returns:
- true if it is allowed to add or remove tables
- Since:
- 6.0
-
isAddGroupAllowed
boolean isAddGroupAllowed()Checks if groups may be added to the Report.- Returns:
- true if it is allowed to add groups to the report
- Since:
- 6.1
-
setAddGroupAllowed
void setAddGroupAllowed(boolean isAddGroupAllowed) Sets if add groups is allowed.- Parameters:
isAddGroupAllowed-trueto allow,falseto deny- Since:
- 6.1
-
isCloseAllowed
boolean isCloseAllowed()Checks if reports may be closed.- Returns:
- true if it is allowed to add groups to the report
- Since:
- 6.0
-
setCloseAllowed
void setCloseAllowed(boolean isCloseAllowed) Sets if is allowed to close reports.- Parameters:
isCloseAllowed-trueto allow,falseto deny- Since:
- 6.0
-
isRemoveGroupAllowed
boolean isRemoveGroupAllowed()Checks if groups may be removed.- Returns:
- true if it is allowed to add groups to the report
- Since:
- 6.1
-
setRemoveGroupAllowed
void setRemoveGroupAllowed(boolean isRemoveGroupAllowed) Sets if remove groups is allowed.- Parameters:
isRemoveGroupAllowed-trueto allow,falseto deny- Since:
- 6.1
-
isReopenAllowed
boolean isReopenAllowed()Checks if it is allowed to use the reopen menu.- Returns:
- true if it is allowed to add groups to the report
- Since:
- 6.0
-
setReopenAllowed
void setReopenAllowed(boolean isReopenAllowed) Sets if it is allowed to reopen a report.- Parameters:
isReopenAllowed-trueto allow,falseto deny- Since:
- 6.0
-
setAddElementAllowed
void setAddElementAllowed(boolean isAddElementAllowed, int elementType) Set if it is allowed to add a element with the given type to the report.- Parameters:
isAddElementAllowed-trueto allow,falseto denyelementType- type of the element you want to allow or deny- Since:
- 6.1
- See Also:
-
isAddElementAllowed
boolean isAddElementAllowed(int elementType) Check if it is allowed to add a element with the given type to the report.- Parameters:
elementType- type of the element you want to allow or deny- Returns:
- true if it is allowed to add a element with the given type to the report, otherwise false. By default true will be returned.
- Since:
- 6.1
- See Also:
-
setRemoveElementAllowed
void setRemoveElementAllowed(boolean isRemoveElementAllowed, int elementType) Set if it is allowed to remove a element with the given type from the report.- Parameters:
isRemoveElementAllowed-trueto allow,falseto denyelementType- type of the element you want to allow or deny- Since:
- 6.1
- See Also:
-
isRemoveElementAllowed
boolean isRemoveElementAllowed(int elementType) Check if it is allowed to remove a element with the given type from the report.- Parameters:
elementType- type of the element you want to allow or deny- Returns:
- true if it is allowed to remove a element with the given type from the report, otherwise false. By default true will be returned.
- Since:
- 6.1
- See Also:
-
isAddSectionAllowed
boolean isAddSectionAllowed()Check if adding sections to the report is allowed.- Returns:
- true if its allowed to add sections to the report
- Since:
- 6.1
-
setAddSectionAllowed
void setAddSectionAllowed(boolean isAddSectionAllowed) Sets if it is allowed to add sections to the report.- Parameters:
isAddSectionAllowed-trueto allow,falseto deny- Since:
- 6.1
-
setRemoveSectionAllowed
void setRemoveSectionAllowed(boolean isRemoveSectionAllowed) Sets if it is allowed to remove sections from the report.- Parameters:
isRemoveSectionAllowed-trueto allow,falseto deny- Since:
- 6.1
-
isRemoveSectionAllowed
boolean isRemoveSectionAllowed()Checks if removing sections from the report is allowed.- Returns:
- true if its allowed to add sections to the report
- Since:
- 6.1
-
loadReport
Load a report. Choosing a location is the task of the programmer who may use any Swing component.- Parameters:
parent- the parent component which should be used in dialogs.- Returns:
nullto indicate nothing was loaded (choice of the user) or the engine of the loaded report- Throws:
IOException- to indicate nothing was loaded as the result of an IO problemReportException- to indicate nothing was loaded as the result of a Report problem- Since:
- 6.0
-
loadReportFrom
Load a report. Choosing a location is the task of the programmer who may use any Swing component.- Parameters:
parent- the parent component which should be used in dialogs.dir- the Directory for the FileChooser.- Returns:
nullto indicate nothing was loaded (choice of the user) or the engine of the loaded report- Throws:
IOException- to indicate nothing was loaded as the result of an IO problemReportException- to indicate nothing was loaded as the result of a Report problem- Since:
- 9.0
-
reopenReport
Load a report. If the location was chosen from the list of last opened reports, it is the programmer's task to load the report and return the engine.- Parameters:
reportFile- the file object which contains the path to the report.- Returns:
- the engine of the loaded report
- Throws:
ReportException- to indicate nothing was loaded as the result of a Report problem- Since:
- 6.5
-
saveReport
Save a report Choosing a location is the task of the programmer who may use any Swing component.- Parameters:
parent- the parent component which should be used in dialogs.e- the engine which should be savedsaveAs- iftruethe user wants to choose a new name for the report, otherwise the old name should be used (if possible)- Returns:
trueto indicate the report was successfully saved.- Throws:
IOException- to indicate nothing was saved as the result of an IO problemReportException- to indicate nothing was saved as the result of a Report problem- Since:
- 6.0
-
setDatabaseChangeAllowed
void setDatabaseChangeAllowed(boolean databaseChangeAllowed) Sets whether changes to the connection are allowed.- Parameters:
databaseChangeAllowed-trueto allow,falseto deny- Since:
- 6.0
-
setOpenAllowed
void setOpenAllowed(boolean openAllowed) Sets whether 'open' is allowed.- Parameters:
openAllowed-trueto allow,falseto deny- Since:
- 6.0
-
setPreviewTabVisible
void setPreviewTabVisible(boolean previewTabVisible) Sets whether the preview tab should be visible or not.- Parameters:
previewTabVisible-trueto allow,falseto deny- Since:
- 6.0
-
setSaveAllowed
void setSaveAllowed(boolean saveAllowed) Sets whether 'save' is allowed.- Parameters:
saveAllowed-trueto allow,falseto deny- Since:
- 6.0
-
setSaveAsAllowed
void setSaveAsAllowed(boolean saveAsAllowed) Sets whether 'save as' is allowed.- Parameters:
saveAsAllowed-trueto allow,falseto deny- Since:
- 6.0
-
setTablesChangeAllowed
void setTablesChangeAllowed(boolean tablesChangeAllowed) Sets whether tables may be changed.- Parameters:
tablesChangeAllowed-trueto allow,falseto deny- Since:
- 6.0
-
isDesignNeedsConnection
boolean isDesignNeedsConnection()Returns whether the design of reports needs a connection. (Especially for database pictures for which a preview will be shown if this method returnstrueor an empty picture iffalseis returned)- Returns:
falseif no connection should be necessary for design ortrueif connection is needed- Since:
- 6.0
-
setDesignNeedsConnection
void setDesignNeedsConnection(boolean designWithoutConnection) Sets whether the design of reports needs a connection. (Especially for database pictures for which a preview will be shown if this method returnstrueor an empty picture iffalseis returned)- Parameters:
designWithoutConnection-falseif no connection should be necessary for design ortrueif connection is needed- Since:
- 6.0
-
isInvalidSPSelectable
boolean isInvalidSPSelectable()Returns whether stored procedures marked as invalid should be selectable in the visual database wizard or not. Stored procedures were marked as invalid if meta data information indicates that the stored procedure does not return a resultset useable by i-net Clear Reports. Some JDBC drivers might return wrong meta data information and this setting would overwrite it.- Returns:
- True if invalid stored procedures should be selectable false otherwise.
- Since:
- 6.0
-
openUserFormulaDialog
This method is called if the user wants to open the dialog for a user defined formula. The dialog is responsible to create an undo point in case of a modification. This function may be called only if an editor has been opened.- Parameters:
formulafield- The formula field if already existent, otherwise null- Returns:
- The new formula field or null if no field was created
- Since:
- 6.1
-
openPropertyFormulaDialog
FormulaField openPropertyFormulaDialog(FormulaField formulafield, int valueType, ReportComponent element, Object defaultValue, String propertyName, boolean isTristate) This method is called if the user wants to open the dialog for a property formula. The dialog is responsible to create an undo point in case of a modification. This function may be called only if an editor has been opened.- Parameters:
formulafield- The formulafield if it already exists, otherwise nullvalueType- The type of the formulas return valueelement- The element thats formula this isdefaultValue- The default value for this formulapropertyName- The name of the property for which a formula is being created. Must not benull.isTristate- whether the returned property formula is set to more than one Element. When in doubt, set tofalse- Returns:
- The new formula field or null if no field was created
- Since:
- 14.1
-
openRecordSelectionFormulaDialog
This method is called if the user wants to open the dialog for a record selection formula. The dialog is responsible to create an undo point in case of a modification. This function may be called only if an editor has been opened.- Parameters:
formulafield- The formulafield if it already exists, otherwise null- Returns:
- The new formula field or null if no field was created
- Since:
- 6.1
-
openGroupSelectionFormulaDialog
This method is called if the user wants to open the dialog for a group selection formula. The dialog is responsible to create an undo point in case of a modification. This function may be called only if an editor has been opened.- Parameters:
formulafield- The formulafield if already existent, otherwise null- Returns:
- The new formula field or null if no field was created
- Since:
- 6.1
-
openParameterDialog
This method is called if the user wants to open the dialog for a parameter field. The dialog is responsible to create an undo point in case of a modification. This function may be called only if an editor has been opened.- Parameters:
parameterField- The parameter field if already existent, otherwise null Note: Since version 7.0 this method does not return the modified field anymore.- Since:
- 6.1
-
openSQLDialog
This method is called if the user wants to open the dialog for a SQL field. The dialog is responsible to create an undo point in case of a modification.- Parameters:
SQLfield- The SQL field if already existent, otherwise null- Returns:
- The new SQL field or null if no field was created
- Since:
- 6.1
-
openSumDialog
This method is called if the user wants to open the dialog for a summary field. The dialog is responsible to create an undo point in case of a modification. This function may only be called if an editor has been opened.- Parameters:
sumfield- The parameter field if already existent, otherwise null- Since:
- 6.1
-
openGroupDialog
This method is called if the user wants to open the dialog for a group. The dialog is responsible to create an undo point in case of a modification.- Parameters:
group- The group if already existent, otherwise null- Since:
- 6.1
-
openSummaryInfoDialog
void openSummaryInfoDialog()This method is called if the user wants to open the Summary Info dialog. The dialog is responsible to create an undo point in case of a modification.- Since:
- 6.1
-
openSortRecordsDialog
void openSortRecordsDialog()This method is called if the user wants to open the Records dialog. The dialog is responsible to create an undo point in case of a modification.- Since:
- 6.1
-
openSubreportLinksDialog
This method is called if the user wants to open the Subreport links dialog. The dialog is responsible to create an undo point in case of a modification.- Parameters:
name- Name of the subreport or null if no subreport was selected- Since:
- 6.1
-
openSectionDialog
This method is called if the user wants to open the Section dialog. The dialog is responsible to create an undo point in case of a modification.- Parameters:
section- the selected section or null if no section was selected- Since:
- 6.1
-
openVisualDatabaseWizardDialog
void openVisualDatabaseWizardDialog()This method is called if the user wants to open the Visual Database Wizard dialog. The dialog is responsible to create an undo point in case of a modification. Note: It is not allowed to call the super method of this dialog, because it will not show the correct database configuration.- Since:
- 6.1
-
openJavaBeanDialog
void openJavaBeanDialog()This method is called if the user wants to open the Java Bean dialog. The dialog is responsible to create an undo point in case of a modification.- Since:
- 6.1
-
openPageLayoutDialog
void openPageLayoutDialog()This method is called if the user wants to open the Page Layout dialog. The dialog is responsible to create an undo point in case of a modification.- Since:
- 6.5
-
openFacturMappingDialog
This method is called if the user wants to open the Fractur mapping dialog. The dialog is responsible to create an undo point in case of a modification.- Parameters:
searchterm- the term to search in the factur mapping dialog, can be null- Since:
- 20.10
-
closedReport
This method is called if a report was closed.- Parameters:
engine- the engine of the closed report.- Since:
- 6.1
-
addedSubreport
This method is called if a subreport was added to the current report.- Parameters:
engine- the engine of the added subreport.- Since:
- 6.1
-
removedSubreport
This method will be called if a subreport was removed from the current report.- Parameters:
engine- the engine of the removed subreport.- Since:
- 6.1
-
openedSubreport
This method is called if a subreport was opened by the user to edit it. The dialog is responsible to create an undo point in case of a modification.- Parameters:
engine- the engine of the opened subreport.- Since:
- 6.1
-
closedSubreport
This method is called if a subreport was closed by the user.- Parameters:
engine- the engine of the closed subreport.- Since:
- 6.1
-
addedGroup
This method is called if a group was added to the report by the user.- Parameters:
group- the added group.- Since:
- 6.1
-
removedGroup
This method is called if a group was removed from the report by the user.- Parameters:
group- the removed group.- Since:
- 6.1
-
addedElement
This method is called if the user has added an element to the report.- Parameters:
element- the added element.- Since:
- 6.1
-
removedElement
This method is called if the user has removed an element from the report.- Parameters:
element- the removed element.- Since:
- 6.1
-
isDataSourceManagerAllowed
boolean isDataSourceManagerAllowed()Returns whether the datasource manager dialog is accessible or not.- Returns:
- True if the datasource manager dialog can be used false otherwise.
- Since:
- 7.7
-
setDataSourceManagerAllowed
void setDataSourceManagerAllowed(boolean isAllowed) Sets whether the datasource manager dialog shall be accessible or not.- Parameters:
isAllowed- True if the datasource manager dialog should be accessible false otherwise.- Since:
- 7.7
-
openRepositoryConfigDialog
void openRepositoryConfigDialog()Opens a repository configuration dialog which enables the user to choose the repository URL he wants to employ when opening and saving reports on a repository.- Since:
- 9.1
- See Also:
-
saveOnRepository
void saveOnRepository()Opens up a save dialog which enables the user to save a report onto the repository configured for the designer.- Since:
- 9.1
- See Also:
-
openFromRepository
void openFromRepository()Opens a dialog enabling the user to choose a report file to open from the repository configured for the designer.- Since:
- 9.1
- See Also:
-
getAvailableFontsFromRepository
List<com.inet.font.FontFamily> getAvailableFontsFromRepository()fetches a list of fonts available on the repository configured for the designer- Returns:
- list of fonts available on the repository configured for the designer
- Since:
- 9.2
-
createViewer
SwingReportViewer createViewer()creates a newSwingReportViewerand initializes it with the necessaryViewerContext, as well as piping its log stream to the appropriate position (viaSwingReportViewer.setLoggingStream(java.io.PrintStream). It is recommended to first call the default implementation inAbstractDesignerDataModeland then configure the created viewer to your liking if you are customizing this behavior.- Returns:
- new SwingReportViewer instance, fully initialized
- Since:
- 9.2
-
loadReportsFrom
Loads one or more report. Choosing a location is the task of the programmer who may use any Swing component.- Parameters:
parent- the parent component which should be used in dialogs.initialURL- the initial URL for the FileChooser. This could a a location file URL or a HTTP URL of a repository.- Returns:
nullto indicate nothing was loaded (choice of the user) or an array of engines of the loaded report- Throws:
IOException- to indicate nothing was loaded as the result of an IO problemReportException- to indicate nothing was loaded as the result of a Report problem- Since:
- 10.0
-