public class IlpInteractorRenderer
extends ilog.cpl.graph.css.renderer.IlpInteractorRenderer
IlpNetworkView
.
This class shows all the properties that can be customized in the Network Controller using cascading style sheets.
The CSS configuration can be applied to the Network component, using
IlpGraphView.setStyleSheets(java.lang.String[])
.
To customize the Network controller programmatically,
use IlpNetworkController
.
This class is a CSS stylable Bean. It can be configured like this 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; }
IlpNetworkController
,
IlpViewInteractor
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 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.