ilog.tgo.css.function
Class IltSeverityIconFunction

java.lang.Object
  extended by ilog.tgo.css.function.IltSeverityIconFunction
All Implemented Interfaces:
IlpCSSFunction, Serializable

public class IltSeverityIconFunction
extends Object
implements IlpCSSFunction

Returns the icon corresponding to a given severity.

By default, only the impact alarm severities have icons registered. However, you can either modify or register icons for all alarm severities by calling IltSettings.SetValue(Object,Object).

The function should be used as follows:

  icon : '@|severityIcon(@|highestNewSeverity())';
  icon : '@|severityIcon("Raw.Major")';
  icon : '@|severityIcon("Impact.MajorHigh")';
 

Since:
JTGO 4.5
See Also:
IltSettings, Serialized Form

Constructor Summary
IltSeverityIconFunction()
          The default constructor
 
Method Summary
 Object call(Object[] args, Class type, IlpContext appc, IlpGraphicView view, IlpRepresentationObject ro, IlpAttribute attribute)
          Called to execute the function.
 String getDelimiters()
          Returns the delimiters of the function parameters.
 String getName()
          Retrieves the name of the function.
 boolean returnDelimitersAsToken()
          If the delimiters are also returned as a token, true is returned.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IltSeverityIconFunction

public IltSeverityIconFunction()
The default constructor

Method Detail

getName

public String getName()
Retrieves the name of the function.

Specified by:
getName in interface IlpCSSFunction
Returns:
This method always returns "severityIcon".

getDelimiters

public String getDelimiters()
Returns the delimiters of the function parameters.

Specified by:
getDelimiters in interface IlpCSSFunction
Returns:
Returns ",".

returnDelimitersAsToken

public boolean returnDelimitersAsToken()
If the delimiters are also returned as a token, true is returned.

Specified by:
returnDelimitersAsToken in interface IlpCSSFunction
Returns:
If the delimiters are discarded, false is returned.

call

public Object call(Object[] args,
                   Class type,
                   IlpContext appc,
                   IlpGraphicView view,
                   IlpRepresentationObject ro,
                   IlpAttribute attribute)
Called to execute the function.

Specified by:
call in interface IlpCSSFunction
Parameters:
args - The function parameters.
type - The expected type to be returned. It can be null.
appc - The application context.
view - The graphic view.
ro - The current representation object.
attribute - The business attribute.
Returns:
The value computed by this function. It is advisable to return an object compatible with the expected type or a String.
See Also:
IlvCSSFunction


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