ilog.cpl.table
Class IlpTableRowFactory

java.lang.Object
  extended by ilog.cpl.table.IlpTableRowFactory
All Implemented Interfaces:
IlpRepresentationObjectFactory

public class IlpTableRowFactory
extends Object
implements IlpRepresentationObjectFactory

Implementation of a representation object factory that creates table rows.

The rows are created with an IlpExtendedAttributeGroup object as their attribute group.

Since:
JTGO 3.0
See Also:
IlpExtendedAttributeGroup, IlpTableRow

Constructor Summary
IlpTableRowFactory(IlpClass clazz)
          Deprecated. Please use the constructor IlpTableRowFactory(IlpTableRowAdapter) instead.
IlpTableRowFactory(IlpExtendedAttributeGroup attrGroup)
          Deprecated. Please use the constructor IlpTableRowFactory(IlpTableListAdapter) instead.
IlpTableRowFactory(IlpTableListAdapter adpt)
          Creates a representation object factory.
 
Method Summary
 IlpRepresentationObject createRepresentation(IlpObject ilpObject, IlpExpansionStrategy expansionStrategy)
          Returns a representation object corresponding to a business object.
 IlpExtendedAttributeGroup getExtendedAttributeGroup()
          Gets the extended attribute model that is used when creating the representation objects.
 void setExtendedAttributeGroup(IlpExtendedAttributeGroup attrGroup)
          Sets the extended attribute group for representation objects that are being used by this factory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IlpTableRowFactory

public IlpTableRowFactory(IlpTableListAdapter adpt)
Creates a representation object factory.

This factory creates table row (IlpTableRow) objects containing an IlpExtendedAttributeGroup that wraps the accepted class from the adapter.

Parameters:
adpt - The adapter that enables the factory to access the accepted class used to create the IlpExtendedAttributeGroup object.
See Also:
IlpRepresentationObjectFactory, IlpListAdapter.getAcceptedClass(), IlpExtendedAttributeGroup, IlpTableListAdapter, IlpTableRow

IlpTableRowFactory

public IlpTableRowFactory(IlpClass clazz)
Deprecated. Please use the constructor IlpTableRowFactory(IlpTableRowAdapter) instead.

Creates a factory that will create table rows using an IlpExtendedAttributeGroup object that wraps the IlpClass class.

Parameters:
clazz - The class used to create an IlpExtendedAttributeGroup object.
Deprecated Since:
JTGO 4.0

IlpTableRowFactory

public IlpTableRowFactory(IlpExtendedAttributeGroup attrGroup)
Deprecated. Please use the constructor IlpTableRowFactory(IlpTableListAdapter) instead.

Creates a factory that will create table rows using the given IlpExtendedAttributeGroup object.

Parameters:
attrGroup - The IlpExtendedAttributeGroup object to be used when creating the representation objects (IlpTableRow instances).
Deprecated Since:
JTGO 4.0
Method Detail

setExtendedAttributeGroup

public void setExtendedAttributeGroup(IlpExtendedAttributeGroup attrGroup)
Sets the extended attribute group for representation objects that are being used by this factory.

Note: This method calls the method setAttributeGroup in the adapter only if none of the deprecated constructors have been used.

Parameters:
attrGroup - The new attribute group of the representation objects.

getExtendedAttributeGroup

public IlpExtendedAttributeGroup getExtendedAttributeGroup()
Gets the extended attribute model that is used when creating the representation objects. It depends on the accepted class set in the adapter.

Returns:
The attribute model of the representation objects.

createRepresentation

public IlpRepresentationObject createRepresentation(IlpObject ilpObject,
                                                    IlpExpansionStrategy expansionStrategy)
Returns a representation object corresponding to a business object. The returned representation object is an instance of IlpTableRow.

Specified by:
createRepresentation in interface IlpRepresentationObjectFactory
Parameters:
ilpObject - The business object.
expansionStrategy - The expansion strategy.
See Also:
IlpTableRow


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