ilog.cpl.tree
Class IlpDefaultTreeNodeFactory

java.lang.Object
  extended by ilog.cpl.tree.IlpDefaultTreeNodeFactory
All Implemented Interfaces:
IlpTreeNodeFactory

public class IlpDefaultTreeNodeFactory
extends Object
implements IlpTreeNodeFactory

The default tree node factory used by the tree adapter. Each tree node is created with an IlpExtendedAttributeGroup as attribute group with the expansion strategy passed as an argument to the createTreeNode method.

Since:
JTGO 3.0
See Also:
IlpExtendedAttributeGroup, IlpTreeNode

Constructor Summary
IlpDefaultTreeNodeFactory()
           
 
Method Summary
 IlpTreeNode createTreeNode(IlpObject ilpObject, IlpExpansionStrategy expansionStrategy)
          Creates and returns a tree node.
 IlpExtendedAttributeGroup getExtendedAttributeGroup(IlpClass clazz)
          Gets the extended attribute model used for representation objects (nodes) that represent a certain class of IlpObject.
 void setExtendedAttributeGroup(IlpClass clazz, IlpExtendedAttributeGroup attrGroup)
          Sets the extended attribute group for representation objects (nodes) that represent a certain class of IlpObject.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IlpDefaultTreeNodeFactory

public IlpDefaultTreeNodeFactory()
Method Detail

setExtendedAttributeGroup

public void setExtendedAttributeGroup(IlpClass clazz,
                                      IlpExtendedAttributeGroup attrGroup)
Sets the extended attribute group for representation objects (nodes) that represent a certain class of IlpObject.

Parameters:
clazz - The class of IlpObject.
attrGroup - The attribute group of the representation objects (nodes) that represent IlpObjects of the class clazz.

getExtendedAttributeGroup

public IlpExtendedAttributeGroup getExtendedAttributeGroup(IlpClass clazz)
Gets the extended attribute model used for representation objects (nodes) that represent a certain class of IlpObject.

Parameters:
clazz - The class of IlpObject.
Returns:
The attribute group of the representation objects (nodes) that represent IlpObjects of the class clazz.

createTreeNode

public IlpTreeNode createTreeNode(IlpObject ilpObject,
                                  IlpExpansionStrategy expansionStrategy)
Creates and returns a tree node.

Specified by:
createTreeNode in interface IlpTreeNodeFactory
Parameters:
ilpObject - The IlpObject of the tree node.
expansionStrategy - The expansion strategy of the tree node.


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