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);
Constructor and Description |
---|
IltSONETRenderer()
The default Constructor
|
Modifier and Type | Method and Description |
---|---|
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.
|
attach, detach, getChildrenAsArray, isEnabled, reset, setEnabled
public void reset()
reset
in class IltSettingsRenderer
public String getCSSClass()
Returns the business class used in the selector.
A valid CSS selector is:
SONET { protections[0]: @+prot0; }
null
is returned.public String getCSSType()
Returns the type used in CSS selectors.
A valid CSS selector is:
SONET { protections[0]: @+prot0; }
SAN
.public void setProtections(IltSONET.Protection[] states)
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 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.