com.tensegrity.gui.swing.control.tree.strategy
Interface OutlinerStrategy

All Known Subinterfaces:
TreeStrategy
All Known Implementing Classes:
AbstractTreeStrategy

public interface OutlinerStrategy

This is the top level interface of a set of interfaces, abstract classes and classes which altogether provide us with a flexible Outliner object. The Outliner object is used in order to outline the content of documents. By documents one must understand implementations of the Document interface. This Outliner is currently implemented as a Tree but a Table implementation will be provided in a foreseeable future. The data Model used for this Outliner can be customized by client applications. It is also possible to switch between data Models at runtime. In order to satisfy these requirements the Strategy Design Pattern is used. This interface is currently extended by the TreeStrategy interface and should soon be extended by a TableStrategy interface which would be used for the forthcoming TableOutliner. This interface defines the following factory method in order to retrieve the Comparator:

Version:
$Id: OutlinerStrategy.java,v 1.3 2004/10/11 09:15:21 SebastienGuyon Exp $
Author:
S�bastien Guyon
See Also:
Document, TreeOutliner, TreeStrategy

Method Summary
 java.util.Comparator getComparator(boolean asc)
          Factory method which returns a Comparator that can be used in order to sort the Ouliner nodes.
 

Method Detail

getComparator

public java.util.Comparator getComparator(boolean asc)

Factory method which returns a Comparator that can be used in order to sort the Ouliner nodes.

Parameters:
asc - True if an ascending sorting is required, false if a descending sorting is required.
Returns:
a Comparator


Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.