Class Startup

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

public final class Startup extends Object
This class shows the Splash screen and starts up the i-net Designer.
  • Method Details

    • setProperties

      public static void setProperties(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.
      Since:
      7.0
      See Also:
    • main

      public static void main(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:
      • --open <report file> to open a report at start
      Parameters:
      args - Command line arguments to pass to i-net Designer.
      Since:
      6.0
    • startEmbedded

      public static final void startEmbedded(Properties clearReportsProperties)
      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

      public static final void startEmbedded(Properties clearReportsProperties, String[] args)
      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

      public static final void openReport(File reportFile)
      Open a report in the embedded i-net Designer.
      Parameters:
      reportFile - The report file which should be opened.
      Throws:
      IllegalStateException - If startEmbedded(Properties) was not called first.
      Since:
      6.0
    • 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.
      Since:
      6.0
    • 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.
      Since:
      6.0
    • 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.
      Since:
      6.0
    • 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.
      Since:
      6.0