|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.tgo.resource.renderer.IltSettingsRenderer
ilog.tgo.resource.renderer.IltSubnetworkRenderer
public class IltSubnetworkRenderer
This class illustrates how you can configure the Subnetwork configuration 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 {
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 Summary | |
|---|---|
IltSubnetworkRenderer()
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 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. |
| Methods inherited from class ilog.tgo.resource.renderer.IltSettingsRenderer |
|---|
attach, detach, getChildrenAsArray, isEnabled, setEnabled |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IltSubnetworkRenderer()
| Method Detail |
|---|
public void reset()
reset in class IltSettingsRendererpublic void reset(Object b)
reset in class IltSettingsRendererb - Configuration beanpublic String getCSSClass()
null as this configuration does
not use a business class parameter.public String getCSSType()
Subnetworkpublic 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")';
}
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||