| Styling > Customizing Links > Customizing Link Media |
Customizing Link Media |
INDEX
PREVIOUS
NEXT
|
This section shows how to create a new link medium. This operation is similar to adding a new function or family for network elements and involves two steps.
IltLink.Media enumeration.
You can also create new link media by using global CSS settings (see Using Global Settings in Chapter 2, Using Cascading Style Sheets for more information):
setting."ilog.tgo.model.IltLink"{
media[0]: @+linkMedia0;
}
Subobject#linkMedia0 {
class: 'ilog.tgo.model.IltLink.Media';
name: "satellite";
}
You can obtain the same customization as with the API by using global CSS settings. To do so, you need to specify the full path to the object to be customized, as well as the value of its name attribute in order to match the right object in the system. The CSS property to customize here is icon.
setting."ilog.tgo.model.IltLink.Media"[name="satellite"] {
icon: '@|image("sat.png")';
}
The following properties allow you to customize the representation of link media:
You can show or hide link media using the property mediaVisible as follows:
object."ilog.tgo.model.IltLink" {
mediaVisible: false;
}
Link media are associated with a default tooltip which is retrieved from the JViews TGO resource bundle (see About Internationalization in the Context and Deployment Descriptor documentation).
The resource that applies to link media is:
For the predefined link media, you can edit this value directly in the JViews TGO resource bundle file.
For newly created media values, the tooltip information will also be retrieved from this resource bundle. As you declare new media, register the corresponding entry into the resource bundle file so that tooltips can be automatically displayed.
Considering that you have created the link media "satellite", you should declare the entry in the resource bundle file as follows:
| Copyright © 1987-2007 ILOG S.A. All rights reserved. Documentation homepage. All rights reserved. Legal terms. | PREVIOUS NEXT |