setSDMEngine(IlvSDMEngine
engine)
Sets the SDM engine to work on.setContentHandler(IlvContentHandler
handler)
Sets the handler.setCacheSize(int size)
Sets
the cache size.lockArea(IlvRect area,
int mode)
Locks the objects that intersect with the
given rectangle. The mode indicates the status of previously locked
objects. The allowed values are: IlvContentHandler.OVERRIDE
Previously
locked objects are unlocked. IlvContentHandler.AUGMENT
Previously
locked objects remain locked. ilog.views.sdm.modeltools.IlvVisibleAreaListener
provides
a view listener that locks automatically the visible area of an SDM
view. processObjects(Object[]
objects, int action)
Locks, loads, or unloads the given
objects, according to the action value, which can be one of: IlvContentHandler.LOCK
Lock
action.IlvContentHandler.UNLOCK
Unlock
action (once unlocked, objects can be unloaded at any time).IlvContentHandler.UNLOAD
Unload
action.processObjects(Enumeration
objects, int action)
Similar to the previous method
but objects are defined in an Enumeration.processObjects(Iterator
objects, int action)
Similar to the previous method
but objects are defined in an Iterator.processAllObjects(int
action)
Similar to the previous method but operates
on all objects.int getObjectStatus(Object
obj)
Returns the current state of the given object. IlvContentController
class: IlvSDMEngine getSDMEngine()
Returns
the SDM engine.IlvContentHandler getContentHandler()
Returns
the content handler.void setNotificationEnabled(boolean
on)
If on
is false
,
the handler is not notified. boolean isNotificationEnabled()
Returns
whether notifications are enabled. int getLockedCount()
Returns
the number of locked objects.int getLoadedCount()
Returns
the number of objects in the cache.loadContent(IlvContentControler
source, Object[] objs)
Loads the content of the given
objects into the SDM model.unloadContent(IlvContentControler
source, Object[] objs)
Unloads the content of the given
objects into the SDM model.source
argument indicates
the controller that sends the request. installListener(IlvManagerView
target)
Installs a transformer listener. IlvVisibleAreaListener l = new IlvVisibleAreaListener(contentControler); l.installListener(contentControler.getSDMEngine().getReferenceView());
requestAreaToLock
can
be subclassed to control the area to lock, as follows: int requestAreaToLock(IlvRect
area)
Called when the view transformer has changed.
The default implementation simply calls the controller method lockArea(area,
OVERRIDE)
and returns the number of objects that have
been loaded.