IltLink.Media satellite = new IltLink.Media("satellite"); IlpContext context = IltSystem.GetDefaultContext(); IlpImageRepository imageRep = context.getImageRepository(); Image satelliteImage = imageRep.getImage("sat.png"); IltSettings.SetValue("Link.Media.satellite.Icon", satelliteImage);
setting."ilog.tgo.model.IltLink"{ media[0]: @+linkMedia0; } Subobject#linkMedia0 { class: 'ilog.tgo.model.IltLink.Media'; name: "satellite"; }
icon
.
setting."ilog.tgo.model.IltLink.Media"[name="satellite"] { icon: '@|image("sat.png")'; }
Property
Name |
Type |
Set |
Default
Value |
Description
|
---|---|---|---|---|
mediaVisible
|
boolean
|
No |
true
|
Defines
whether the media icon is visible or not. |
mediaIcon
|
Image
|
Yes |
The image defined for each media value in
IltSettings
|
Defines
the image to be used to represent the media in a given link.
|
mediaVisible
as follows:
object."ilog.tgo.model.IltLink" { mediaVisible: false; }
ilog.tgo.Link_Media_<MEDIA
NAME>_ToolTip
: link media tooltips
"satellite"
, you should declare the entry in the resource bundle file as
follows:
ilog.tgo.Link_Media_satellite_ToolTip=Satellite