ilog.views.sdm
Class IlvSDMCompositeContext

java.lang.Object
  extended by ilog.views.sdm.IlvSDMCompositeContext
All Implemented Interfaces:
IlvCompositeContext

public class IlvSDMCompositeContext
extends Object
implements IlvCompositeContext

This helper class is the implementation of IlvCompositeContext for SDM. It provides an API for the swing actions triggered on mouse events that occurred on a composite. This API allows the action to modify object properties of an object of an SDM model

Since:
JViews 8.0

Constructor Summary
IlvSDMCompositeContext(IlvSDMEngine engine)
           
 
Method Summary
 Object getProperty(IlvGraphic graphic, String name)
          Returns the property of an object of the SDM model.
 void setProperty(IlvGraphic graphic, String name, Object value)
          Sets a property on an object of the SDM model.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IlvSDMCompositeContext

public IlvSDMCompositeContext(IlvSDMEngine engine)
Parameters:
engine - the SDM engine corresponding to the view on which an event occurred
Method Detail

setProperty

public void setProperty(IlvGraphic graphic,
                        String name,
                        Object value)
Sets a property on an object of the SDM model. The SDM object is mapped to the IlvGraphic passed as a parameter.

Specified by:
setProperty in interface IlvCompositeContext
Parameters:
graphic - the composite graphic on which the event occurred
name - the property name to modify
value - the value of the property

getProperty

public Object getProperty(IlvGraphic graphic,
                          String name)
Returns the property of an object of the SDM model. The SDM object is mapped to the IlvGraphic passed as a parameter.

Specified by:
getProperty in interface IlvCompositeContext
Parameters:
graphic - the composite on which an event occurred
name - a property name
Returns:
the value of the property


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