ilog.tgo.resource.renderer
Class IltSubnetworkRenderer

java.lang.Object
  extended by ilog.tgo.resource.renderer.IltSettingsRenderer
      extended by ilog.tgo.resource.renderer.IltSubnetworkRenderer
All Implemented Interfaces:
ilog.tgo.resource.css.internal.IltSettingsCSSEntity

public class IltSubnetworkRenderer
extends IltSettingsRenderer

This class illustrates how you can configure the Subnetwork configuration 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 (@link ilog.tgo.resource.IltSettings), using IltSettings.setStyleSheets(String[]).

This class can be configured like this in a CSS file:

 Settings {
   subnetwork: true;
 }
 Subnetwork {
   collapseIcon: '@|image("icon1.png")';
   expandIcon: '@|image("icon2.png")';
   emptyIcon: '@|image("icon3.png")';
 }
 

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

 IltSettings.SetValue("Subnetwork.Collapse.Icon", icon);
 IltSettings.SetValue("Subnetwork.Expand.Icon", icon);
 IltSettings.SetValue("Subnetwork.Empty.Icon", icon);
 

Since:
JViews 7.5

Constructor Summary
IltSubnetworkRenderer()
          Default constructor.
 
Method Summary
 String getCSSClass()
          Returns the business class used in the selector.
 String getCSSType()
          Returns the type used in CSS selectors.
 void reset()
          Resets the configuration of the subnetwork icons.
 void reset(Object b)
          Resets the configuration present in the bean.
 void setCollapseIcon(Image collapseIcon)
          Sets collapse icon for subnetworks.
 void setEmptyIcon(Image emptyIcon)
          Sets empty icon for subnetworks.
 void setExpandIcon(Image expandIcon)
          Sets expand icon for subnetworks.
 
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
 

Constructor Detail

IltSubnetworkRenderer

public IltSubnetworkRenderer()
Default constructor.

Since:
JViews 7.5
Method Detail

reset

public void reset()
Resets the configuration of the subnetwork icons.

Specified by:
reset in class IltSettingsRenderer

reset

public void reset(Object b)
Resets the configuration present in the bean.

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

getCSSClass

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

Returns:
null as this configuration does not use a business class parameter.

getCSSType

public String getCSSType()
Returns the type used in CSS selectors.

Returns:
Subnetwork

setCollapseIcon

public void setCollapseIcon(Image collapseIcon)
Sets collapse icon for subnetworks.

Parameters:
collapseIcon - icon to be set

CSS settings:
 Settings {
    subnetwork: true;
 }
 Subnetwork {
    collapseIcon: '@|image("icon1.png")';
 }
 

setEmptyIcon

public void setEmptyIcon(Image emptyIcon)
Sets empty icon for subnetworks.

Parameters:
emptyIcon - icon to be set

CSS settings:
 Settings {
    subnetwork: true;
 }
 Subnetwork {
    emptyIcon: '@|image("icon2.png")';
 }
 

setExpandIcon

public void setExpandIcon(Image expandIcon)
Sets expand icon for subnetworks.

Parameters:
expandIcon - icon to be set

CSS settings:
 Settings {
    subnetwork: true;
 }
 Subnetwork {
    expandIcon: '@|image("icon3.png")';
 }
 


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