ilog.tgo.resource.css
Interface IltStateCustomization


public interface IltStateCustomization

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

The following sample illustrates how a state can be configured using CSS. The cascading style sheets are loaded using the method IltSettings.setStyleSheets(String[]).
  
 setting."ilog.tgo.model.IltState"[name="Misc.SecState.DoorAjar"] {
   icon: '@|image("icon1.png")';
 }
 setting."ilog.tgo.model.IltState"[name="SONET.Protection.Locked"] {
   icon: '@|image("icon1.png")';
 }
 setting."ilog.tgo.model.IltState"[name="SNMP.State.Testing"] {
   icon: '@|image("icon2.png")';
 }
 
The same configuration can be achieved using the method IltSettings.SetValue(Object, Object), as illustrated below:
 IltSettings.SetValue("Misc.SecState.DoorAjar.Icon", icon);
 IltSettings.SetValue("SONET.Protection.Locked.Icon", icon);
 

Since:
JViews 7.5

Method Summary
 Image getIcon()
          Returns the icon that represents this state as a secondary state modifier.
 

Method Detail

getIcon

Image getIcon()
Returns the icon that represents this state as a secondary state modifier.

CSS settings:

 setting."ilog.tgo.model.IltState"[name="OSI.State.Administrative.Locked"] {
    icon: '@|image("icon1.png")';
 }
 setting."ilog.tgo.model.IltState"[name="OSI.State.Administrative.ShuttingDown"] {
    icon: '@|image("icon2.png")';
 }
 setting."ilog.tgo.model.IltState"[name="OSI.State.Usage.Busy"] {
 icon: '@|image("icon3.png")';
 }
 setting."ilog.tgo.model.IltState"[name="Misc.SecState.TestFailed"] {
    icon: '@|image("icon1.png")';
 }
 setting."ilog.tgo.model.IltState"[name="SNMP.State.Failed"] {
    icon:  '@|image("icon1.png")';
 }
 setting."ilog.tgo.model.IltState"[name="SNMP.State.Shutdown"] {
    icon:  '@|image("icon2.png")';
 }
 setting."ilog.tgo.model.IltState"[name="SNMP.State.Testing"] {
    icon:  '@|image("icon3.png")';
 }
 setting."ilog.tgo.model.IltState"[name="SNMP.IP.Forwarding"] {
    icon:  '@|image("icon1.png")';
 }
 setting."ilog.tgo.model.IltState"[name="SONET.Protection.Locked"] {
    icon: '@|image("icon1.png")';
 }
 

Returns:
The state icon


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