public class IltLinkRenderer extends IltSettingsRenderer
This class shows all the properties that can be customized using cascading style sheets.
The CSS configuration can be applied to the Global Settings
(@link ilog.tgo.resource.IltSettings), using
IltSettings.setStyleSheets(String[])
.
This class can be configured like this in a CSS file:
Settings { link: true; } setting."ilog.tgo.model.IltLink"{ media[0]: @+linkMedia0; technology[0]: @+linkTechnology0; } Subobject#linkMedia0 { class: 'ilog.tgo.model.IltLink$Media'; name: "Satellite"; } setting."ilog.tgo.model.IltLink.Media"[name="Satellite"] { icon: '@|image("icon-sat.png")'; } Subobject#linkTechnology0 { class: 'ilog.tgo.model.IltLink$Technology'; name: "PacketSwitching"; } setting."ilog.tgo.model.IltLink.Technology"[name="PacketSwitching"] { icon: '@|image("icon-ps.png")'; color: white; }
To customize the global settings programmatically,
use IltSettings.SetValue(Object, Object)
.
The following extract illustrates how this configuration can be
achieved:
IltLink.Media newMedia = new IltLink.Media("Satellite"); IltSettings.SetValue("Link.Media.Satellite.Icon", icon1); IltLink.Technology newTechnology = new IltLink.Technology("PacketSwitching"); IltSettings.SetValue("Link.Technology.PacketSwitching.Icon", icon2); IltSettings.SetValue("Link.Technology.PacketSwitching.Color", Color.white);
Constructor and Description |
---|
IltLinkRenderer()
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 alarms and traps
|
void |
setMedia(IltLink.Media[] media)
Adds Link media to the system.
|
void |
setTechnology(IltLink.Technology[] technology)
Adds Link technology to the system.
|
attach, detach, getChildrenAsArray, isEnabled, reset, setEnabled
public void reset()
reset
in class IltSettingsRenderer
public String getCSSClass()
ilog.tgo.model.IltLink
public String getCSSType()
setting
public void setMedia(IltLink.Media[] media)
media
- Link media objects to be added to the system
setting."ilog.tgo.model.IltLink"{ media[0]: @+linkMedia0; } Subobject#linkMedia0 { class: 'ilog.tgo.model.IltLink$Media'; name: "Electrical-UsrDf"; }
public void setTechnology(IltLink.Technology[] technology)
technology
- Link technology objects to be added to the system
setting."ilog.tgo.model.IltLink"{ technology[0]: @+linkTechnology0; } Subobject#linkTechnology0 { class: 'ilog.tgo.model.IltLink$Technology'; name: "PacketSwitching"; }
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.