ilog.tgo.resource.renderer
Class IltAbstractWindowRenderer

java.lang.Object
  extended by ilog.tgo.resource.renderer.IltSettingsRenderer
      extended by ilog.tgo.resource.renderer.IltAbstractWindowRenderer
All Implemented Interfaces:
ilog.tgo.resource.css.internal.IltSettingsCSSEntity
Direct Known Subclasses:
IltInfoWindowRenderer, IltSystemWindowRenderer

public abstract class IltAbstractWindowRenderer
extends IltSettingsRenderer

IltAbstractWindowRenderer illustrates how you can configure the information window using cascading style sheets.

This class shows all the properties that can be customized using cascading style sheets.

The CSS configuration can be applied to the global settings (IltSettings), using IltSettings.setStyleSheets(String[]).

To customize the global settings programmatically, use IltSettings.SetValue(Object, Object).

The following example shows how this class can be configured in a CSS file:

 Settings {
    informationWindow: true;
    systemWindow: true;
 }
 InformationWindow {
    icon: '@|image("icon1.png")';
 }
 SystemWindow {
    icon: '@|image("icon1.png")';
 }
 

Since:
JViews 7.5

Constructor Summary
protected IltAbstractWindowRenderer()
          The default constructor.
 
Method Summary
 String getCSSClass()
          Returns the business class used in the selector.
 void reset()
          Resets the configuration of the alarms and the traps.
 void reset(Object b)
          Resets the configuration of the given bean.
 void setAcknowledgedIcon(Image acknowledgedIcon)
          Sets the acknowledged icon to be displayed, primarily in the information or system window.
 void setIcon(Image icon)
          Sets the icon to be displayed, primarily in the information or system window.
 
Methods inherited from class ilog.tgo.resource.renderer.IltSettingsRenderer
attach, detach, getChildrenAsArray, isEnabled, setEnabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ilog.tgo.resource.css.internal.IltSettingsCSSEntity
getCSSType
 

Constructor Detail

IltAbstractWindowRenderer

protected IltAbstractWindowRenderer()
The default constructor.

Method Detail

reset

public void reset()
Resets the configuration of the alarms and the traps.

Specified by:
reset in class IltSettingsRenderer

reset

public void reset(Object b)
Resets the configuration of the given bean.

This method prepares the bean to be configured with the CSS information.

Overrides:
reset in class IltSettingsRenderer
Parameters:
b - Bean object
Internal method or field: do not use!

getCSSClass

public String getCSSClass()
Returns the business class used in the selector.

Returns:
As this configuration does not use a business class parameter, null is returned.

setIcon

public void setIcon(Image icon)
Sets the icon to be displayed, primarily in the information or system window.

Parameters:
icon - The icon to be set.

CSS settings:

 Settings {
    informationWindow: true;
    systemWindow: true;
 }
 InformationWindow {
    icon: '@|image("icon1.png")';
 }
 SystemWindow {
    icon: '@|image("icon1.png")';
 }
 

setAcknowledgedIcon

public void setAcknowledgedIcon(Image acknowledgedIcon)
Sets the acknowledged icon to be displayed, primarily in the information or system window.

Parameters:
acknowledgedIcon - The icon to be set.

CSS settings:

 Settings {
    informationWindow: true;
    systemWindow: true;
 }
 InformationWindow {
    acknowledgedIcon: '@|image("icon2.png")';
 }
 SystemWindow {
    acknowledgedIcon: '@|image("icon2.png")';
 }
 


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