public class IltSubnetworkRenderer 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 { 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);
Constructor and Description |
---|
IltSubnetworkRenderer()
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 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.
|
attach, detach, getChildrenAsArray, isEnabled, setEnabled
public IltSubnetworkRenderer()
public void reset()
reset
in class IltSettingsRenderer
public void reset(Object b)
reset
in class IltSettingsRenderer
b
- Configuration beanpublic String getCSSClass()
null
as this configuration does
not use a business class parameter.public String getCSSType()
Subnetwork
public void setCollapseIcon(Image collapseIcon)
collapseIcon
- icon to be set
Settings { subnetwork: true; } Subnetwork { collapseIcon: '@|image("icon1.png")'; }
public void setEmptyIcon(Image emptyIcon)
emptyIcon
- icon to be set
Settings { subnetwork: true; } Subnetwork { emptyIcon: '@|image("icon2.png")'; }
public void setExpandIcon(Image expandIcon)
expandIcon
- icon to be set
Settings { subnetwork: true; } Subnetwork { expandIcon: '@|image("icon3.png")'; }
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.