Package com.dassault_systemes.catjdialog

   
Interface CATKeyPathTreeModel

 
Class Hierarchy
com.dassault_systemes.catjdialog.CATKeyPathTreeModel
Class Location

Framework : CATJDialog

Module : CATJDialog

Class Description

public interface CATKeyPathTreeModel

The key-path tree model is an interface used to feed a tree component with content.

Description:

Basically it is a tree model (see CATTree) that is similar to CATKeyTreeModel except that it identifies tree nodes with their key paths (instead of keys).
Use this model if the key is not sufficient to identify tree nodes (that is when the same key may be found more than one time in the tree - this is the case when representing the data of an acyclic graph model).

CATTree methods related to the key path tree model

See the CAA technical article "Writing Stateless Controllers" for a stateless design sample.

See Also:
CATTree
com.dassault_systemes.catjdialog.CATKeyTreeModel
Field Summary

Constructor Summary

Method Summary
String getRootKey(CATDialog iDialog)
CATTreeNodeInfo getNodeInfo(CATDialog iDialog, String[] iKeyPath, boolean iGetChildren)


Field Detail

Constructor Detail

Method Detail

getRootKey

    String getRootKey(CATDialog iDialog)

Returns the tree root node key.

Parameters:
iDialog
The calling component. Its status may not be modified by the model (only 'get' methods).
Returns:
The tree root node key.

getNodeInfo

    CATTreeNodeInfo getNodeInfo(CATDialog iDialog, String[] iKeyPath, boolean iGetChildren)

Returns node info (label, icon ...).

Parameters:
iDialog
The calling component. Its status may not be modified by the model (only 'get' methods).
iKeyPath
The node key path.
iGetChildren
If true, the model is expected to return children keys (this is only required for expandable and expanded nodes).
Returns:
CATTreeNodeInfo An object that contains node information (type, label, icon, children, ...).


Copyright © 2000, Dassault Systèmes. All rights reserved