ilog.cpl.interactor
Class IlpInteractorManagerSupport

java.lang.Object
  extended by ilog.cpl.interactor.IlpInteractorManagerSupport
All Implemented Interfaces:
IlpInteractorManager, IlpMutableInteractorManager

public class IlpInteractorManagerSupport
extends Object
implements IlpMutableInteractorManager

This class models a basic interactor manager implementation.

Since:
JTGO 3.0

Constructor Summary
IlpInteractorManagerSupport(IlpInteractorManager manager)
          Creates a support class for the given instance to store interactors for objects and attributes.
 
Method Summary
 IlpObjectInteractor getObjectInteractor(IlpObject object)
          Returns the interactor associated with the given business object in the graphic view controlled by this instance.
 IlpObjectInteractor getObjectInteractor(IlpObject object, IlpAttribute attribute)
          Returns the interactor associated with the given object and attribute in the graphic view controlled by this instance.
 IlpObjectInteractor getObjectInteractor(IlpRepresentationObject object)
          Returns the interactor associated with the given object in the graphic view controlled by this instance.
 IlpObjectInteractor getObjectInteractor(IlpRepresentationObject object, IlpAttribute attribute)
          Returns the interactor associated with the given object and attribute in the graphic view controlled by this instance.
 IlpObjectInteractor getObjectInteractor(Object key)
          Returns the interactor associated with the given key in the graphic view controlled by this instance.
 void removeObjectInteractors()
          Removes all the interactors associated with representation objects.
 void removeObjectInteractors(IlpObject object)
          Removes all the interactors associated with the given business object.
 void removeObjectInteractors(IlpRepresentationObject object)
          Removes all the interactors associated with the given object.
 void setObjectInteractor(IlpObject object, IlpAttribute attribute, IlpObjectInteractor interactor)
          Sets the interactor associated with the given business object and attribute.
 void setObjectInteractor(IlpObject object, IlpObjectInteractor interactor)
          Sets the interactor associated with the given business object.
 void setObjectInteractor(IlpRepresentationObject object, IlpAttribute attribute, IlpObjectInteractor interactor)
          Sets the interactor associated with the given object and attribute.
 void setObjectInteractor(IlpRepresentationObject object, IlpObjectInteractor interactor)
          Sets the interactor associated with the given object.
 void setObjectInteractor(Object key, IlpObjectInteractor interactor)
          Sets the interactor associated with the given key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IlpInteractorManagerSupport

public IlpInteractorManagerSupport(IlpInteractorManager manager)
Creates a support class for the given instance to store interactors for objects and attributes.

Method Detail

getObjectInteractor

public IlpObjectInteractor getObjectInteractor(Object key)
Returns the interactor associated with the given key in the graphic view controlled by this instance.

Specified by:
getObjectInteractor in interface IlpInteractorManager
Parameters:
key - Interactor key

getObjectInteractor

public IlpObjectInteractor getObjectInteractor(IlpRepresentationObject object)
Returns the interactor associated with the given object in the graphic view controlled by this instance.

If no interactor is registered for this representation object, the interactor registered for its business object is used.

Specified by:
getObjectInteractor in interface IlpInteractorManager
Parameters:
object - Representation object whose interactor is being queried.

getObjectInteractor

public IlpObjectInteractor getObjectInteractor(IlpRepresentationObject object,
                                               IlpAttribute attribute)
Returns the interactor associated with the given object and attribute in the graphic view controlled by this instance.

If no interactor is registered for this representation object and attribute, the interactor registered for its business object and the same attribute is used.

Specified by:
getObjectInteractor in interface IlpInteractorManager
Parameters:
object - Representation object whose interactor is being queried.
attribute - Business attribute

getObjectInteractor

public IlpObjectInteractor getObjectInteractor(IlpObject object)
Returns the interactor associated with the given business object in the graphic view controlled by this instance.

Specified by:
getObjectInteractor in interface IlpInteractorManager
Parameters:
object - Business object whose interactor is being queried.

getObjectInteractor

public IlpObjectInteractor getObjectInteractor(IlpObject object,
                                               IlpAttribute attribute)
Returns the interactor associated with the given object and attribute in the graphic view controlled by this instance.

Specified by:
getObjectInteractor in interface IlpInteractorManager
Parameters:
object - Business object whose interactor is being queried.
attribute - Business attribute

setObjectInteractor

public void setObjectInteractor(Object key,
                                IlpObjectInteractor interactor)
Sets the interactor associated with the given key.

Specified by:
setObjectInteractor in interface IlpMutableInteractorManager
Parameters:
key - Interactor key
interactor - Interactor being set

setObjectInteractor

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

Specified by:
setObjectInteractor in interface IlpMutableInteractorManager
Parameters:
object - Representation object
interactor - Object interactor

setObjectInteractor

public void setObjectInteractor(IlpRepresentationObject object,
                                IlpAttribute attribute,
                                IlpObjectInteractor interactor)
Sets the interactor associated with the given object and attribute. If the object value is null, the interactor is set to the attribute and becomes the default interactor for this attribute.

Specified by:
setObjectInteractor in interface IlpMutableInteractorManager
Parameters:
object - Representation object
attribute - Business attribute
interactor - Object interactor

setObjectInteractor

public void setObjectInteractor(IlpObject object,
                                IlpObjectInteractor interactor)
Sets the interactor associated with the given business object.

Specified by:
setObjectInteractor in interface IlpMutableInteractorManager
Parameters:
object - Business object
interactor - Object interactor

setObjectInteractor

public void setObjectInteractor(IlpObject object,
                                IlpAttribute attribute,
                                IlpObjectInteractor interactor)
Sets the interactor associated with the given business object and attribute. If the object value is null, the interactor is set to the attribute and becomes the default interactor for this attribute.

Specified by:
setObjectInteractor in interface IlpMutableInteractorManager
Parameters:
object - Business object
attribute - Business attribute
interactor - Object interactor

removeObjectInteractors

public void removeObjectInteractors(IlpRepresentationObject object)
Removes all the interactors associated with the given object.

Specified by:
removeObjectInteractors in interface IlpMutableInteractorManager
Parameters:
object - Representation object

removeObjectInteractors

public void removeObjectInteractors(IlpObject object)
Removes all the interactors associated with the given business object.

Specified by:
removeObjectInteractors in interface IlpMutableInteractorManager
Parameters:
object - Business object

removeObjectInteractors

public void removeObjectInteractors()
Removes all the interactors associated with representation objects.

Specified by:
removeObjectInteractors in interface IlpMutableInteractorManager
Since:
JTGO 4.0


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