|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.tgo.resource.renderer.IltSettingsRenderer
ilog.tgo.resource.renderer.IltSONETRenderer
public class IltSONETRenderer
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 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 |
|---|
public IltSONETRenderer()
| Method Detail |
|---|
public void reset()
reset in class IltSettingsRendererpublic String getCSSClass()
A valid CSS selector is:
SONET {
protections[0]: @+prot0;
}
null is returned.public String getCSSType()
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";
}
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||