Package com.inet.designer
Class EmbeddedUtils
java.lang.Object
com.inet.designer.EmbeddedUtils
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
Modifier and TypeFieldDescriptionstatic 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
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addFileToLastOpened
(File file) adds a file name to the list of last opened filesstatic void
addMenuToMenubar
(JMenu menu) 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
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.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.
-
Field Details
-
MENU_FILE
public static final int MENU_FILEStatic variable to return the file menu node.- Since:
- 6.5
- See Also:
-
MENU_INSERT
public static final int MENU_INSERTStatic variable to return the insert menu node.- Since:
- 6.5
- See Also:
-
MENU_EDIT
public static final int MENU_EDITStatic variable to return the edit menu node.- Since:
- 6.5
- See Also:
-
MENU_HELP
public static final int MENU_HELPStatic variable to return the help menu node.- Since:
- 6.5
- See Also:
-
MENU_DATABASE
public static final int MENU_DATABASEStatic variable to return the database menu node.- Since:
- 6.5
- See Also:
-
MENU_REPORT
public static final int MENU_REPORTStatic variable to return the report menu node.- Since:
- 6.5
- See Also:
-
MENU_VIEW
public static final int MENU_VIEWStatic variable to return the viev menu node.- Since:
- 6.5
- See Also:
-
MENU_WINDOW
public static final int MENU_WINDOWStatic variable to return the window menu node.- Since:
- 6.5
- See Also:
-
MENU_OPTION
public static final int MENU_OPTIONStatic variable to return the window menu node.- Since:
- 6.5
- See Also:
-
-
Constructor Details
-
EmbeddedUtils
public EmbeddedUtils()FOR INTERNAL USE ONLY
-
-
Method Details
-
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
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
Returns the engines of all reports which are currently opened.- Returns:
- The engine or null if no report is opened.
- Since:
- 6.1
-
refreshObject
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
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
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
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
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
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
-