public class EmbeddedUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
MENU_DATABASE
Static variable to return the database menu node.
|
static int |
MENU_EDIT
Static variable to return the edit menu node.
|
static int |
MENU_FILE
Static variable to return the file menu node.
|
static int |
MENU_HELP
Static variable to return the help menu node.
|
static int |
MENU_INSERT
Static variable to return the insert menu node.
|
static int |
MENU_OPTION
Static variable to return the window menu node.
|
static int |
MENU_REPORT
Static variable to return the report menu node.
|
static int |
MENU_VIEW
Static variable to return the viev menu node.
|
static int |
MENU_WINDOW
Static variable to return the window menu node.
|
Modifier and Type | Method and Description |
---|---|
static void |
addFileToLastOpened(java.io.File file)
adds a file name to the list of last opened files
|
static void |
addMenuToMenubar(javax.swing.JMenu menu)
Adds a menu to the i-net Designer´s main menubar.
|
static boolean |
addToClasspath(java.lang.String urlOrPath)
This will add a jar file specified by an URL or a path to the classpath of i-net Designer.
|
static Engine |
getCurrentEngine()
Returns the engine of the report that is currently opened.
|
static Engine[] |
getLoadedEngines()
Returns the engines of all reports which are currently opened.
|
static javax.swing.JMenu |
getMenu(int menu)
Returns the i-net Designer menu item which corresponds to the menu id.
|
static javax.swing.JFrame |
getParentComponent()
Returns the parent i-net Designer frame.
|
static Engine |
getSelectedEngine()
Returns the current selected engine of the report.
|
static void |
refreshObject(Element element)
Refreshes the given element in the i-net Designer.
|
static void |
setDefaultPageLayout(Engine engine)
This method loads the default page layout from the local registry.
|
public static final int MENU_FILE
getMenu(int menu)
,
Constant Field Valuespublic static final int MENU_INSERT
getMenu(int menu)
,
Constant Field Valuespublic static final int MENU_EDIT
getMenu(int menu)
,
Constant Field Valuespublic static final int MENU_HELP
getMenu(int menu)
,
Constant Field Valuespublic static final int MENU_DATABASE
getMenu(int menu)
,
Constant Field Valuespublic static final int MENU_REPORT
getMenu(int menu)
,
Constant Field Valuespublic static final int MENU_VIEW
getMenu(int menu)
,
Constant Field Valuespublic static final int MENU_WINDOW
getMenu(int menu)
,
Constant Field Valuespublic static final int MENU_OPTION
getMenu(int menu)
,
Constant Field Valuespublic static Engine getCurrentEngine()
public static Engine getSelectedEngine()
public static Engine[] getLoadedEngines()
public static void refreshObject(Element element)
element
- The Element whose visual representation is to be refreshedpublic static javax.swing.JMenu getMenu(int menu)
menu
- The id of the menuMENU_FILE
,
MENU_INSERT
,
MENU_EDIT
,
MENU_HELP
,
MENU_DATABASE
,
MENU_REPORT
,
MENU_VIEW
,
MENU_WINDOW
public static javax.swing.JFrame getParentComponent()
public static void addMenuToMenubar(javax.swing.JMenu menu)
menu
- A JMenu to add to the menu bar of i-net Designer.public static void addFileToLastOpened(java.io.File file)
file
- The file to be added to the list of last opened files.public static boolean addToClasspath(java.lang.String urlOrPath)
false
will be returned. If
an InputStream could be opened the url created will be added to the classpath of i-net Designer.urlOrPath
- A string containing an URL (e.g. "file:c:/libraries/additional.jar") or an path (e.g. "C:\libraries.jar") to a jar file which should be added to the classpath of i-net Designer.True
if the jar file could be found and was added to the classpath, otherwise false
.False
will also be returned if no
UpdateableClassLoader from i-net Clear Reports is available. This is the case if i-net Designer is started as a Webstart application.public static void setDefaultPageLayout(Engine engine)
engine
- The page layout will be set for the given engine.Copyright © 1999-2020 by i-net software GmbH