public class IltPortRenderer 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[]).
This class can be configured like this in a CSS file:
Settings {
port: true;
}
setting."ilog.tgo.model.IltPort"{
types[0]: @+portType0;
}
Subobject#portType0 {
class: 'ilog.tgo.model.IltPort$Type';
name: "YOUR_NEW_TYPE_NAME";
}
setting."ilog.tgo.model.IltPort.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("Port.Type.YOUR_NEW_TYPE_NAME.Label", YOUR NEW TYPE LABEL);
IltSettings.SetValue("Port.Type.YOUR_NEW_TYPE_NAME.Renderer", factory);
| Constructor and Description |
|---|
IltPortRenderer()
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(IltPort.Type[] types)
Adds port types to the system.
|
attach, detach, getChildrenAsArray, isEnabled, reset, setEnabledpublic void reset()
reset in class IltSettingsRendererpublic String getCSSClass()
ilog.tgo.model.IltPortpublic String getCSSType()
settingpublic void setTypes(IltPort.Type[] types)
types - Port type objects to be added to the system
setting."ilog.tgo.model.IltPort"{
types[0]: @+portType0;
}
Subobject#portType0 {
class: 'ilog.tgo.model.IltPort$Type';
name: "DB_15f-UsrDf";
}
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.