public class IlpInteractorRenderer
extends ilog.cpl.graph.css.renderer.IlpInteractorRenderer
IlpEquipmentView
.
This class shows all the properties that can be customized in the equipment controller using cascading style sheets.
The CSS configuration can be applied to the equipment component, using
IlpGraphView.setStyleSheets(java.lang.String[])
.
To customize the equipment controller programmatically,
use IlpEquipmentController
.
This class is a CSS stylable bean. It can be configured as follows in a CSS file:
Interactor { name : String; }
The name
property denotes the name of a button in the
toolbar that installs a view interactor. See
IlpToolBarRenderer
.
If the toolbar is not visible or currently not configured in the component, it is also possible to customize the view interactor as follows:
Interactor { viewInteractor : @=viewInt; } Subobject#viewInt { class: 'ilog.cpl.graphic.views.IlpViewsViewInteractor'; }
When the interactor renderer is enabled, it is also possible to define interactors that are associated to business objects. This customization is done in the following way:
object."business class name" { interactor: @+objInter; } Subobject#objInter { class: ilog.cpl.interactor.IlpDefaultObjectInteractor; }
IlpEquipmentController
,
IlpViewInteractor
,
IlpObjectInteractor
Constructor and Description |
---|
IlpInteractorRenderer()
Create an instance of the interactor renderer.
|
Modifier and Type | Method and Description |
---|---|
String |
getName()
Returns the default view interactor name, if there is one.
|
IlpObjectInteractor |
getObjectInteractor(IlpRepresentationObject object)
Returns the interactor associated with the given object.
|
IlpObjectInteractor |
getObjectInteractor(IlpRepresentationObject object,
IlpAttribute attribute)
Returns the interactor associated with the given object and attribute.
|
IlpViewInteractor |
getViewInteractor()
Returns the view interactor.
|
void |
setObjectInteractor(IlpRepresentationObject object,
IlpAttribute attribute,
IlpObjectInteractor interactor)
Sets the interactor to be associated with the given object and attribute.
|
void |
setObjectInteractor(IlpRepresentationObject object,
IlpObjectInteractor interactor)
Sets the interactor to be associated with the given object.
|
void |
setViewInteractor(IlpViewInteractor vi)
Sets the default view interactor.
|
getCSSID, reset, setName
attach, getView, noteContainerAdded, noteContainerUpdated
detach, getContext, getGraphicView, isRendererEnabled, setRendererEnabled
public IlpInteractorRenderer()
public String getName()
getName
in class ilog.cpl.graph.css.renderer.IlpInteractorRenderer
public IlpViewInteractor getViewInteractor()
getViewInteractor
in interface ilog.cpl.graphic.css.renderer.IlpInteractorRenderer
getViewInteractor
in class ilog.cpl.graph.css.renderer.IlpInteractorRenderer
public void setViewInteractor(IlpViewInteractor vi)
setViewInteractor
in interface ilog.cpl.graphic.css.renderer.IlpInteractorRenderer
setViewInteractor
in class ilog.cpl.graph.css.renderer.IlpInteractorRenderer
public IlpObjectInteractor getObjectInteractor(IlpRepresentationObject object)
getObjectInteractor
in interface ilog.cpl.graphic.css.renderer.IlpInteractorRenderer
getObjectInteractor
in class ilog.cpl.graph.css.renderer.IlpInteractorRenderer
object
- Representation objectpublic void setObjectInteractor(IlpRepresentationObject object, IlpObjectInteractor interactor)
setObjectInteractor
in interface ilog.cpl.graphic.css.renderer.IlpInteractorRenderer
setObjectInteractor
in class ilog.cpl.graph.css.renderer.IlpInteractorRenderer
public IlpObjectInteractor getObjectInteractor(IlpRepresentationObject object, IlpAttribute attribute)
getObjectInteractor
in interface ilog.cpl.graphic.css.renderer.IlpInteractorRenderer
getObjectInteractor
in class ilog.cpl.graph.css.renderer.IlpInteractorRenderer
object
- Representation objectattribute
- Business attributepublic void setObjectInteractor(IlpRepresentationObject object, IlpAttribute attribute, IlpObjectInteractor interactor)
setObjectInteractor
in interface ilog.cpl.graphic.css.renderer.IlpInteractorRenderer
setObjectInteractor
in class ilog.cpl.graph.css.renderer.IlpInteractorRenderer
object
- Representation objectattribute
- Business attributeinteractor
- Object interactor© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.