ilog.cpl.equipment.renderer
Class IlpInteractorRenderer

java.lang.Object
  extended by ilog.cpl.graphic.css.renderer.IlpAbstractGraphicViewRenderer
      extended by ilog.cpl.graph.css.renderer.IlpAbstractRepresentationViewRenderer
          extended by ilog.cpl.graph.css.renderer.IlpInteractorRenderer
              extended by ilog.cpl.equipment.renderer.IlpInteractorRenderer
All Implemented Interfaces:
ilog.cpl.graphic.css.renderer.IlpInteractorRenderer

public class IlpInteractorRenderer
extends ilog.cpl.graph.css.renderer.IlpInteractorRenderer

This class gives control over the interactors of an 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;
 }
 

Since:
JTGO 4.0
See Also:
IlpEquipmentController, IlpViewInteractor, IlpObjectInteractor

Constructor Summary
IlpInteractorRenderer()
           
 
Method Summary
 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.
 
Methods inherited from class ilog.cpl.graph.css.renderer.IlpInteractorRenderer
getCSSID, reset, setName
 
Methods inherited from class ilog.cpl.graph.css.renderer.IlpAbstractRepresentationViewRenderer
attach, getView, noteContainerAdded, noteContainerUpdated
 
Methods inherited from class ilog.cpl.graphic.css.renderer.IlpAbstractGraphicViewRenderer
detach, getContext, getGraphicView, isRendererEnabled, setRendererEnabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ilog.cpl.graphic.css.renderer.IlpInteractorRenderer
isRendererEnabled
 

Constructor Detail

IlpInteractorRenderer

public IlpInteractorRenderer()
Method Detail

getName

public String getName()
Returns the default view interactor name, if there is one.

Overrides:
getName in class ilog.cpl.graph.css.renderer.IlpInteractorRenderer
Returns:
Default view interactor name

getViewInteractor

public IlpViewInteractor getViewInteractor()
Returns the view interactor.

Specified by:
getViewInteractor in interface ilog.cpl.graphic.css.renderer.IlpInteractorRenderer
Overrides:
getViewInteractor in class ilog.cpl.graph.css.renderer.IlpInteractorRenderer
Since:
JTGO 4.0

setViewInteractor

public void setViewInteractor(IlpViewInteractor vi)
Sets the default view interactor.

Specified by:
setViewInteractor in interface ilog.cpl.graphic.css.renderer.IlpInteractorRenderer
Overrides:
setViewInteractor in class ilog.cpl.graph.css.renderer.IlpInteractorRenderer
Since:
JTGO 4.0

getObjectInteractor

public IlpObjectInteractor getObjectInteractor(IlpRepresentationObject object)
Returns the interactor associated with the given object.

Specified by:
getObjectInteractor in interface ilog.cpl.graphic.css.renderer.IlpInteractorRenderer
Overrides:
getObjectInteractor in class ilog.cpl.graph.css.renderer.IlpInteractorRenderer
Parameters:
object - Representation object
Since:
JTGO 4.0

setObjectInteractor

public void setObjectInteractor(IlpRepresentationObject object,
                                IlpObjectInteractor interactor)
Sets the interactor to be associated with the given object.

Specified by:
setObjectInteractor in interface ilog.cpl.graphic.css.renderer.IlpInteractorRenderer
Overrides:
setObjectInteractor in class ilog.cpl.graph.css.renderer.IlpInteractorRenderer
Since:
JTGO 4.0

getObjectInteractor

public IlpObjectInteractor getObjectInteractor(IlpRepresentationObject object,
                                               IlpAttribute attribute)
Returns the interactor associated with the given object and attribute.

Specified by:
getObjectInteractor in interface ilog.cpl.graphic.css.renderer.IlpInteractorRenderer
Overrides:
getObjectInteractor in class ilog.cpl.graph.css.renderer.IlpInteractorRenderer
Parameters:
object - Representation object
attribute - Business attribute
Since:
JTGO 4.0

setObjectInteractor

public void setObjectInteractor(IlpRepresentationObject object,
                                IlpAttribute attribute,
                                IlpObjectInteractor interactor)
Sets the interactor to be associated with the given object and attribute.

Specified by:
setObjectInteractor in interface ilog.cpl.graphic.css.renderer.IlpInteractorRenderer
Overrides:
setObjectInteractor in class ilog.cpl.graph.css.renderer.IlpInteractorRenderer
Parameters:
object - Representation object
attribute - Business attribute
interactor - Object interactor
Since:
JTGO 4.0


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.   . All Rights Reserved.