ilog.tgo.resource.renderer
Class IltCardCarrierRenderer

java.lang.Object
  extended by ilog.tgo.resource.renderer.IltSettingsRenderer
      extended by ilog.tgo.resource.renderer.IltCardCarrierRenderer
All Implemented Interfaces:
ilog.tgo.resource.css.internal.IltSettingsCSSEntity

public class IltCardCarrierRenderer
extends IltSettingsRenderer

IltCardCarrierRenderer illustrates how you can configure card carrier attributes using cascading style sheets.

This class shows all the properties that can be customized using cascading style sheets.

The CSS configuration can be applied to the global settings (IltSettings), using IltSettings.setStyleSheets(String[]).

The following example shows how this class can be configured in a CSS file:

 Settings {
   cardCarrier: true;
 }
 setting."ilog.tgo.model.IltCardCarrier"{
   types[0]: @+cardCarrierType0;
 }
 Subobject#cardCarrierType0 {
   class: 'ilog.tgo.model.IltCardCarrier$Type'; 
   name: "YOUR_NEW_TYPE_NAME";
 }
 setting."ilog.tgo.model.IltCardCarrier.Type[name=YOUR_NEW_TYPE_NAME] {
   label: "My Type";
   renderer: @#rendererFactory;
   tinyRenderer: @#tinyRendererFactory;
 }
 

To customize the global settings programmatically, use IltSettings.SetValue(Object, Object). The following extract shows how this configuration can be achieved:

 IltSettings.SetValue("CardCarrier.Type.YOUR_NEW_TYPE_NAME.Label", "My Type");
 IltSettings.SetValue("CardCarrier.Type.YOUR_NEW_TYPE_NAME.Renderer", rendererFactory);
 IltSettings.SetValue("CardCarrier.TinyType.YOUR_NEW_TYPE_NAME.Renderer", tinyRendererFactory);
 

Since:
JViews 7.5

Constructor Summary
IltCardCarrierRenderer()
          The default constructor.
 
Method Summary
 String getCSSClass()
          Returns the business class used in the selector.
 String getCSSType()
          Returns the type used in CSS selectors.
 void reset()
          Resets the configuration of the alarms and traps.
 void setTypes(IltCardCarrier.Type[] types)
          Adds card carrier types to the system.
 
Methods inherited from class ilog.tgo.resource.renderer.IltSettingsRenderer
attach, detach, getChildrenAsArray, isEnabled, reset, setEnabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IltCardCarrierRenderer

public IltCardCarrierRenderer()
The default constructor.

Method Detail

reset

public void reset()
Resets the configuration of the alarms and traps.

Specified by:
reset in class IltSettingsRenderer

getCSSClass

public String getCSSClass()
Returns the business class used in the selector.

Returns:
An ilog.tgo.model.IltCard.

getCSSType

public String getCSSType()
Returns the type used in CSS selectors.

Returns:
The setting.

setTypes

public void setTypes(IltCardCarrier.Type[] types)
Adds card carrier types to the system.

Parameters:
types - The card carrier type objects to be added to the system.

CSS settings:

 setting."ilog.tgo.model.IltCardCarrier"{
    types[0]: @+cardCarrierType0;
 }
 Subobject#cardCarrierType0 {
    class: 'ilog.tgo.model.IltCardCarrier$Type'; 
    name: "Standard-UsrDf";
 }
 


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