org.netbeans.swing.outline 1.20

org.netbeans.swing.outline
Interface OutlineModel

All Superinterfaces:
TableModel, TreeModel
All Known Implementing Classes:
DefaultOutlineModel

public interface OutlineModel
extends TableModel, TreeModel

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.


Method Summary
 AbstractLayoutCache getLayout()
          Get the layout cache which is used to track the visual state of nodes.
 TreePathSupport getTreePathSupport()
          Get the TreePathSupport object this model uses to manage information about expanded nodes.
 boolean isLargeModel()
          Determine if the model is a large-model.
 
Methods inherited from interface javax.swing.table.TableModel
addTableModelListener, getColumnClass, getColumnCount, getColumnName, getRowCount, getValueAt, isCellEditable, removeTableModelListener, setValueAt
 
Methods inherited from interface javax.swing.tree.TreeModel
addTreeModelListener, getChild, getChildCount, getIndexOfChild, getRoot, isLeaf, removeTreeModelListener, valueForPathChanged
 

Method Detail

getTreePathSupport

TreePathSupport getTreePathSupport()
Get the TreePathSupport object this model uses to manage information about expanded nodes. TreePathSupport implements logic for tracking expanded nodes, manages TreeWillExpandListeners, 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.


getLayout

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.


isLargeModel

boolean isLargeModel()
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.


org.netbeans.swing.outline 1.20

Built on May 25 2012.  |  Portions Copyright 1997-2012 Oracle. All rights reserved.