Package com.inet.designer
Class AbstractDesignerDataModel
java.lang.Object
com.inet.designer.AbstractDesignerDataModel
- All Implemented Interfaces:
DesignerDataModel
- Direct Known Subclasses:
BasicDesignerDataModel
The data model describes the way the i-net Designer creates, loads and stores its reports. The default
implementation is based on the file system, but you may want to store the reports in a database instead or maybe you
simply want to restrict the access to certain files.
-
Field Summary
Fields inherited from interface com.inet.designer.DesignerDataModel
TYPE_COMMAND, TYPE_CONNECTION, TYPE_SPROC, TYPE_SPROC_WITH_PARAM, TYPE_SYSTEM_TABLE, TYPE_TABLE, TYPE_VIEW, TYPE_VIEW_WITH_PARAM -
Constructor Summary
ConstructorsConstructorDescriptionInitializes this DesignerDataModel implementation. -
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.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) This method checks if its allowed to add a element to a report with the i-net Designer.booleanThis method checks if its allowed to add new groups to any report.booleanThis method checks if its allowed to add a new section to a report with the i-net Designer.booleanThis method checks if its allowed to close reports opened with the i-net Designer.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.booleanThis method checks if the with the i-net Designer opened reports need a database connection.booleanReturns true if the templates supplied through i-net will be enabled or not.booleanThis method checks if a invalid connection is selectable in the virtual database dialog.booleanCheck if opening reports is allowed.booleanChecks if the preview tab should be visible or not.booleanisRemoveElementAllowed(int elementType) This method checks if its allowed to remove a element from a report with the i-net Designer.booleanThis method checks if its allowed to remove a group from the report opened with the i-net Designer.booleanThis method checks if its allowed to remove section from a report with the i-net Designer.booleanThis method checks if its allowed to reopen a report with the i-net Designer.booleanReturns true if a new report shall be created using the ReportWizard.booleanCheck if save is allowed.booleanCheck if save as is allowed.booleanCheck if tables may be added or removed and if the links may be changed.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 property, boolean isTristate) FOR INTERNAL USE ONLY 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.voidopenSubreportLinksDialog(String reportName) This 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.voidsetAddElementAllowed(boolean isAddElementAllowed, int elementType) Set if its allowed to add a element to a report with the i-net Designer.voidsetAddGroupAllowed(boolean isAddGroupAllowed) Set if its allowed to add new groups to the reports.voidsetAddSectionAllowed(boolean isAddSectionAllowed) Set if its allowed to add a new section to a report with the i-net Designer.voidsetCloseAllowed(boolean isCloseAllowed) Set if its allowed to close reports opened with the i-net Designer.voidsetDatabaseChangeAllowed(boolean databaseChangeAllowed) Set if changes to the connection are allowed.voidsetDataSourceManagerAllowed(boolean isAllowed) Sets whether the datasource manager dialog shall be accessible or not.voidsetDesignNeedsConnection(boolean designNeedsConnection) Set if the with the i-net Designer opened reports need a database connection.voidsetIsInvalidSPSelectable(boolean newSIISPS) Set if a invalid connection is selectable in the virtual database dialog.voidsetOpenAllowed(boolean openAllowed) Set if open is allowed.voidsetPreviewTabVisible(boolean previewTabVisible) Use this method to enable/disable the preview tab of the i-net Designer.voidsetRemoveElementAllowed(boolean isRemoveElementAllowed, int elementType) Set if its allowed to remove a element from a report with the i-net Designer.voidsetRemoveGroupAllowed(boolean isRemoveGroupAllowed) Set if its allowed to remove a group from the report opened with the i-net Designer.voidsetRemoveSectionAllowed(boolean isRemoveSectionAllowed) Set if its allowed to remove a section from a report with the i-net Designer.voidsetReopenAllowed(boolean isReopenAllowed) Set if its allowed to reopen a report with the i-net Designer.voidsetSaveAllowed(boolean saveAllowed) Set if save is allowed.voidsetSaveAsAllowed(boolean saveAsAllowed) Set if save as is allowed.voidsetTablesChangeAllowed(boolean tablesChangeAllowed) Set if tables may be changed.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.inet.designer.DesignerDataModel
createNewReport, loadReport, loadReportFrom, saveReport
-
Constructor Details
-
AbstractDesignerDataModel
public AbstractDesignerDataModel()Initializes this DesignerDataModel implementation.- Since:
- 6.0
-
-
Method Details
-
getApplicationDirectory
Returns the location of the application directory which is the directory where the designer is located in.- Specified by:
getApplicationDirectoryin interfaceDesignerDataModel- Returns:
- The directory where the designer is located in.
- Since:
- 7.0
-
isReportWizardEnabled
public boolean isReportWizardEnabled()Returns true if a new report shall be created using the ReportWizard.- Specified by:
isReportWizardEnabledin interfaceDesignerDataModel- Returns:
- true <=> Create a new report using the ReportWizard.
- Since:
- 7.0
-
isInetTemplatesEnabled
public boolean isInetTemplatesEnabled()Returns true if the templates supplied through i-net will be enabled or not.- Specified by:
isInetTemplatesEnabledin interfaceDesignerDataModel- Returns:
- true <=> The templates supplied through i-net will be enabled.
- Since:
- 7.0
-
getAvailableFonts
Returns a list of all available fonts for the designer.- Specified by:
getAvailableFontsin interfaceDesignerDataModel- Returns:
- A list of all available fonts.
- Since:
- 9.1
-
getAvailableFontsFromRepository
fetches a list of fonts available on the repository configured for the designer- Specified by:
getAvailableFontsFromRepositoryin interfaceDesignerDataModel- Returns:
- list of fonts available on the repository configured for the designer
- Since:
- 9.2
-
isPreviewTabVisible
public boolean isPreviewTabVisible()Checks if the preview tab should be visible or not.- Specified by:
isPreviewTabVisiblein interfaceDesignerDataModel- Returns:
trueif the preview tab should be visible otherwisefalse
-
setPreviewTabVisible
public void setPreviewTabVisible(boolean previewTabVisible) Use this method to enable/disable the preview tab of the i-net Designer.- Specified by:
setPreviewTabVisiblein interfaceDesignerDataModel- Parameters:
previewTabVisible-trueto allow,falseto deny- Since:
- 6.0
-
isDatabaseObjectVisible
Checks if the given database object should be visible in the database browser.- Specified by:
isDatabaseObjectVisiblein interfaceDesignerDataModel- 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:
- In the AbstractDesignerDataModel this will always return
true - Since:
- 7.0
-
isDatabaseChangeAllowed
public boolean isDatabaseChangeAllowed()Check if the database configuration may be changed.- Specified by:
isDatabaseChangeAllowedin interfaceDesignerDataModel- Returns:
- true if it is allowed to change the database configuration.
- Since:
- 6.0
-
isOpenAllowed
public boolean isOpenAllowed()Check if opening reports is allowed.- Specified by:
isOpenAllowedin interfaceDesignerDataModel- Returns:
- true if it is allowed to open reports
- Since:
- 6.0
-
isSaveAllowed
public boolean isSaveAllowed()Check if save is allowed.- Specified by:
isSaveAllowedin interfaceDesignerDataModel- Returns:
- true if it is allowed to save reports
- Since:
- 6.0
-
isSaveAsAllowed
public boolean isSaveAsAllowed()Check if save as is allowed.- Specified by:
isSaveAsAllowedin interfaceDesignerDataModel- Returns:
- true if it is allowed to save reports with a new name (Save As)
- Since:
- 6.0
-
isTablesChangeAllowed
public boolean isTablesChangeAllowed()Check if tables may be added or removed and if the links may be changed.- Specified by:
isTablesChangeAllowedin interfaceDesignerDataModel- Returns:
- true if it is allowed to add or remove tables
- Since:
- 6.0
-
setDatabaseChangeAllowed
public void setDatabaseChangeAllowed(boolean databaseChangeAllowed) Set if changes to the connection are allowed.- Specified by:
setDatabaseChangeAllowedin interfaceDesignerDataModel- Parameters:
databaseChangeAllowed-trueto allow,falseto deny- Since:
- 6.0
-
setOpenAllowed
public void setOpenAllowed(boolean openAllowed) Set if open is allowed.- Specified by:
setOpenAllowedin interfaceDesignerDataModel- Parameters:
openAllowed-trueto allow,falseto deny- Since:
- 6.0
-
setSaveAllowed
public void setSaveAllowed(boolean saveAllowed) Set if save is allowed.- Specified by:
setSaveAllowedin interfaceDesignerDataModel- Parameters:
saveAllowed-trueto allow,falseto deny- Since:
- 6.0
-
setSaveAsAllowed
public void setSaveAsAllowed(boolean saveAsAllowed) Set if save as is allowed.- Specified by:
setSaveAsAllowedin interfaceDesignerDataModel- Parameters:
saveAsAllowed-trueto allow,falseto deny- Since:
- 6.0
-
setTablesChangeAllowed
public void setTablesChangeAllowed(boolean tablesChangeAllowed) Set if tables may be changed.- Specified by:
setTablesChangeAllowedin interfaceDesignerDataModel- Parameters:
tablesChangeAllowed-trueto allow,falseto deny- Since:
- 6.0
-
isDesignNeedsConnection
public boolean isDesignNeedsConnection()This method checks if the with the i-net Designer opened reports need a database connection.- Specified by:
isDesignNeedsConnectionin interfaceDesignerDataModel- Returns:
trueif the report needs a connection,falseif not.- Since:
- 6.0
-
setDesignNeedsConnection
public void setDesignNeedsConnection(boolean designNeedsConnection) Set if the with the i-net Designer opened reports need a database connection.- Specified by:
setDesignNeedsConnectionin interfaceDesignerDataModel- Parameters:
designNeedsConnection-trueif the report needs a connection,falseif not.- Since:
- 6.0
-
isInvalidSPSelectable
public boolean isInvalidSPSelectable()This method checks if a invalid connection is selectable in the virtual database dialog.- Specified by:
isInvalidSPSelectablein interfaceDesignerDataModel- Returns:
trueif invalid SPs are selectable,falseif not.- Since:
- 6.0
-
setIsInvalidSPSelectable
public void setIsInvalidSPSelectable(boolean newSIISPS) Set if a invalid connection is selectable in the virtual database dialog.- Parameters:
newSIISPS-trueif invalid SPs are selectable,falseif not.- Since:
- 6.0
-
isAddGroupAllowed
public boolean isAddGroupAllowed()This method checks if its allowed to add new groups to any report.- Specified by:
isAddGroupAllowedin interfaceDesignerDataModel- Returns:
trueif its allowed to add new groups,falseif not.- Since:
- 6.0
-
setAddGroupAllowed
public void setAddGroupAllowed(boolean isAddGroupAllowed) Set if its allowed to add new groups to the reports.- Specified by:
setAddGroupAllowedin interfaceDesignerDataModel- Parameters:
isAddGroupAllowed-trueif its allowed to add new groups,falseif not.- Since:
- 6.0
-
isCloseAllowed
public boolean isCloseAllowed()This method checks if its allowed to close reports opened with the i-net Designer.- Specified by:
isCloseAllowedin interfaceDesignerDataModel- Returns:
trueif its allowed to close the report,falseif not.- Since:
- 6.0
-
setCloseAllowed
public void setCloseAllowed(boolean isCloseAllowed) Set if its allowed to close reports opened with the i-net Designer.- Specified by:
setCloseAllowedin interfaceDesignerDataModel- Parameters:
isCloseAllowed-trueif its allowed to close the report,falseif not.- Since:
- 6.0
-
isRemoveGroupAllowed
public boolean isRemoveGroupAllowed()This method checks if its allowed to remove a group from the report opened with the i-net Designer.- Specified by:
isRemoveGroupAllowedin interfaceDesignerDataModel- Returns:
trueif its allowed to remove groups,falseif not.- Since:
- 6.0
-
setRemoveGroupAllowed
public void setRemoveGroupAllowed(boolean isRemoveGroupAllowed) Set if its allowed to remove a group from the report opened with the i-net Designer.- Specified by:
setRemoveGroupAllowedin interfaceDesignerDataModel- Parameters:
isRemoveGroupAllowed-trueif its allowed to remove groups,falseif not.- Since:
- 6.0
-
isReopenAllowed
public boolean isReopenAllowed()This method checks if its allowed to reopen a report with the i-net Designer.- Specified by:
isReopenAllowedin interfaceDesignerDataModel- Returns:
trueif its allowed to reopen a report,falseif not.- Since:
- 6.0
-
setReopenAllowed
public void setReopenAllowed(boolean isReopenAllowed) Set if its allowed to reopen a report with the i-net Designer.- Specified by:
setReopenAllowedin interfaceDesignerDataModel- Parameters:
isReopenAllowed-trueif its allowed to reopen a report,falseif not.- Since:
- 6.0
-
setAddElementAllowed
public void setAddElementAllowed(boolean isAddElementAllowed, int elementType) Set if its allowed to add a element to a report with the i-net Designer.- Specified by:
setAddElementAllowedin interfaceDesignerDataModel- Parameters:
isAddElementAllowed-trueif its allowed to add the element,falseif not.elementType- Type of the element you want to allow/deny.- Since:
- 6.0
- See Also:
-
isAddElementAllowed
public boolean isAddElementAllowed(int elementType) This method checks if its allowed to add a element to a report with the i-net Designer.- Specified by:
isAddElementAllowedin interfaceDesignerDataModel- Parameters:
elementType- Type of the element you want to allow/deny.- Returns:
- True if elements of the supplied type can be added to the report false otherwise.
- Since:
- 6.0
- See Also:
-
setRemoveElementAllowed
public void setRemoveElementAllowed(boolean isRemoveElementAllowed, int elementType) Set if its allowed to remove a element from a report with the i-net Designer.- Specified by:
setRemoveElementAllowedin interfaceDesignerDataModel- Parameters:
isRemoveElementAllowed-trueif its allowed to remove the element,falseif not.elementType- Type of the element you want to allow/deny.- Since:
- 6.0
- See Also:
-
isRemoveElementAllowed
public boolean isRemoveElementAllowed(int elementType) This method checks if its allowed to remove a element from a report with the i-net Designer.- Specified by:
isRemoveElementAllowedin interfaceDesignerDataModel- Parameters:
elementType- Type of the element you want to allow/deny.- Returns:
- True if elements of the supplied type can be removed from the report false otherwise.
- Since:
- 6.0
- See Also:
-
isAddSectionAllowed
public boolean isAddSectionAllowed()This method checks if its allowed to add a new section to a report with the i-net Designer.- Specified by:
isAddSectionAllowedin interfaceDesignerDataModel- Returns:
trueif its allowed to add a section to a report,falseif not.- Since:
- 6.0
-
setAddSectionAllowed
public void setAddSectionAllowed(boolean isAddSectionAllowed) Set if its allowed to add a new section to a report with the i-net Designer.- Specified by:
setAddSectionAllowedin interfaceDesignerDataModel- Parameters:
isAddSectionAllowed-trueif its allowed to add a section to a report,falseif not.- Since:
- 6.0
-
isRemoveSectionAllowed
public boolean isRemoveSectionAllowed()This method checks if its allowed to remove section from a report with the i-net Designer.- Specified by:
isRemoveSectionAllowedin interfaceDesignerDataModel- Returns:
trueif its allowed to remove a section from a report,falseif not.- Since:
- 6.0
-
setRemoveSectionAllowed
public void setRemoveSectionAllowed(boolean isRemoveSectionAllowed) Set if its allowed to remove a section from a report with the i-net Designer.- Specified by:
setRemoveSectionAllowedin interfaceDesignerDataModel- Parameters:
isRemoveSectionAllowed-trueif its allowed to remove a section from a report,falseif not.- Since:
- 6.0
-
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.- Specified by:
openParameterDialogin interfaceDesignerDataModel- Parameters:
parameterField- The parameter field if already existent, otherwise null Note: Since version 7.0 this method does not return the modified field anymore.
-
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.- Specified by:
openSQLDialogin interfaceDesignerDataModel- Parameters:
sqlField- The SQL field if already existent, otherwise null- Returns:
- The new SQL field or null if no field was created
-
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.- Specified by:
openSumDialogin interfaceDesignerDataModel- Parameters:
sumfield- The parameter field if already existent, otherwise null
-
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.- Specified by:
openGroupDialogin interfaceDesignerDataModel- Parameters:
group- The group if already existent, otherwise null
-
openSummaryInfoDialog
public 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.- Specified by:
openSummaryInfoDialogin interfaceDesignerDataModel
-
openSortRecordsDialog
public 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.- Specified by:
openSortRecordsDialogin interfaceDesignerDataModel
-
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.- Specified by:
openSubreportLinksDialogin interfaceDesignerDataModel- Parameters:
reportName- Name of the subreport or null if no subreport was selected
-
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.- Specified by:
openSectionDialogin interfaceDesignerDataModel- Parameters:
section- the selected section or null if no section was selected
-
openVisualDatabaseWizardDialog
public 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.- Specified by:
openVisualDatabaseWizardDialogin interfaceDesignerDataModel
-
openJavaBeanDialog
public 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.- Specified by:
openJavaBeanDialogin interfaceDesignerDataModel
-
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.- Specified by:
openUserFormulaDialogin interfaceDesignerDataModel- Parameters:
formulafield- The formula field if already existent, otherwise null- Returns:
- The new formula field or null if no field was created
-
openPropertyFormulaDialog
public FormulaField openPropertyFormulaDialog(FormulaField formulafield, int valueType, ReportComponent element, Object defaultValue, String property, boolean isTristate) FOR INTERNAL USE ONLY 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.- Specified by:
openPropertyFormulaDialogin interfaceDesignerDataModel- Parameters:
formulafield- TheFormulaFieldif it already exists, otherwisenullvalueType- The type of the formulas return valueelement- The element thats formula this isdefaultValue- The default value for this formulaproperty- 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
-
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.- Specified by:
openRecordSelectionFormulaDialogin interfaceDesignerDataModel- Parameters:
formulafield- The formulafield if it already exists, otherwise null- Returns:
- The new formula field or null if no field was created
-
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.- Specified by:
openGroupSelectionFormulaDialogin interfaceDesignerDataModel- Parameters:
formulafield- The formulafield if already existent, otherwise null- Returns:
- The new formula field or null if no field was created
-
closedReport
This method is called if a report was closed.- Specified by:
closedReportin interfaceDesignerDataModel- Parameters:
engine- the engine of the closed report.
-
addedSubreport
This method is called if a subreport was added to the current report.- Specified by:
addedSubreportin interfaceDesignerDataModel- Parameters:
engine- the engine of the added subreport.
-
removedSubreport
This method will be called if a subreport was removed from the current report.- Specified by:
removedSubreportin interfaceDesignerDataModel- Parameters:
engine- the engine of the removed subreport.
-
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.- Specified by:
openedSubreportin interfaceDesignerDataModel- Parameters:
engine- the engine of the opened subreport.
-
closedSubreport
This method is called if a subreport was closed by the user.- Specified by:
closedSubreportin interfaceDesignerDataModel- Parameters:
engine- the engine of the closed subreport.
-
addedGroup
This method is called if a group was added to the report by the user.- Specified by:
addedGroupin interfaceDesignerDataModel- Parameters:
group- the added group.
-
removedGroup
This method is called if a group was removed from the report by the user.- Specified by:
removedGroupin interfaceDesignerDataModel- Parameters:
group- the removed group.
-
addedElement
This method is called if the user has added an element to the report.- Specified by:
addedElementin interfaceDesignerDataModel- Parameters:
element- the added element.
-
removedElement
This method is called if the user has removed an element from the report.- Specified by:
removedElementin interfaceDesignerDataModel- Parameters:
element- the removed element.
-
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.- Specified by:
reopenReportin interfaceDesignerDataModel- 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
-
openPageLayoutDialog
public 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.- Specified by:
openPageLayoutDialogin interfaceDesignerDataModel
-
isDataSourceManagerAllowed
public boolean isDataSourceManagerAllowed()Returns whether the datasource manager dialog is accessible or not.- Specified by:
isDataSourceManagerAllowedin interfaceDesignerDataModel- Returns:
- True if the datasource manager dialog can be used false otherwise.
-
setDataSourceManagerAllowed
public void setDataSourceManagerAllowed(boolean isAllowed) Sets whether the datasource manager dialog shall be accessible or not.- Specified by:
setDataSourceManagerAllowedin interfaceDesignerDataModel- Parameters:
isAllowed- True if the datasource manager dialog should be accessible false otherwise.
-
openRepositoryConfigDialog
public 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.- Specified by:
openRepositoryConfigDialogin interfaceDesignerDataModel- See Also:
-
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.- Specified by:
openFacturMappingDialogin interfaceDesignerDataModel- Parameters:
searchterm- the term to search in the factur mapping dialog, can be null
-
loadReportsFrom
public Engine[] loadReportsFrom(Component parent, URL initialURL) throws IOException, ReportException Loads one or more report. Choosing a location is the task of the programmer who may use any Swing component.- Specified by:
loadReportsFromin interfaceDesignerDataModel- 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
-
saveOnRepository
public void saveOnRepository()Opens up a save dialog which enables the user to save a report onto the repository configured for the designer.- Specified by:
saveOnRepositoryin interfaceDesignerDataModel- See Also:
-
openFromRepository
public void openFromRepository()Opens a dialog enabling the user to choose a report file to open from the repository configured for the designer.- Specified by:
openFromRepositoryin interfaceDesignerDataModel- See Also:
-
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.- Specified by:
createViewerin interfaceDesignerDataModel- Returns:
- new SwingReportViewer instance, fully initialized
-