public class IltObjectRenderer extends IltSettingsRenderer
IltObjectRenderer
shows how you can configure
Object
attributes 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[])
.
The following example shows how this class can be configured in a CSS file:
Settings { object: true; } setting."ilog.tgo.model.IltObject"{ logicalTypes[0]: @+nodeLogicalType0; tinyTypes[0]: @+tinyType0; } Subobject#nodeLogicalType0 { class: 'ilog.tgo.model.IltObject$LogicalType'; name: "Standard-UsrDf"; } Subobject#tinyType0 { class: 'ilog.tgo.model.IltObject$TinyType'; name: "Standard-UsrDf"; } setting."ilog.tgo.model.IltObject.LogicalType"[name=Standard-UsrDf] { renderer: @+logicalRendererFactory1; } Subobject#logicalRendererFactory1 { class: 'MyLogicalRendererFactory1'; } setting."ilog.tgo.model.IltObject.TinyType"[name=Standard-UsrDf] { tinyRenderer: @+tinyRendererFactory; } setting."ilog.tgo.model.IltLink.TinyType"[name=Standard-UsrDf] { tinyRenderer: @+tinyLinkRendererFactory; } setting."ilog.tgo.model.IltLinkSet.TinyType"[name=Standard-UsrDf] { tinyRenderer: @+tinyLinkRendererFactory; } setting."ilog.tgo.model.IltLinkBundle.TinyType"[name=Standard-UsrDf] { tinyRenderer: @+tinyLinkRendererFactory; } setting."ilog.tgo.model.IltBTS.TinyType"[name=Standard-UsrDf] { tinyRenderer: @+tinyRendererFactory; } setting."ilog.tgo.model.IltBTSAntenna.TinyType"[name=Standard-UsrDf] { tinyRenderer: @+tinyRendererFactory; }
To customize the global settings with Java code,
use IltSettings.SetValue(Object, Object)
.
IltSettings.SetValue("Object.LogicalType.Standard-UsrDf.Renderer", factory); IltSettings.SetValue("Object.TinyType.Standard-UsrDf.Renderer", factory); IltSettings.SetValue("BTS.TinyType.Standard-UsrDf.Renderer", factory); IltSettings.SetValue("BTSAntenna.TinyType.Standard-UsrDf.Renderer", factory); IltSettings.SetValue("Link.TinyType.Standard-UsrDf.Renderer", linkFactory); IltSettings.SetValue("LinkBundle.TinyType.Standard-UsrDf.Renderer", linkFactory); IltSettings.SetValue("LinkSet.TinyType.Standard-UsrDf.Renderer", linkFactory);
Constructor and Description |
---|
IltObjectRenderer()
The 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 types.
|
void |
setLogicalTypes(IltObject.LogicalType[] types)
Adds telecom node logical types to the system.
|
void |
setTinyTypes(IltObject.TinyType[] types)
Adds telecom node tiny types to the system.
|
attach, detach, getChildrenAsArray, isEnabled, reset, setEnabled
public void reset()
reset
in class IltSettingsRenderer
public String getCSSClass()
ilog.tgo.model.IltObject
representation.public String getCSSType()
public void setLogicalTypes(IltObject.LogicalType[] types)
Adds telecom node logical types to the system.
CSS settings:
setting."ilog.tgo.model.IltObject"{ logicalTypes[0]: @+nodeLogicalType0; } Subobject#nodeLogicalType0 { class: 'ilog.tgo.model.IltObject$LogicalType'; name: "Standard-UsrDf"; }
types
- The telecom node logical type objects to be added to the
system.public void setTinyTypes(IltObject.TinyType[] types)
Adds telecom node tiny types to the system.
CSS settings:
setting."ilog.tgo.model.IltObject"{ tinyTypes[0]: @+tinyType0; } Subobject#tinyType0 { class: 'ilog.tgo.model.IltObject$TinyType'; name: "Standard-UsrDf"; }
types
- The telecom node tiny type objects to be added to the system.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.