public class IltLedRenderer extends IltSettingsRenderer
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[])
.
To customize the global settings programmatically,
use IltSettings.SetValue(Object, Object)
.
This class can be configured like this in a CSS file:
Settings { led: true; } setting."ilog.tgo.model.IltLed"{ types[0]: @+ledType0; } Subobject#ledType0 { class: 'ilog.tgo.model.IltLed$Type'; name: "YOUR_NEW_TYPE_NAME"; } setting."ilog.tgo.model.IltLed.Type"[name=YOUR_NEW_TYPE_NAME] { label: YOUR NEW TYPE LABEL; renderer: @#rendererFactory; }
To customize the global settings programmatically,
use IltSettings.SetValue(Object, Object)
.
IltSettings.SetValue("Led.Type.YOUR_NEW_TYPE_NAME.Label", label); IltSettings.SetValue("Led.Type.YOUR_NEW_TYPE_NAME.Renderer", factory);
Constructor and Description |
---|
IltLedRenderer()
Default Constructor
|
Modifier and Type | Method and Description |
---|---|
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 alarms and traps
|
void |
setTypes(IltLed.Type[] types)
Adds led types to the system.
|
attach, detach, getChildrenAsArray, isEnabled, reset, setEnabled
public void reset()
reset
in class IltSettingsRenderer
public String getCSSClass()
ilog.tgo.model.IltCard
public String getCSSType()
setting
public void setTypes(IltLed.Type[] types)
types
- Led type objects to be added to the system
setting."ilog.tgo.model.IltLed"{ types[0]: @+ledType0; } Subobject#ledType0 { class: 'ilog.tgo.model.IltLed$Type'; name: "Circular-UsrDf"; }
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.