ilog.tgo.model
Class IltLink.Media

java.lang.Object
  extended by ilog.util.IlEnum
      extended by ilog.tgo.model.IltLink.Media
Enclosing class:
IltLink

public static class IltLink.Media
extends IlEnum

This enumeration lists the media of different network links.

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:

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:

  1. Declare the new media value:
     IltLink.Media media = new IltLink.Media("Unknown");
     IltSettings.SetValue("Link.Media.Unknown.Icon", image);
     
  2. In the resource properties file, add the following entry:
     ilog.tgo.Link_Media_Unknown_ToolTip=Unknown Media
     

See Also:
IltSettings.SetValue(java.lang.Object, java.lang.Object)

Field Summary
static IltLink.Media CNET
           
static IltLink.Media Electrical
           
static IltLink.Media Fiber
           
static IlEnumInfo metainfo
          Contains metainformation about this IlEnum class.
 
Constructor Summary
IltLink.Media()
          Default constructor.
IltLink.Media(String name)
          Creates a new media.
 
Method Summary
 void setName(String name)
          Set the name of this object.
 
Methods inherited from class ilog.util.IlEnum
getName, intern, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

metainfo

public static IlEnumInfo metainfo
Contains metainformation about this IlEnum class.

Internal method or field: do not use!

CNET

public static IltLink.Media CNET

Fiber

public static IltLink.Media Fiber

Electrical

public static IltLink.Media Electrical
Constructor Detail

IltLink.Media

public IltLink.Media(String name)
Creates a new media.

Parameters:
name - The media name. This is used for serialization purposes.

IltLink.Media

public IltLink.Media()
Default constructor. This constructor is used by CSS styling mechanism and is not meant to be called directly.

Internal method or field: do not use!
Method Detail

setName

public void setName(String name)
Set the name of this object. This method is used by CSS styling mechanism and is not meant to be called directly.

Overrides:
setName in class IlEnum
Internal method or field: do not use!


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.   . All Rights Reserved.