Package com.dassault_systemes.catjdialog |
|
Interface CATKeyPathTreeModel
|
com.dassault_systemes.catjdialog.CATKeyPathTreeModel
Framework : CATJDialog
Module : CATJDialog
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
- setKeyPathModel(), getKeyPathModel()
- collapseKeyPath(), expandKeyPath(), isKeyPathExpanded()
- selectKeyPath(), unselectKeyPath(), isKeyPathSelected()
- setSelectedKeyPaths(), getSelectedKeyPaths()
See the CAA technical article "Writing Stateless Controllers" for
a stateless design sample.
- See Also:
- CATTree
- com.dassault_systemes.catjdialog.CATKeyTreeModel
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