ilog.tgo.resource.renderer
Class IltMiscRenderer

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

public class IltMiscRenderer
extends IltSettingsRenderer

This class illustrates how you can configure Miscellaneous Secondary States 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 {
   misc: true;
 }
 Misc {
   states[0]: @+misc0;
 }
 Subobject#misc0 {
   class: 'ilog.tgo.model.IltMisc$SecState';
   name: "Misc.SecState.TestFailed-UsrDf";
 }
 
 setting."ilog.tgo.model.IltState"[name="Misc.SecState.TestFailed-UsrDf"] {
   icon: '@|image("icon1.png")';
 }
 

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

 IltSettings.SetValue("Misc.SecState.TestFailed-UsrDf.Icon" icon);
 

Since:
JViews 7.5

Constructor Summary
IltMiscRenderer()
          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.
 void setStates(IltMisc.SecState[] states)
          Adds Misc secondary states to the state system.
 
Methods inherited from class ilog.tgo.resource.renderer.IltSettingsRenderer
attach, detach, getChildrenAsArray, isEnabled, reset, setEnabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IltMiscRenderer

public IltMiscRenderer()
Default constructor.

Method Detail

reset

public void reset()
Resets the configuration.

Specified by:
reset in class IltSettingsRenderer

getCSSClass

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

A valid CSS selector is:

 Misc {
   states[0]: @+misc0;
 }
 

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

getCSSType

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

A valid CSS selector is:

 Misc {
   states[0]: @+misc0;
 }
 

Returns:
Misc

setStates

public void setStates(IltMisc.SecState[] states)
Adds Misc secondary states to the state system.

Parameters:
states - Misc secondary state objects to be added to the state system

CSS settings:
 Settings {
    misc: true;
 }
 Misc {
    states[0]: @+misc0;
 }
 Subobject#misc0 {
    class: 'ilog.tgo.model.IltMisc$SecState';
    name: "Misc.SecState.TestFailed-UsrDf";
 }
 


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