Package com.inet.designer
Class Startup
java.lang.Object
com.inet.designer.Startup
This class shows the Splash screen and starts up the i-net Designer.
-
Method Summary
Modifier and TypeMethodDescriptionstatic final void
Add a Listener to get callbacks if some important events happen to the i-net Designer.static final DesignerDataModel
getModel()
Get the data model for the i-net Designer.static void
Main method to start the i-net Designer without its own Classloader.static final void
openReport
(File reportFile) Open a report in the embedded i-net Designer.static final void
Remove a Listener to get callbacks if some important events happen to the i-net Designer.static final void
setModel
(DesignerDataModel model) Set the data model for the i-net Designer.static void
setProperties
(Properties clearReportsProperties) Set the properties before the call startEmbedded.static final void
startEmbedded
(Properties clearReportsProperties) Start the i-net Designer as an embedded Frame in your own application.static final void
startEmbedded
(Properties clearReportsProperties, String[] args) Start the i-net Designer as an embedded Frame in your own application.
-
Method Details
-
setProperties
Set the properties before the call startEmbedded. This is helpful for the logging before startEmbedded. If you use this method then you must also set the properties on call of startEmbedded.- Parameters:
clearReportsProperties
- The configuration properties for the i-net Designer.- Since:
- 7.0
- See Also:
-
main
Main method to start the i-net Designer without its own Classloader. This can be used to start the i-net Designer from Java WebStart. Possible command line arguments to pass:- --open <report file> to open a report at start
- Parameters:
args
- Command line arguments to pass to i-net Designer.- Since:
- 6.0
-
startEmbedded
Start the i-net Designer as an embedded Frame in your own application. For an embedded i-net Designer:- no L&F is set. You need to set it in your application.
- System.exit(x) is never call
- Parameters:
clearReportsProperties
- The configuration properties for the i-net Designer.- Since:
- 6.0
- See Also:
-
startEmbedded
Start the i-net Designer as an embedded Frame in your own application. Additionally you can define report files which should directly be opened.- Parameters:
clearReportsProperties
- The configuration properties for the i-net Designer. Can be null. If this set then the menu point "i-net Clear Reports Options" is disabled.args
- The command line parameters with which you can open reports when starting the i-net Designer. The format on the command line is like this:
--open report1.rpt --open report2.rpt.
So the passed string array should then look like this:
new String[]{"--open","report1.rpt","--open","report2.rpt"}- Since:
- 6.0
- See Also:
-
openReport
Open a report in the embedded i-net Designer.- Parameters:
reportFile
- The report file which should be opened.- Throws:
IllegalStateException
- IfstartEmbedded(Properties)
was not called first.- Since:
- 6.0
-
addDesignerListener
Add a Listener to get callbacks if some important events happen to the i-net Designer.- Parameters:
l
- The Listener to register.- Since:
- 6.0
-
removeDesignerListener
Remove a Listener to get callbacks if some important events happen to the i-net Designer.- Parameters:
l
- The Listener to unregister.- Since:
- 6.0
-
setModel
Set the data model for the i-net Designer. The model specifies how reports are loaded and saved.- Parameters:
model
- The model.- Since:
- 6.0
-
getModel
Get the data model for the i-net Designer. The model specifies how reports are loaded and saved.- Returns:
- model The model.
- Since:
- 6.0
-