|
||||||||||
| 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.IltOffPageConnectorRenderer
public class IltOffPageConnectorRenderer
This class illustrates how you can configure Off-Page Connector 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[]).
This class can be configured like this in a CSS file:
Settings {
offPageConnector: true;
}
setting."ilog.tgo.model.IltOffPageConnector"{
types[0]: @+opcType0;
}
Subobject#opcType0 {
class: 'ilog.tgo.model.IltOffPageConnector$Type';
name: "YOUR_NEW_TYPE_NAME";
}
setting."ilog.tgo.model.IltOffPageConnector.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("OffPageConnector.Type.YOUR_NEW_TYPE_NAME.Label",YOUR NEW TYPE LABEL);
IltSettings.SetValue("OffPageConnector.Type.YOUR_NEW_TYPE_NAME.Renderer", rendererFactory);
| Constructor Summary | |
|---|---|
IltOffPageConnectorRenderer()
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 OPC types |
void |
setTypes(IltOffPageConnector.Type[] types)
Adds off page connector types to the system. |
| Methods inherited from class ilog.tgo.resource.renderer.IltSettingsRenderer |
|---|
attach, detach, getChildrenAsArray, isEnabled, reset, setEnabled |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IltOffPageConnectorRenderer()
| Method Detail |
|---|
public void reset()
reset in class IltSettingsRendererpublic String getCSSClass()
ilog.tgo.model.IltOffPageConnectorpublic String getCSSType()
settingpublic void setTypes(IltOffPageConnector.Type[] types)
types - Off Page Connector type objects to be added to the system
setting."ilog.tgo.model.IltOffPageConnector"{
types[0]: @+opcType0;
}
Subobject#opcType0 {
class: 'ilog.tgo.model.IltOffPageConnector$Type';
name: "Standard-UsrDf";
}
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||