MetaDone
metadone.client.grasyla2.swing.JTreeEngine Class Reference
Inheritance diagram for metadone.client.grasyla2.swing.JTreeEngine:
Collaboration diagram for metadone.client.grasyla2.swing.JTreeEngine:

List of all members.

Public Member Functions

 JTreeEngine (GrasylaContext context, ConcreteObject expression, Engine parent) throws BadPreCondition

Protected Member Functions

Component<?extends JComponent > evaluateComponent (BootstrapGrasyla grasyla) throws BadPreCondition
void disposeInternal ()
void notifyChildChanged (Engine child, ChildComponent comp)

Private Attributes

final DefaultTreeModel model = new DefaultTreeModel(null)
JTree tree

Detailed Description

Builds a tree.

Attributes

Result

Creates a JTree by reevaluating the expression as a TreeNode which will be the root of the tree.

Notes

If the tree is editable, multiple selection will not work properly.

Actions
"click", "doubleClick" and ContextMenuEvent. UserSelectEvent is triggered on selection change.
Author:
kma
See also:
TreeNode

Constructor & Destructor Documentation

metadone.client.grasyla2.swing.JTreeEngine.JTreeEngine ( GrasylaContext  context,
ConcreteObject  expression,
Engine  parent 
) throws BadPreCondition

Initializes this engine.

Parameters:
contextThe context
expressionThe expression
parentThe parent or null
Exceptions:
BadPreCondition

References metadone.client.grasyla2.swing.GrasylaSwingHelper.registerAttributeHandlers(), and metadone.client.grasyla2.swing.JTreeEngine.tree.


Member Function Documentation

void metadone.client.grasyla2.swing.JTreeEngine.disposeInternal ( ) [protected]
void metadone.client.grasyla2.swing.JTreeEngine.notifyChildChanged ( Engine  child,
ChildComponent  comp 
) [protected]

Member Data Documentation

final DefaultTreeModel metadone.client.grasyla2.swing.JTreeEngine.model = new DefaultTreeModel(null) [private]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations