ilog.tgo.resource.renderer
Class IltSONETRenderer

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

public class IltSONETRenderer
extends IltSettingsRenderer

IltSONETRenderer illustrates how you can configure SONET protection states 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[]).

This class can be configured like this in a CSS file:

 Settings {
   sonet: true;
 }
 SONET {
  protections[0]: @+prot0;
 }
 Subobject#prot0 {
   class: 'ilog.tgo.model.IltSONET$Protection';
   name: "InTest";
 }
 state."ilog.tgo.model.IltState"[name="SONET.Protection.InTest"] {
   icon: '@|image("icon1.png")';
 }
 

To customize the global settings using Java, use IltSettings.SetValue(Object, Object).

 IltSettings.SetValue("SONET.Protection.InTest.Icon", icon);
 

Since:
JViews 7.5

Constructor Summary
IltSONETRenderer()
          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 SONET protections.
 void setProtections(IltSONET.Protection[] states)
          Adds SONET protection states 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

IltSONETRenderer

public IltSONETRenderer()
The default Constructor

Method Detail

reset

public void reset()
Resets the configuration of the SONET protections.

Specified by:
reset in class IltSettingsRenderer

getCSSClass

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

A valid CSS selector is:

 SONET {
   protections[0]: @+prot0;
 }
 

Returns:
As this configuration does not use a business class parameter, null is returned.

getCSSType

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

A valid CSS selector is:

 SONET {
  protections[0]: @+prot0;
 }
 

Returns:
The SAN.

setProtections

public void setProtections(IltSONET.Protection[] states)
Adds SONET protection states to the system.

Parameters:
states - The SONET Protection state objects to be added to the system

CSS settings:

 Settings {
    san: true;
 }
 SONET {
    protections[0]: @+prot0;
 }
 Subobject#prot0 {
    class: 'ilog.tgo.model.IltSONET$Protection';
    name: "SONET.Protection.Locked-UsrDf";
 }
 


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