public static class IltObject.TinyType extends IlEnum
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 );
Modifier and Type | Field and Description |
---|---|
static IlEnumInfo |
metainfo
Contains metainformation about this
IlEnum class. |
static IltObject.TinyType |
Standard
This type stands for a standard tiny representation.
|
Constructor and Description |
---|
TinyType()
Default constructor.
|
TinyType(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 IltObject.TinyType Standard
public TinyType(String name)
name
- A unique name, used for serialization purposes.public TinyType()
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.