public static class IltOffPageConnector.Type extends IlEnum
Each off-page connector type must be mapped to a graphic representation,
which defines how the object base is displayed. The graphic representation
is defined by an IltOPCBaseRenderer
. In order to map a new
graphic representation to a given type, you should register the type and
the corresponding IltOPCBaseRenderer
factory using
IltSettings.SetValue
.
The following example illustrates how this mapping can be achieved:
IltBaseRendererFactory factory = new IltBaseRendererFactory() { public IltBaseRenderer createValue (IltObject o) { return IltOPCBaseRenderer.Standard(); } }; IltSettings.SetValue("OffPageConnector.Type.Standard.Renderer", factory );
Once you create a new type, register the following resources in the JTGO resource bundle in order to have this type attribute properly represented in the Table component:
ilog.tgo.OPC_Type_<YOUR TYPE NAME>=<Label value> ilog.tgo.OPC_Type_<YOUR_TYPE_NAME>_ToolTip=<ToolTip value>
IltOPCBaseRenderer
,
IltOPCImageBaseRendererFactory
,
IltBaseRendererFactory
,
IltSettings.SetValue(java.lang.Object, java.lang.Object)
Modifier and Type | Field and Description |
---|---|
static IltOffPageConnector.Type |
Managed
This type stands for an Off-Page connector that represents a managed
entity in the system.
|
static IlEnumInfo |
metainfo
Contains metainformation about this
IlEnum class. |
static IltOffPageConnector.Type |
MultipleManaged
This type stands for an Off-Page connector that represents multiple
entities that are managed by the system.
|
static IltOffPageConnector.Type |
MultipleUnmanaged
This type stands for an Off-Page connector that represents multiple
entities that are not managed by the system.
|
static IltOffPageConnector.Type |
SingleManaged
This type stands for an Off-Page connector that represents a single
entity that is managed by the system.
|
static IltOffPageConnector.Type |
SingleUnmanaged
This type stands for an Off-Page connector that represents a single
entity that is not managed by the system.
|
static IltOffPageConnector.Type |
Standard
This type stands for a standard Off-Page Connector representation.
|
static IltOffPageConnector.Type |
Unmanaged
This type stands for an Off-Page connector that represents an
entity that is not being managed by the system.
|
Constructor and Description |
---|
Type()
Default constructor.
|
Type(String name)
Creates a new type.
|
Modifier and Type | Method and Description |
---|---|
void |
setName(String name)
Sets the name of this object.
|
public static IlEnumInfo metainfo
IlEnum
class.public static IltOffPageConnector.Type Standard
public static IltOffPageConnector.Type Managed
public static IltOffPageConnector.Type SingleManaged
public static IltOffPageConnector.Type MultipleManaged
public static IltOffPageConnector.Type Unmanaged
public static IltOffPageConnector.Type SingleUnmanaged
public static IltOffPageConnector.Type MultipleUnmanaged
public Type(String name)
name
- A unique name, used for serialization purposes.public Type()
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.