public class IlvTreeListToTreeTableModelFactory extends Object
TreeTableModel
, based on an
IlvTreeListModel
.
There are multiple equivalent variants of TreeTableModel
, such as
the original TreeTableModel
from Sun,
the JDNC org.jdesktop.swing.treetable.TreeTableModel
from Sun,
ilog.webui.dhtml.components.IlxWTreeTableModel
(part of Rogue Wave JTGO),
the Mozilla org.mozilla.javascript.tools.debugger.TreeTableModel
.
You need to pass the class of the desired interface as argument to the
createAdapter
method.
Note: The models returned by this class do not support adding and removing
objects or columns. You should use the underlying IlvTreeListModel
for this purpose (assuming it is an instance of
IlvDefaultTreeListModel
).
Constructor and Description |
---|
IlvTreeListToTreeTableModelFactory()
Creates an instance of this factory.
|
Modifier and Type | Method and Description |
---|---|
TreeModel |
createAdapter(IlvTreeListModel model,
Class targetModelClass)
Creates an adapter from
IlvTreeListModel to a TreeTableModel . |
TreeModel |
createAdapter(IlvTreeListModel model,
Class targetModelClass,
Class adapterClass)
Creates an adapter from
IlvTreeListModel to a TreeTableModel . |
public IlvTreeListToTreeTableModelFactory()
public TreeModel createAdapter(IlvTreeListModel model, Class targetModelClass)
IlvTreeListModel
to a TreeTableModel
.model
- An IlvTreeListModel
.targetModelClass
- A TreeTableModel
interface class.public TreeModel createAdapter(IlvTreeListModel model, Class targetModelClass, Class adapterClass)
IlvTreeListModel
to a TreeTableModel
.model
- An IlvTreeListModel
.targetModelClass
- A TreeTableModel
interface class.adapterClass
- A subclass of IlvTreeListToTreeTableModel
.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.