Class EmbeddedUtils

java.lang.Object
com.inet.designer.EmbeddedUtils

public class EmbeddedUtils extends Object
This class is a useful one when you want to use i-net Designer embedded in your application. It provides methods which will help you to get information about the report templates opened and which allow to manipulate the look and feel of i-net Designer.
Since:
6.1
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Static variable to return the database menu node.
    static final int
    Static variable to return the edit menu node.
    static final int
    Static variable to return the file menu node.
    static final int
    Static variable to return the help menu node.
    static final int
    Static variable to return the insert menu node.
    static final int
    Static variable to return the window menu node.
    static final int
    Static variable to return the report menu node.
    static final int
    Static variable to return the viev menu node.
    static final int
    Static variable to return the window menu node.
  • Constructor Summary

    Constructors
    Constructor
    Description
    FOR INTERNAL USE ONLY
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    adds a file name to the list of last opened files
    static void
    Adds a menu to the i-net Designer´s main menubar.
    static Engine
    Returns the engine of the report that is currently opened.
    static Engine[]
    Returns the engines of all reports which are currently opened.
    static JMenu
    getMenu(int menu)
    Returns the i-net Designer menu item which corresponds to the menu id.
    static JFrame
    Returns the parent i-net Designer frame.
    static Engine
    Returns the current selected engine of the report.
    static void
    Refreshes the given element in the i-net Designer.
    If you have changed one or more properties of an element call this method to update the element shown in the i-net Designer.
    static void
    This method loads the default page layout from the local registry.
    It can be called for example to initialize the page layout for a new engine with the default layout.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • EmbeddedUtils

      public EmbeddedUtils()
      FOR INTERNAL USE ONLY
  • Method Details

    • getCurrentEngine

      public static Engine getCurrentEngine()
      Returns the engine of the report that is currently opened.
      Returns:
      The engine or null if no report is opened.
      Since:
      6.1
    • getSelectedEngine

      public static Engine getSelectedEngine()
      Returns the current selected engine of the report. The selected engine may differ from getCurrentEngine, if a subreport is selected.
      Returns:
      The engine or null if no report is opened.
      Since:
      14.1
    • getLoadedEngines

      public static Engine[] getLoadedEngines()
      Returns the engines of all reports which are currently opened.
      Returns:
      The engine or null if no report is opened.
      Since:
      6.1
    • refreshObject

      public static void refreshObject(Element element)
      Refreshes the given element in the i-net Designer.
      If you have changed one or more properties of an element call this method to update the element shown in the i-net Designer.
      Parameters:
      element - The Element whose visual representation is to be refreshed
      Since:
      6.1
    • getMenu

      public static JMenu getMenu(int menu)
      Returns the i-net Designer menu item which corresponds to the menu id.
      Parameters:
      menu - The id of the menu
      Returns:
      The menu item or null if the id is invalid.
      Since:
      6.1
      See Also:
    • getParentComponent

      public static JFrame getParentComponent()
      Returns the parent i-net Designer frame.
      You can use this frame as parent for dialog- and messageboxes.
      Returns:
      The i-net Designer main frame.
      Since:
      6.1
    • addMenuToMenubar

      public static void addMenuToMenubar(JMenu menu)
      Adds a menu to the i-net Designer´s main menubar.
      Parameters:
      menu - A JMenu to add to the menu bar of i-net Designer.
      Since:
      6.1
    • addFileToLastOpened

      public static void addFileToLastOpened(File file)
      adds a file name to the list of last opened files
      Parameters:
      file - The file to be added to the list of last opened files.
      Since:
      6.5
    • setDefaultPageLayout

      public static void setDefaultPageLayout(Engine engine)
      This method loads the default page layout from the local registry.
      It can be called for example to initialize the page layout for a new engine with the default layout.
      Parameters:
      engine - The page layout will be set for the given engine.
      Since:
      6.5