Class Startup


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

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      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 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 an embedded Frame in your own application.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.
        Since:
        7.0
        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:
        • --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​(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.
        Since:
        6.0
        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 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:
        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.
        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