|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.cpl.IlpSystem
ilog.tgo.IltSystem
public class IltSystem
This class is used to initialize an ILOG JTGO application or applet.
It inherits almost all its functionality from IlpSystem.
The following differences exist:
IltDefaultContext
instead of IlpDefaultContext, if jviews-tgo.jar
or jviews-tgo-all.jar are found on the classpath.
| Field Summary | |
|---|---|
static boolean |
StyleCompatibilityMode
Indicates that compatibility with previous style customization shall be used. |
| Constructor Summary | |
|---|---|
protected |
IltSystem()
Default constructor |
| Method Summary | |
|---|---|
static void |
BeanInit(Object theCreatedBean,
boolean verbose)
This method should be called in the constructor of any JavaBean that uses ILOG JTGO. |
static void |
Init()
Initializes a JTGO process and creates a default context using a deployment descriptor. |
static void |
Init(Applet applet)
Initializes a CPL applet and creates a default context using a default deployment descriptor. |
static void |
Init(Applet applet,
String deploymentDescriptorName)
Initializes a CPL applet and creates a default context using a deployment descriptor specified by a relative file name. |
static void |
Init(IlpContext defaultContext)
Initializes the system based on a service context. |
static void |
Init(String deploymentDescriptorName)
Initializes an ILOG JTGO process and creates a default context using a deployment descriptor specified by a file name. |
static void |
Init(URL documentBase,
String deploymentDescriptorName)
Initializes the system using a deployment descriptor specified by a relative URL, relative to a given base URL. |
static void |
Init(URL deploymentDescriptorURL,
URL defaultDocumentBase)
Initializes the system using a deployment descriptor specified by an URL. |
| Methods inherited from class ilog.cpl.IlpSystem |
|---|
CreateDefaultContext, DontSetLocale, GetBuildNumber, GetDefaultContext, GetDefaultFont, GetHome, GetHostName, GetMajorVersion, GetMinorVersion, GetPatchLevel, GetReleaseDate, GetSubMinorVersion, GetVersion, GetVersionString, IsApplet, IsDontSetLocale, IsInitialized, IsInitializing, SetDefaultContext, SetDefaultFont, Shutdown |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static boolean StyleCompatibilityMode
This flag is used for the following scenarios:
IlpObject.PositionFixed: instead
of using this style key, use CSS property fixed as a
per-object parameter in the configuration of the link or node graph
layout renderers
(See IlpGraphLayoutParameters.isFixed())
| Constructor Detail |
|---|
protected IltSystem()
| Method Detail |
|---|
public static final void BeanInit(Object theCreatedBean,
boolean verbose)
public static void Init()
The system looks for the deployment descriptor as follows:
ilog.cpl.deploymentDescriptorName property
cpldeploy.xml
The file is looked for:
$HOME/.cpl/ of the user's home directory on Unix,
To use a custom deployment descriptor you could also use one of the versions of this method that takes a deployment descriptor name as a parameter.
If no custom deployment descriptor is found, a default one of type IlpDefaultContext is created.
This method should not be used to initialize an applet.
Use the versions of Init that take an Applet
parameter or an absolute URL instead.
If this method is called more than once the initialization is performed only once.
public static void Init(String deploymentDescriptorName)
throws FileNotFoundException,
IOException,
IlpDeploymentParsingException
The deployment descriptor name provided may be an absolute path, or relative to the current directory for the application. Under Windows, the drive letter in an absolute path is considered as the type of the file; to avoid confusion, you must specify "file:" at the very beginning of the path.
This method should not be used to initialize an applet.
Use the versions of Init that take an Applet
parameter or an absolute URL instead.
deploymentDescriptorName - absolute or relative file name
FileNotFoundException
IOException
IlpDeploymentParsingException
public static void Init(URL documentBase,
String deploymentDescriptorName)
throws FileNotFoundException,
IOException,
IlpDeploymentParsingException
FileNotFoundException
IOException
IlpDeploymentParsingException
public static void Init(URL deploymentDescriptorURL,
URL defaultDocumentBase)
throws FileNotFoundException,
IOException,
IlpDeploymentParsingException
This method may be used to initialize either an application or an applet.
deploymentDescriptorURL - URL of deployment descriptordefaultDocumentBase - Default document base URL
FileNotFoundException
IOException
IlpDeploymentParsingExceptionpublic static void Init(Applet applet)
The document base of the applet is used as the document base for the default URL access service created.
The default deployment descriptor is obtained from the CPL jar. To use a custom deployment descriptor, use one of the versions of this method that takes a deployment descriptor name as a parameter.
public static void Init(Applet applet,
String deploymentDescriptorName)
throws FileNotFoundException,
IOException,
IlpDeploymentParsingException
The document base of the applet is used as the document base for the default URL access service.
FileNotFoundException
IOException
IlpDeploymentParsingExceptionpublic static void Init(IlpContext defaultContext)
The user should ensure that the context is properly configured for subsequent use.
defaultContext - The default service context used in
the application
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||