public static class IltLink.Media extends IlEnum
Media values are graphically represented as an icon displayed at the midpoint of the link.
In order to modify or create new media representations, register the
media icon using the method IltSettings.SetValue
.
The first argument is a key name. Possible arguments are:
Link.Media.name.Icon
Link.Media.CNET.Icon
Link.Media.Fiber.Icon
When a new media value is created, a ToolTip is automatically retrieved from the JViews TGO resource bundle. To customize this ToolTip, add an entry to this resource bundle using the following template:
ilog.tgo.Link_Media_<YOUR MEDIA NAME>_ToolTip=<ToolTip value>
For example, to create a new Media
object, Unknown,
perform the following steps:
IltLink.Media media = new IltLink.Media("Unknown"); IltSettings.SetValue("Link.Media.Unknown.Icon", image);
ilog.tgo.Link_Media_Unknown_ToolTip=Unknown Media
Modifier and Type | Field and Description |
---|---|
static IltLink.Media |
CNET |
static IltLink.Media |
Electrical |
static IltLink.Media |
Fiber |
static IlEnumInfo |
metainfo
Contains metainformation about this
IlEnum class. |
Constructor and Description |
---|
Media()
Default constructor.
|
Media(String name)
Creates a new media.
|
Modifier and Type | Method and Description |
---|---|
void |
setName(String name)
Set the name of this object.
|
public static IlEnumInfo metainfo
IlEnum
class.public static IltLink.Media CNET
public static IltLink.Media Fiber
public static IltLink.Media Electrical
public Media(String name)
name
- The media name. This is used for serialization purposes.public Media()
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.