| org.netbeans.swing.outline.OutlineModel
All known Subclasses: org.netbeans.swing.outline.DefaultOutlineModel,
OutlineModel | public interface OutlineModel extends TableModel,TreeModel(Code) | | A model for an Outline ("tree-table"). Implements both
TreeModel and TableModel (the default implementation, DefaultOutlineModel,
wraps a supplied TreeModel and TableModel). It is vastly easier to
use DefaultOutlineModel than to implement this interface
directly.
author: Tim Boudreau |
Method Summary | |
public AbstractLayoutCache | getLayout() Get the layout cache which is used to track the visual state of nodes.
This is typically one of the standard JDK layout cache classes, such
as VariableHeightLayoutCache or
FixedHeightLayoutCache . | public NodeRowModel | getRowNodeModel() Get the NodeRowModel interface so we can manage information about nodes as they related
to rows. | public TreePathSupport | getTreePathSupport() Get the TreePathSupport object this model uses to manage
information about expanded nodes. | public boolean | isLargeModel() Determine if the model is a large-model. | public void | setNodeColumnName(String inName) This method allows you to set the name of the column representing the node. |
getLayout | public AbstractLayoutCache getLayout()(Code) | | Get the layout cache which is used to track the visual state of nodes.
This is typically one of the standard JDK layout cache classes, such
as VariableHeightLayoutCache or
FixedHeightLayoutCache .
|
getRowNodeModel | public NodeRowModel getRowNodeModel()(Code) | | Get the NodeRowModel interface so we can manage information about nodes as they related
to rows.
Added 4/19/2004 - David Botterill
|
getTreePathSupport | public TreePathSupport getTreePathSupport()(Code) | | Get the TreePathSupport object this model uses to manage
information about expanded nodes. TreePathSupport implements
logic for tracking expanded nodes, manages TreeWillExpandListener s,
and is a repository for preserving expanded state information about nodes whose parents
are currently collapsed. JTree implements very similar logic internally
to itself.
(PENDING) It is not yet determined if TreePathSupport will remain a
public class.
|
isLargeModel | public boolean isLargeModel()(Code) | | Determine if the model is a large-model. Large model trees keep less
internal state information, relying on the TreeModel more. Essentially
they trade performance for scalability. An OutlineModel may be large
model or small model; primarily this affects the type of layout cache
used, just as it does with JTree.
|
setNodeColumnName | public void setNodeColumnName(String inName)(Code) | | This method allows you to set the name of the column representing the node.
Added 4/19/2004 - David Botterill
Parameters: inName - - the name to be given to the node column. |
|
|