Klasse BasicDesignerDataModel
java.lang.Object
com.inet.designer.AbstractDesignerDataModel
com.inet.designer.BasicDesignerDataModel
- Alle implementierten Schnittstellen:
DesignerDataModel
The default implementation which is used by the i-net Designer in
standalone mode.
This model loads and stores reports in the local file system an lets the user
choose freely among all files (except for operating system restrictions). The
methods
getOpenFileChooser() and getSaveFileChooser(File) allows you to change the file chooser
used to restrict the accessible files.-
Feldübersicht
FelderModifikator und TypFeldBeschreibungstatic JFileChooserThis variable is used to assure the same filechooser is used again.Von Schnittstelle geerbte Felder DesignerDataModel
TYPE_COMMAND, TYPE_CONNECTION, TYPE_SPROC, TYPE_SPROC_WITH_PARAM, TYPE_SYSTEM_TABLE, TYPE_TABLE, TYPE_VIEW, TYPE_VIEW_WITH_PARAM -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifikator und TypMethodeBeschreibungstatic DesignerDataModelcreate()Create a new BasicDesignerDataModel.createNewReport(Component parent) Create a new report.createNewReportWithWizard(Component parent) Opens the report wizard to create a new report and returns the created Engine object.Returns a file chooser which will be used when a report template should be opened.getSaveFileChooser(File file) Returns a file chooser which will be used when a report template should be saved.booleanReturns true if a new report shall be created using the ReportWizard.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.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.Von Klasse geerbte Methoden AbstractDesignerDataModel
addedElement, addedGroup, addedSubreport, closedReport, closedSubreport, createViewer, getApplicationDirectory, getAvailableFonts, getAvailableFontsFromRepository, isAddElementAllowed, isAddGroupAllowed, isAddSectionAllowed, isCloseAllowed, isDatabaseChangeAllowed, isDatabaseObjectVisible, isDataSourceManagerAllowed, isDesignNeedsConnection, isInetTemplatesEnabled, isInvalidSPSelectable, isOpenAllowed, isPreviewTabVisible, isRemoveElementAllowed, isRemoveGroupAllowed, isRemoveSectionAllowed, isReopenAllowed, isSaveAllowed, isSaveAsAllowed, isTablesChangeAllowed, openedSubreport, openFacturMappingDialog, openFromRepository, openGroupDialog, openGroupSelectionFormulaDialog, openJavaBeanDialog, openPageLayoutDialog, openParameterDialog, openPropertyFormulaDialog, openRecordSelectionFormulaDialog, openRepositoryConfigDialog, openSectionDialog, openSortRecordsDialog, openSQLDialog, openSubreportLinksDialog, openSumDialog, openSummaryInfoDialog, openUserFormulaDialog, openVisualDatabaseWizardDialog, removedElement, removedGroup, removedSubreport, reopenReport, saveOnRepository, setAddElementAllowed, setAddGroupAllowed, setAddSectionAllowed, setCloseAllowed, setDatabaseChangeAllowed, setDataSourceManagerAllowed, setDesignNeedsConnection, setIsInvalidSPSelectable, setOpenAllowed, setPreviewTabVisible, setRemoveElementAllowed, setRemoveGroupAllowed, setRemoveSectionAllowed, setReopenAllowed, setSaveAllowed, setSaveAsAllowed, setTablesChangeAllowed
-
Felddetails
-
FILE_CHOOSER
This variable is used to assure the same filechooser is used again. This way you may modify the configuration but keep the current working directory or other properties. There is no restriction you really have to use this, you may create a new chooser every time ingetOpenFileChooser()orgetSaveFileChooser(File).
-
-
Konstruktordetails
-
BasicDesignerDataModel
public BasicDesignerDataModel()FOR INTERNAL USE ONLY
-
-
Methodendetails
-
isReportWizardEnabled
public boolean isReportWizardEnabled()Returns true if a new report shall be created using the ReportWizard.- Angegeben von:
isReportWizardEnabledin SchnittstelleDesignerDataModel- Setzt außer Kraft:
isReportWizardEnabledin KlasseAbstractDesignerDataModel- Gibt zurück:
- true <=> Create a new report using the ReportWizard.
- Seit:
- 7.0
-
createNewReportWithWizard
Opens the report wizard to create a new report and returns the created Engine object.- Parameter:
parent- A parental Component to be used in conjunction with a Dialog.- Gibt zurück:
- The Engine object of the created report or null
- Löst aus:
ReportException- Creation of a new report failed.- Seit:
- 7.0
-
createNewReport
Create a new report. Please note that this will be called only ifisReportWizardEnabled()returns false. OtherwisecreateNewReportWithWizard(Component)will be called to create a new report.- Parameter:
parent- A parent window to use for your own dialog.- Gibt zurück:
nullto indicate nothing was created or the engine of the new report- Löst aus:
ReportException- to indicate nothing was created as the result of a Report problem- Seit:
- 7.0
-
loadReport
Load a report. Choosing a location is the task of the programmer who may use any Swing component.- Parameter:
parent- the parent component which should be used in dialogs.- Gibt zurück:
nullto indicate nothing was loaded (choice of the user) or the engine of the loaded report- Löst aus:
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- Siehe auch:
-
loadReportFrom
Load a report. Choosing a location is the task of the programmer who may use any Swing component.- Parameter:
parent- the parent component which should be used in dialogs.dir- the Directory for the FileChooser.- Gibt zurück:
nullto indicate nothing was loaded (choice of the user) or the engine of the loaded report- Löst aus:
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- Siehe auch:
-
saveReport
public boolean saveReport(Component parent, Engine e, boolean saveAs) throws IOException, ReportException Save a report Choosing a location is the task of the programmer who may use any Swing component.- Parameter:
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)- Gibt zurück:
trueto indicate the report was successfully saved.- Löst aus:
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- Siehe auch:
-
getOpenFileChooser
Returns a file chooser which will be used when a report template should be opened. This will return a file chooser with the possible extensions rpt and dataview.
You may override this method to return a modified file chooser (e.g. with an additional file filter).- Gibt zurück:
- A preconfigured file chooser.
- Seit:
- 7.0
-
getSaveFileChooser
Returns a file chooser which will be used when a report template should be saved. This will return a file chooser with the possible extensions rpt and xml.
You may override this method to return a modified file chooser (e.g. with an own file filter).- Parameter:
file- The default file which should be used for saving.- Gibt zurück:
- A preconfigured file chooser
- Seit:
- 7.0
-
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.- Angegeben von:
loadReportsFromin SchnittstelleDesignerDataModel- Setzt außer Kraft:
loadReportsFromin KlasseAbstractDesignerDataModel- Parameter:
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.- Gibt zurück:
nullto indicate nothing was loaded (choice of the user) or an array of engines of the loaded report- Löst aus:
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- Siehe auch:
-
create
Create a new BasicDesignerDataModel.- Gibt zurück:
- New BasicDesignerDataModel
- Seit:
- 7.0
-