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
Modifier and TypeFieldDescriptionstatic final int
Shows the database object type is: Commandstatic final int
Shows the database object type is: Connectionstatic final int
Shows the database object type is: Stored procedurestatic final int
Shows the database object type is: Stored procedure with parametersstatic final int
Shows the database object type is: System Tablestatic final int
Shows the database object type is: Tablestatic final int
Shows the database object type is: Viewstatic final int
Shows the database object type is: View with parameters -
Method Summary
Modifier and TypeMethodDescriptionvoid
addedElement
(Element element) This method is called if the user has added an element to the report.void
addedGroup
(Group group) This method is called if a group was added to the report by the user.void
addedSubreport
(Engine engine) This method is called if a subreport was added to the current report.void
closedReport
(Engine engine) This method is called if a report was closed.void
closedSubreport
(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 newSwingReportViewer
and 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 designerboolean
isAddElementAllowed
(int elementType) Check if it is allowed to add a element with the given type to the report.boolean
Checks if groups may be added to the Report.boolean
Check if adding sections to the report is allowed.boolean
Checks if reports may be closed.boolean
Check if the database configuration may be changed.boolean
isDatabaseObjectVisible
(int databaseObjectType, String databaseObjectName) Checks if the given database object should be visible in the database browser.boolean
Returns whether the datasource manager dialog is accessible or not.boolean
Returns whether the design of reports needs a connection.boolean
Returns true if the templates supplied through i-net will be enabled or not.boolean
Returns whether stored procedures marked as invalid should be selectable in the visual database wizard or not.boolean
Checks if it is allowed to open reports.boolean
Checks if the preview tab should be visible or not.boolean
isRemoveElementAllowed
(int elementType) Check if it is allowed to remove a element with the given type from the report.boolean
Checks if groups may be removed.boolean
Checks if removing sections from the report is allowed.boolean
Checks if it is allowed to use the reopen menu.boolean
Returns true if a new report shall be created using the ReportWizard.boolean
Checks if it is allowed to save reports.boolean
Checks if is allowed to save reports with a new name.boolean
Checks 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.void
openedSubreport
(Engine engine) This method is called if a subreport was opened by the user to edit it.void
openFacturMappingDialog
(String searchterm) This method is called if the user wants to open the Fractur mapping dialog.void
Opens a dialog enabling the user to choose a report file to open from the repository configured for the designer.void
openGroupDialog
(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.void
This method is called if the user wants to open the Java Bean dialog.void
This method is called if the user wants to open the Page Layout dialog.void
openParameterDialog
(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.void
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.void
openSectionDialog
(Section section) This method is called if the user wants to open the Section dialog.void
This 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.void
This method is called if the user wants to open the Subreport links dialog.void
openSumDialog
(SummaryField sumfield) This method is called if the user wants to open the dialog for a summary field.void
This 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.void
This method is called if the user wants to open the Visual Database Wizard dialog.void
removedElement
(Element element) This method is called if the user has removed an element from the report.void
removedGroup
(Group group) This method is called if a group was removed from the report by the user.void
removedSubreport
(Engine engine) This method will be called if a subreport was removed from the current report.reopenReport
(File reportFile) Load a report.void
Opens up a save dialog which enables the user to save a report onto the repository configured for the designer.boolean
saveReport
(Component parent, Engine e, boolean saveAs) Save a report Choosing a location is the task of the programmer who may use any Swing component.void
setAddElementAllowed
(boolean isAddElementAllowed, int elementType) Set if it is allowed to add a element with the given type to the report.void
setAddGroupAllowed
(boolean isAddGroupAllowed) Sets if add groups is allowed.void
setAddSectionAllowed
(boolean isAddSectionAllowed) Sets if it is allowed to add sections to the report.void
setCloseAllowed
(boolean isCloseAllowed) Sets if is allowed to close reports.void
setDatabaseChangeAllowed
(boolean databaseChangeAllowed) Sets whether changes to the connection are allowed.void
setDataSourceManagerAllowed
(boolean isAllowed) Sets whether the datasource manager dialog shall be accessible or not.void
setDesignNeedsConnection
(boolean designWithoutConnection) Sets whether the design of reports needs a connection.void
setOpenAllowed
(boolean openAllowed) Sets whether 'open' is allowed.void
setPreviewTabVisible
(boolean previewTabVisible) Sets whether the preview tab should be visible or not.void
setRemoveElementAllowed
(boolean isRemoveElementAllowed, int elementType) Set if it is allowed to remove a element with the given type from the report.void
setRemoveGroupAllowed
(boolean isRemoveGroupAllowed) Sets if remove groups is allowed.void
setRemoveSectionAllowed
(boolean isRemoveSectionAllowed) Sets if it is allowed to remove sections from the report.void
setReopenAllowed
(boolean isReopenAllowed) Sets if it is allowed to reopen a report.void
setSaveAllowed
(boolean saveAllowed) Sets whether 'save' is allowed.void
setSaveAsAllowed
(boolean saveAsAllowed) Sets whether 'save as' is allowed.void
setTablesChangeAllowed
(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:
null
to 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
,view
orstored procedure
databaseObjectName
- The name of the database object (e.g. of a table)- Returns:
True
if 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:
true
if 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
-true
to allow,false
to 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
-true
to allow,false
to 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
-true
to allow,false
to 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
-true
to allow,false
to 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
-true
to allow,false
to 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
-true
to allow,false
to 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
-true
to allow,false
to deny- Since:
- 6.1
-
setRemoveSectionAllowed
void setRemoveSectionAllowed(boolean isRemoveSectionAllowed) Sets if it is allowed to remove sections from the report.- Parameters:
isRemoveSectionAllowed
-true
to allow,false
to 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:
null
to 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:
null
to 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
- iftrue
the user wants to choose a new name for the report, otherwise the old name should be used (if possible)- Returns:
true
to 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
-true
to allow,false
to deny- Since:
- 6.0
-
setOpenAllowed
void setOpenAllowed(boolean openAllowed) Sets whether 'open' is allowed.- Parameters:
openAllowed
-true
to allow,false
to deny- Since:
- 6.0
-
setPreviewTabVisible
void setPreviewTabVisible(boolean previewTabVisible) Sets whether the preview tab should be visible or not.- Parameters:
previewTabVisible
-true
to allow,false
to deny- Since:
- 6.0
-
setSaveAllowed
void setSaveAllowed(boolean saveAllowed) Sets whether 'save' is allowed.- Parameters:
saveAllowed
-true
to allow,false
to deny- Since:
- 6.0
-
setSaveAsAllowed
void setSaveAsAllowed(boolean saveAsAllowed) Sets whether 'save as' is allowed.- Parameters:
saveAsAllowed
-true
to allow,false
to deny- Since:
- 6.0
-
setTablesChangeAllowed
void setTablesChangeAllowed(boolean tablesChangeAllowed) Sets whether tables may be changed.- Parameters:
tablesChangeAllowed
-true
to allow,false
to 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 returnstrue
or an empty picture iffalse
is returned)- Returns:
false
if no connection should be necessary for design ortrue
if 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 returnstrue
or an empty picture iffalse
is returned)- Parameters:
designWithoutConnection
-false
if no connection should be necessary for design ortrue
if 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 newSwingReportViewer
and 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 inAbstractDesignerDataModel
and 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:
null
to 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
-