|
i-net Crystal-Clear | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.inet.designer.EmbeddedUtils
public class 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.
| Field Summary | |
|---|---|
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. |
| Method Summary | |
|---|---|
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 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. |
| Field Detail |
|---|
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 Values| Method Detail |
|---|
public static Engine getCurrentEngine()
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 menu
MENU_FILE,
MENU_INSERT,
MENU_EDIT,
MENU_HELP,
MENU_DATABASE,
MENU_REPORT,
MENU_VIEW,
MENU_WINDOWpublic 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 Crystal-Clear 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.
|
i-net Crystal-Clear | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||