|
i-net Clear Reports | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.inet.designer.AbstractDesignerDataModel
public abstract class AbstractDesignerDataModel
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 | |
|---|---|
AbstractDesignerDataModel()
Initializes this DesignerDataModel implementation. |
|
| Method Summary | |
|---|---|
void |
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. |
SwingReportViewer |
createViewer()
creates a new SwingReportViewer and initializes it with the necessary ViewerContext, as well as piping its
log stream to the appropriate position (via SwingReportViewer.setLoggingStream(java.io.PrintStream). |
java.io.File |
getApplicationDirectory()
Returns the location of the application directory which is the directory where the designer is located in. |
java.util.ArrayList |
getAvailableFonts()
Returns a list of all available fonts for the designer. |
java.util.List |
getAvailableFontsFromRepository()
fetches a list of fonts available on the repository configured for the designer |
boolean |
isAddElementAllowed(int elementType)
This method checks if its allowed to add a element to a report with the i-net Designer. |
boolean |
isAddGroupAllowed()
This method checks if its allowed to add new groups to any report. |
boolean |
isAddSectionAllowed()
This method checks if its allowed to add a new section to a report with the i-net Designer. |
boolean |
isCloseAllowed()
This method checks if its allowed to close reports opened with the i-net Designer. |
boolean |
isDataSourceManagerAllowed()
Returns whether the datasource manager dialog is accessible or not. |
boolean |
isDatabaseChangeAllowed()
Check if the database configuration may be changed. |
boolean |
isDatabaseObjectVisible(int databaseObjectType,
java.lang.String databaseObjectName)
Checks if the given database object should be visible in the database browser. |
boolean |
isDesignNeedsConnection()
This method checks if the with the i-net Designer opened reports need a database connection. |
boolean |
isInetTemplatesEnabled()
Returns true if the templates supplied through i-net will be enabled or not. |
boolean |
isInvalidSPSelectable()
This method checks if a invalid connection is selectable in the virtual database dialog. |
boolean |
isOpenAllowed()
Check if opening reports is allowed. |
boolean |
isPreviewTabVisible()
Checks if the preview tab should be visible or not. |
boolean |
isRemoveElementAllowed(int elementType)
This method checks if its allowed to remove a element from a report with the i-net Designer. |
boolean |
isRemoveGroupAllowed()
This method checks if its allowed to remove a group from the report opened with the i-net Designer. |
boolean |
isRemoveSectionAllowed()
This method checks if its allowed to remove section from a report with the i-net Designer. |
boolean |
isReopenAllowed()
This method checks if its allowed to reopen a report with the i-net Designer. |
boolean |
isReportWizardEnabled()
Returns true if a new report shall be created using the ReportWizard. |
boolean |
isSaveAllowed()
Check if save is allowed. |
boolean |
isSaveAsAllowed()
Check if save as is allowed. |
boolean |
isTablesChangeAllowed()
Check if tables may be added or removed and if the links may be changed. |
Engine[] |
loadReportsFrom(java.awt.Component parent,
java.net.URL initialURL)
Loads one or more report. |
void |
openConnectionManagerDialog()
This method is called if the user wants to open the Connection Manager dialog. |
void |
openFromRepository()
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. |
FormulaField |
openGroupSelectionFormulaDialog(FormulaField formulafield)
This method is called if the user wants to open the dialog for a group selection formula. |
void |
openJavaBeanDialog()
This method is called if the user wants to open the Java Bean dialog. |
void |
openPageLayoutDialog()
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. |
FormulaField |
openPropertyFormulaDialog(FormulaField formulafield,
int valueType,
Element element,
java.lang.Object defaultValue)
This method is called if the user wants to open the dialog for a property formula. |
FormulaField |
openRecordSelectionFormulaDialog(FormulaField formulafield)
This method is called if the user wants to open the dialog for a record selection formula. |
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. |
SQLField |
openSQLDialog(SQLField sqlField)
This method is called if the user wants to open the dialog for a SQL field. |
void |
openSectionDialog(Section section)
This method is called if the user wants to open the Section dialog. |
void |
openSortRecordsDialog()
This method is called if the user wants to open the Records dialog. |
void |
openSubreportLinksDialog(java.lang.String reportName)
This method is called if the user wants to open the Subreport links dialog. |
SummaryField |
openSumDialog(SummaryField sumfield)
This method is called if the user wants to open the dialog for a summary field. |
void |
openSummaryInfoDialog()
This method is called if the user wants to open the Summary Info dialog. |
FormulaField |
openUserFormulaDialog(FormulaField formulafield)
This method is called if the user wants to open the dialog for a user defined formula. |
void |
openVisualDatabaseWizardDialog()
This method is called if the user wants to open the Visual Database Wizard dialog. |
void |
openedSubreport(Engine engine)
This method is called if a subreport was opened by the user to edit it. |
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. |
Engine |
reopenReport(java.io.File reportFile)
Load a report. |
void |
saveOnRepository()
Opens up a save dialog which enables the user to save a report onto the repository configured for the designer. |
void |
setAddElementAllowed(boolean isAddElementAllowed,
int elementType)
Set if its allowed to add a element to a report with the i-net Designer. |
void |
setAddGroupAllowed(boolean isAddGroupAllowed)
Set if its allowed to add new groups to the reports. |
void |
setAddSectionAllowed(boolean isAddSectionAllowed)
Set if its allowed to add a new section to a report with the i-net Designer. |
void |
setCloseAllowed(boolean isCloseAllowed)
Set if its allowed to close reports opened with the i-net Designer. |
void |
setDataSourceManagerAllowed(boolean isAllowed)
Sets whether the datasource manager dialog shall be accessible or not. |
void |
setDatabaseChangeAllowed(boolean databaseChangeAllowed)
Set if changes to the connection are allowed. |
void |
setDesignNeedsConnection(boolean designNeedsConnection)
Set if the with the i-net Designer opened reports need a database connection. |
void |
setIsInvalidSPSelectable(boolean newSIISPS)
Set if a invalid connection is selectable in the virtual database dialog. |
void |
setOpenAllowed(boolean openAllowed)
Set if open is allowed. |
void |
setPreviewTabVisible(boolean previewTabVisible)
Use this method to enable/disable the preview tab of the i-net Designer. |
void |
setRemoveElementAllowed(boolean isRemoveElementAllowed,
int elementType)
Set if its allowed to remove a element from a report with the i-net Designer. |
void |
setRemoveGroupAllowed(boolean isRemoveGroupAllowed)
Set if its allowed to remove a group from the report opened with the i-net Designer. |
void |
setRemoveSectionAllowed(boolean isRemoveSectionAllowed)
Set if its allowed to remove a section from a report with the i-net Designer. |
void |
setReopenAllowed(boolean isReopenAllowed)
Set if its allowed to reopen a report with the i-net Designer. |
void |
setSaveAllowed(boolean saveAllowed)
Set if save is allowed. |
void |
setSaveAsAllowed(boolean saveAsAllowed)
Set if save as is allowed. |
void |
setTablesChangeAllowed(boolean tablesChangeAllowed)
Set if tables may be changed. |
| Methods inherited from interface com.inet.designer.DesignerDataModel |
|---|
createNewReport, loadReport, loadReportFrom, saveReport |
| Constructor Detail |
|---|
public AbstractDesignerDataModel()
| Method Detail |
|---|
public java.io.File getApplicationDirectory()
getApplicationDirectory in interface DesignerDataModelpublic boolean isReportWizardEnabled()
isReportWizardEnabled in interface DesignerDataModelpublic boolean isInetTemplatesEnabled()
isInetTemplatesEnabled in interface DesignerDataModelpublic java.util.ArrayList getAvailableFonts()
getAvailableFonts in interface DesignerDataModelpublic java.util.List getAvailableFontsFromRepository()
getAvailableFontsFromRepository in interface DesignerDataModelpublic boolean isPreviewTabVisible()
isPreviewTabVisible in interface DesignerDataModeltrue if the preview tab should be visible otherwise falsepublic void setPreviewTabVisible(boolean previewTabVisible)
setPreviewTabVisible in interface DesignerDataModelpreviewTabVisible - true to allow, false to deny
public boolean isDatabaseObjectVisible(int databaseObjectType,
java.lang.String databaseObjectName)
isDatabaseObjectVisible in interface DesignerDataModeldatabaseObjectType - The type of the database object. This will be one of the following table, system table, view or stored proceduredatabaseObjectName - The name of the database object (e.g. of a table)
truepublic boolean isDatabaseChangeAllowed()
isDatabaseChangeAllowed in interface DesignerDataModelpublic boolean isOpenAllowed()
isOpenAllowed in interface DesignerDataModelpublic boolean isSaveAllowed()
isSaveAllowed in interface DesignerDataModelpublic boolean isSaveAsAllowed()
isSaveAsAllowed in interface DesignerDataModelpublic boolean isTablesChangeAllowed()
isTablesChangeAllowed in interface DesignerDataModelpublic void setDatabaseChangeAllowed(boolean databaseChangeAllowed)
setDatabaseChangeAllowed in interface DesignerDataModeldatabaseChangeAllowed - true to allow, false to denypublic void setOpenAllowed(boolean openAllowed)
setOpenAllowed in interface DesignerDataModelopenAllowed - true to allow, false to denypublic void setSaveAllowed(boolean saveAllowed)
setSaveAllowed in interface DesignerDataModelsaveAllowed - true to allow, false to denypublic void setSaveAsAllowed(boolean saveAsAllowed)
setSaveAsAllowed in interface DesignerDataModelsaveAsAllowed - true to allow, false to denypublic void setTablesChangeAllowed(boolean tablesChangeAllowed)
setTablesChangeAllowed in interface DesignerDataModeltablesChangeAllowed - true to allow, false to denypublic boolean isDesignNeedsConnection()
isDesignNeedsConnection in interface DesignerDataModeltrue if the report needs a connection, false if not.public void setDesignNeedsConnection(boolean designNeedsConnection)
setDesignNeedsConnection in interface DesignerDataModeldesignNeedsConnection - true if the report needs a connection, false if not.public boolean isInvalidSPSelectable()
isInvalidSPSelectable in interface DesignerDataModeltrue if invalid SPs are selectable, false if not.public void setIsInvalidSPSelectable(boolean newSIISPS)
newSIISPS - true if invalid SPs are selectable, false if not.public boolean isAddGroupAllowed()
isAddGroupAllowed in interface DesignerDataModeltrue if its allowed to add new groups, false if not.public void setAddGroupAllowed(boolean isAddGroupAllowed)
setAddGroupAllowed in interface DesignerDataModelisAddGroupAllowed - true if its allowed to add new groups, false if not.public boolean isCloseAllowed()
isCloseAllowed in interface DesignerDataModeltrue if its allowed to close the report, false if not.public void setCloseAllowed(boolean isCloseAllowed)
setCloseAllowed in interface DesignerDataModelisCloseAllowed - true if its allowed to close the report, false if not.public boolean isRemoveGroupAllowed()
isRemoveGroupAllowed in interface DesignerDataModeltrue if its allowed to remove groups, false if not.public void setRemoveGroupAllowed(boolean isRemoveGroupAllowed)
setRemoveGroupAllowed in interface DesignerDataModelisRemoveGroupAllowed - true if its allowed to remove groups, false if not.public boolean isReopenAllowed()
isReopenAllowed in interface DesignerDataModeltrue if its allowed to reopen a report, false if not.public void setReopenAllowed(boolean isReopenAllowed)
setReopenAllowed in interface DesignerDataModelisReopenAllowed - true if its allowed to reopen a report, false if not.
public void setAddElementAllowed(boolean isAddElementAllowed,
int elementType)
setAddElementAllowed in interface DesignerDataModelisAddElementAllowed - true if its allowed to add the element, false if not.elementType - Type of the element you want to allow/deny.Element.TEXT,
Element.LINE,
Element.BOX,
Element.CROSSTAB,
Element.CHART,
Element.FIELD,
Element.JAVABEAN,
Element.SUBREPORT,
Element.PICTUREpublic boolean isAddElementAllowed(int elementType)
isAddElementAllowed in interface DesignerDataModelelementType - Type of the element you want to allow/deny.
Element.TEXT,
Element.LINE,
Element.BOX,
Element.CROSSTAB,
Element.CHART,
Element.FIELD,
Element.JAVABEAN,
Element.SUBREPORT,
Element.PICTURE
public void setRemoveElementAllowed(boolean isRemoveElementAllowed,
int elementType)
setRemoveElementAllowed in interface DesignerDataModelisRemoveElementAllowed - true if its allowed to remove the element, false if not.elementType - Type of the element you want to allow/deny.Element.TEXT,
Element.LINE,
Element.BOX,
Element.CROSSTAB,
Element.CHART,
Element.FIELD,
Element.JAVABEAN,
Element.SUBREPORT,
Element.PICTUREpublic boolean isRemoveElementAllowed(int elementType)
isRemoveElementAllowed in interface DesignerDataModelelementType - Type of the element you want to allow/deny.
Element.TEXT,
Element.LINE,
Element.BOX,
Element.CROSSTAB,
Element.CHART,
Element.FIELD,
Element.JAVABEAN,
Element.SUBREPORT,
Element.PICTUREpublic boolean isAddSectionAllowed()
isAddSectionAllowed in interface DesignerDataModeltrue if its allowed to add a section to a report, false if not.public void setAddSectionAllowed(boolean isAddSectionAllowed)
setAddSectionAllowed in interface DesignerDataModelisAddSectionAllowed - true if its allowed to add a section to a report, false if
not.public boolean isRemoveSectionAllowed()
isRemoveSectionAllowed in interface DesignerDataModeltrue if its allowed to remove a section from a report, false if not.public void setRemoveSectionAllowed(boolean isRemoveSectionAllowed)
setRemoveSectionAllowed in interface DesignerDataModelisRemoveSectionAllowed - true if its allowed to remove a section from a report,
false if not.public void openParameterDialog(PromptField parameterField)
openParameterDialog in interface DesignerDataModelparameterField - The parameter field if already existent, otherwise null
Note: Since version 7.0 this method does not return the modified
field anymore.public SQLField openSQLDialog(SQLField sqlField)
openSQLDialog in interface DesignerDataModelsqlField - The SQL field if already existent, otherwise null
public SummaryField openSumDialog(SummaryField sumfield)
openSumDialog in interface DesignerDataModelsumfield - The parameter field if already existent, otherwise null
public void openGroupDialog(Group group)
openGroupDialog in interface DesignerDataModelgroup - The group if already existent, otherwise nullpublic void openSummaryInfoDialog()
openSummaryInfoDialog in interface DesignerDataModelpublic void openSortRecordsDialog()
openSortRecordsDialog in interface DesignerDataModelpublic void openSubreportLinksDialog(java.lang.String reportName)
openSubreportLinksDialog in interface DesignerDataModelreportName - Name of the subreport or null if no subreport was selectedpublic void openSectionDialog(Section section)
openSectionDialog in interface DesignerDataModelsection - the selected section or null if no section was selectedpublic void openVisualDatabaseWizardDialog()
openVisualDatabaseWizardDialog in interface DesignerDataModelpublic void openConnectionManagerDialog()
openConnectionManagerDialog in interface DesignerDataModelpublic void openJavaBeanDialog()
openJavaBeanDialog in interface DesignerDataModelpublic FormulaField openUserFormulaDialog(FormulaField formulafield)
openUserFormulaDialog in interface DesignerDataModelformulafield - The formula field if already existent, otherwise null
public FormulaField openPropertyFormulaDialog(FormulaField formulafield,
int valueType,
Element element,
java.lang.Object defaultValue)
openPropertyFormulaDialog in interface DesignerDataModelformulafield - 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 formula
public FormulaField openRecordSelectionFormulaDialog(FormulaField formulafield)
openRecordSelectionFormulaDialog in interface DesignerDataModelformulafield - The formulafield if it already exists, otherwise null
public FormulaField openGroupSelectionFormulaDialog(FormulaField formulafield)
openGroupSelectionFormulaDialog in interface DesignerDataModelformulafield - The formulafield if already existent, otherwise null
public void closedReport(Engine engine)
closedReport in interface DesignerDataModelengine - the engine of the closed report.public void addedSubreport(Engine engine)
addedSubreport in interface DesignerDataModelengine - the engine of the added subreport.public void removedSubreport(Engine engine)
removedSubreport in interface DesignerDataModelengine - the engine of the removed subreport.public void openedSubreport(Engine engine)
openedSubreport in interface DesignerDataModelengine - the engine of the opened subreport.public void closedSubreport(Engine engine)
closedSubreport in interface DesignerDataModelengine - the engine of the closed subreport.public void addedGroup(Group group)
addedGroup in interface DesignerDataModelgroup - the added group.public void removedGroup(Group group)
removedGroup in interface DesignerDataModelgroup - the removed group.public void addedElement(Element element)
addedElement in interface DesignerDataModelelement - the added element.public void removedElement(Element element)
removedElement in interface DesignerDataModelelement - the removed element.
public Engine reopenReport(java.io.File reportFile)
throws ReportException
reopenReport in interface DesignerDataModelreportFile - the file object which contains the path to the report.
ReportException - to indicate nothing was loaded as the result of a Report problempublic void openPageLayoutDialog()
openPageLayoutDialog in interface DesignerDataModelpublic boolean isDataSourceManagerAllowed()
isDataSourceManagerAllowed in interface DesignerDataModelpublic void setDataSourceManagerAllowed(boolean isAllowed)
setDataSourceManagerAllowed in interface DesignerDataModelisAllowed - True if the datasource manager dialog should be
accessible false otherwise.public void openRepositoryConfigDialog()
openRepositoryConfigDialog in interface DesignerDataModelDesignerDataModel.saveOnRepository(),
DesignerDataModel.openFromRepository()
public Engine[] loadReportsFrom(java.awt.Component parent,
java.net.URL initialURL)
throws java.io.IOException,
ReportException
loadReportsFrom in interface DesignerDataModelparent - 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.
null to indicate nothing was loaded (choice of the
user) or an array of engines of the loaded report
java.io.IOException - to indicate nothing was loaded as the result of an IO problem
ReportException - to indicate nothing was loaded as the result of a Report problempublic void saveOnRepository()
saveOnRepository in interface DesignerDataModelDesignerDataModel.openRepositoryConfigDialog(),
DesignerDataModel.openFromRepository()public void openFromRepository()
openFromRepository in interface DesignerDataModelDesignerDataModel.openRepositoryConfigDialog(),
DesignerDataModel.saveOnRepository()public SwingReportViewer createViewer()
SwingReportViewer and initializes it with the necessary ViewerContext, as well as piping its
log stream to the appropriate position (via SwingReportViewer.setLoggingStream(java.io.PrintStream). It is recommended to
first call the default implementation in AbstractDesignerDataModel and then
configure the created viewer to your liking if you are customizing this behavior.
createViewer in interface DesignerDataModel
|
i-net Clear Reports | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||