public class IltShelfRenderer 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 { shelf: true; } setting."ilog.tgo.model.IltShelf"{ types[0]: @+shelfType0; } Subobject#shelfType0 { class: 'ilog.tgo.model.IltShelf$Type'; name: "YOUR_NEW_TYPE_NAME"; } setting."ilog.tgo.model.IltShelf.Type[name=YOUR_NEW_TYPE_NAME] { label: "My Type"; renderer: @#rendererFactory; tinyRenderer: @#tinyRendererFactory; }
To customize the global settings programmatically,
use IltSettings.SetValue(Object, Object)
.
The following extract illustrates how you can achieve this
configuration:
IltSettings.SetValue("Shelf.Type.YOUR_NEW_TYPE_NAME.Label", "My Type"); IltSettings.SetValue("Shelf.Type.YOUR_NEW_TYPE_NAME.Renderer", rendererFactory); IltSettings.SetValue("Shelf.TinyType.YOUR_NEW_TYPE_NAME.Renderer", tinyRendererFactory);
Constructor and Description |
---|
IltShelfRenderer()
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 |
setTypes(IltShelf.Type[] types)
Adds shelf types to the system.
|
attach, detach, getChildrenAsArray, isEnabled, reset, setEnabled
public void reset()
reset
in class IltSettingsRenderer
public String getCSSClass()
ilog.tgo.model.IltShelf
public String getCSSType()
setting
public void setTypes(IltShelf.Type[] types)
types
- Shelf type objects to be added to the system
setting."ilog.tgo.model.IltShelf"{ types[0]: @+shelfType0; } Subobject#shelfType0 { class: 'ilog.tgo.model.IltShelf$Type'; name: "Standard-UsrDf"; }
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.