i-net Clear Reports

com.inet.designer
Class Startup

java.lang.Object
  extended by com.inet.designer.Startup

public final class Startup
extends java.lang.Object

This class shows the Splash screen and starts up the i-net Designer.


Method Summary
static void addDesignerListener(DesignerListener l)
          Add a Listener to get callbacks if some important events happen to the i-net Designer.
static DesignerDataModel getModel()
          Get the data model for the i-net Designer.
static void main(java.lang.String[] args)
          Main method to start the i-net Designer without its own Classloader.
static void openReport(java.io.File reportFile)
          Open a report in the embedded i-net Designer.
static void removeDesignerListener(DesignerListener l)
          Remove a Listener to get callbacks if some important events happen to the i-net Designer.
static void setModel(DesignerDataModel model)
          Set the data model for the i-net Designer.
static void setProperties(java.util.Properties clearReportsProperties)
          Set the properties before the call startEmbedded.
static void setProperties(java.util.Properties clearReportsProperties, boolean importDatasources)
          Set the properties before the call startEmbedded.
static void startEmbedded(java.util.Properties clearReportsProperties)
          Start the i-net Designer as an embedded Frame in your own application.
static void startEmbedded(java.util.Properties clearReportsProperties, java.lang.String[] args)
          Start the i-net Designer as en embedded Frame in your own application.
 

Method Detail

setProperties

public static void setProperties(java.util.Properties clearReportsProperties)
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.
See Also:
startEmbedded(Properties), setProperties(Properties, boolean)

setProperties

public static void setProperties(java.util.Properties clearReportsProperties,
                                 boolean importDatasources)
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.
importDatasources - whether or not to take datasource properties and create and configure data sources.
Since:
8.2
See Also:
startEmbedded(Properties)

main

public static void main(java.lang.String[] args)
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:

Parameters:
args - Command line arguments to pass to i-net Designer.

startEmbedded

public static final void startEmbedded(java.util.Properties clearReportsProperties)
Start the i-net Designer as an embedded Frame in your own application.

Parameters:
clearReportsProperties - The configuration properties for the i-net Designer.
See Also:
startEmbedded(Properties, String[]), setProperties(Properties)

startEmbedded

public static final void startEmbedded(java.util.Properties clearReportsProperties,
                                       java.lang.String[] args)
Start the i-net Designer as en 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"}
See Also:
startEmbedded(Properties), setProperties(Properties)

openReport

public static final void openReport(java.io.File reportFile)
Open a report in the embedded i-net Designer.

Parameters:
reportFile - The report file which should be opened.
Throws:
java.lang.IllegalStateException - If startEmbedded(Properties) was not called first.

addDesignerListener

public static final void addDesignerListener(DesignerListener l)
Add a Listener to get callbacks if some important events happen to the i-net Designer.

Parameters:
l - The Listener to register.

removeDesignerListener

public static final void removeDesignerListener(DesignerListener l)
Remove a Listener to get callbacks if some important events happen to the i-net Designer.

Parameters:
l - The Listener to unregister.

setModel

public static final void setModel(DesignerDataModel model)
Set the data model for the i-net Designer. The model specifies how reports are loaded and saved.

Parameters:
model - The model.

getModel

public static final DesignerDataModel getModel()
Get the data model for the i-net Designer. The model specifies how reports are loaded and saved.

Returns:
model The model.

i-net Clear Reports

Copyright © 1999-2013 by i-net software GmbH