|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.util.IlEnum
ilog.tgo.model.IltObject.TinyType
public static class IltObject.TinyType
The class that is used to manage the tiny types for predefined telecom business objects.
Each telecom object can be displayed in a tiny representation,
which is used in the table and tree components. The tiny
representation is customized using the property tiny in a
cascading style sheet (CSS) that should be loaded in the graphic
component. The following example illustrates a CSS extract that sets
all predefined telecom objects to be displayed in their tiny
representation.
object."ilog.tgo.model.IltObject" {
tiny: true;
}
The following tiny representations are available:
IltNetworkElement, IltPort and
IltLed: the tiny representation is a reduced form
of the symbolic representation defined for each type.
IltCard, IltCardCarrier and
IltShelf: the tiny representation is defined by
a IltTinyBaseRenderer.
IltLink, IltLinkSet and
IltLinkBundle: the tiny representation is defined by a
IltTinyLinkBaseRenderer
IltTinyBaseRenderer
For all objects that are represented using
IltTinyBaseRenderer or IltTinyLinkBaseRenderer,
you can define a new tiny representation in the following way:
IltBaseRendererFactory factory = new IltBaseRendererFactory() {
public IltBaseRenderer createValue (IltObject o) {
return new IltTinyBaseRenderer();
}
};
IltSettings.SetValue("Shelf.TinyType.Standard.Renderer", factory);
Note: When the object already provides type
information, such as IltCard, the renderer customization is
achieved in the following way:
IltSettings.SetValue("Card.TinyType.Standard.Renderer", factory);
When the object does not have type information, you can create different
tiny types by creating new instances of this class. In order to represent
your objects according to your new tiny type, you should set the CSS
property tiny and indicate that the object will have the
attribute tiny set to your new tiny type value
(@see #setTinyType).
The following example shows how you can create and customize new tiny types for telecom objects:
IltObject.TinyType newType =
new IltObject.TinyType(YOUR_NEW_TINY_TYPE_NAME);
IltBaseRendererFactory factory = new IltBaseRendererFactory() {
public IltBaseRenderer createValue (IltObject o ) {
return new IltTinyBaseRenderer();
}
};
IltSettings.SetValue("Object.TinyType.YOUR_NEW_TINYTYPE_NAME.Renderer" , factory );
IltTinyBaseRenderer,
IltTinyLinkBaseRenderer,
IltTinyImageBaseRendererFactory,
IltTinySVGBaseRendererFactory,
IltBaseRendererFactory,
IltSettings| Field Summary | |
|---|---|
static IlEnumInfo |
metainfo
Contains metainformation about this IlEnum class. |
static IltObject.TinyType |
Standard
This type stands for a standard tiny representation. |
| Constructor Summary | |
|---|---|
IltObject.TinyType()
Default constructor. |
|
IltObject.TinyType(String name)
Creates a new type. |
|
| Method Summary | |
|---|---|
void |
setName(String name)
Sets the name of this object. |
| Methods inherited from class ilog.util.IlEnum |
|---|
getName, intern, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static IlEnumInfo metainfo
IlEnum class.
public static IltObject.TinyType Standard
| Constructor Detail |
|---|
public IltObject.TinyType(String name)
name - A unique name, used for serialization purposes.public IltObject.TinyType()
| Method Detail |
|---|
public void setName(String name)
setName in class IlEnum
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||