ilog.tgo.resource.css
Interface IltSecondaryStateCustomization


public interface IltSecondaryStateCustomization

This interface specifies the properties that can be customized for states using CSS. The following states can be configured:

The following extract illustrates how a state can be configured using CSS. The cascading style sheets are loaded using the method IltSettings.setStyleSheets(String[]). Sets CT icon for applicable Bellcore and OSI secondary state objects. The parameter ctIcon is the CT icon to be set

CSS settings:
 setting."ilog.tgo.model.IltState"[name="Bellcore.SecState.Diagnostic"] {
    ctIcon: '@|image("icon1.png")';
    ntIcon: '@|image("icon2.png")';
    oosIcon:  '@|image("icon3.png")';
 }
 setting."ilog.tgo.model.IltState"[name="OSI.Availability.InTest"] {
    ctIcon: '@|image("icon1.png")';
    ntIcon: '@|image("icon2.png")';
    oosIcon:  '@|image("icon3.png")';
 }
 
The same configuration can be achieved using the method IltSettings.SetValue(Object, Object), as illustrated below:
   IltSettings.SetValue("Bellcore.SecState.Blocked.OOS.Icon", icon1);
   IltSettings.SetValue("Bellcore.SecState.Blocked.NT.Icon", icon2);
   IltSettings.SetValue("Bellcore.SecState.Blocked.CT.Icon", icon3);
 

Since:
JViews 7.5

Method Summary
 Image getCtIcon()
          Returns the CT icon for applicable Bellcore and OSI secondary state objects.
 Image getNtIcon()
          Returns the NT icon for applicable Bellcore and OSI secondary state objects.
 Image getOosIcon()
          Returns the OOS icon for applicable Bellcore and OSI secondary state objects.
 

Method Detail

getCtIcon

Image getCtIcon()
Returns the CT icon for applicable Bellcore and OSI secondary state objects.

CSS settings:

 setting."ilog.tgo.model.IltState"[name="Bellcore.SecState.Diagnostic"] {
    ctIcon: '@|image("icon1.png")';
 }
 setting."ilog.tgo.model.IltState"[name="OSI.Availability.InTest"] {
    ctIcon: '@|image("icon1.png")';
 }
 


getNtIcon

Image getNtIcon()
Returns the NT icon for applicable Bellcore and OSI secondary state objects.

CSS settings:

 setting."ilog.tgo.model.IltState"[name="Bellcore.SecState.Diagnostic"] {
    ntIcon: '@|image("icon2.png")';
 }
 setting."ilog.tgo.model.IltState"[name="OSI.Availability.InTest"] {
    ntIcon: '@|image("icon2.png")';
 }
 


getOosIcon

Image getOosIcon()
Returns the OOS icon for applicable Bellcore and OSI secondary state objects.

CSS settings:

 setting."ilog.tgo.model.IltState"[name="Bellcore.SecState.Diagnostic"] {
    oosIcon:  '@|image("icon3.png")';
 }
 setting."ilog.tgo.model.IltState"[name="OSI.Availability.InTest"] {
    oosIcon:  '@|image("icon3.png")';
 }
 



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