ilog.tgo.model
Class IltObject.TinyType

java.lang.Object
  extended by ilog.util.IlEnum
      extended by ilog.tgo.model.IltObject.TinyType
Enclosing class:
IltObject

public static class IltObject.TinyType
extends IlEnum

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:

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 );
 

See Also:
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

metainfo

public static IlEnumInfo metainfo
Contains metainformation about this IlEnum class.

Internal method or field: do not use!

Standard

public static IltObject.TinyType Standard
This type stands for a standard tiny representation.

Constructor Detail

IltObject.TinyType

public IltObject.TinyType(String name)
Creates a new type.

Parameters:
name - A unique name, used for serialization purposes.

IltObject.TinyType

public IltObject.TinyType()
Default constructor. This constructor is used by CSS styling mechanism and is not meant to be called directly.

Internal method or field: do not use!
Method Detail

setName

public void setName(String name)
Sets the name of this object. This method is used by CSS styling mechanism and is not meant to be called directly.

Overrides:
setName in class IlEnum
Internal method or field: do not use!


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.   . All Rights Reserved.