Main Page   Packages   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

JTreeTable::TreeTableCellEditor Class Reference

Inheritance diagram for JTreeTable::TreeTableCellEditor:
[legend]
Collaboration diagram for JTreeTable::TreeTableCellEditor:
[legend]
List of all members.

Public Methods

Component getTableCellEditorComponent (JTable table, Object value, boolean isSelected, int r, int c)
boolean isCellEditable (EventObject e)

Detailed Description

TreeTableCellEditor implementation. Component returned is the JTree.

Definition at line 125 of file JTreeTable.java.


Member Function Documentation

boolean JTreeTable::TreeTableCellEditor::isCellEditable EventObject   e [inline]
 

Overridden to return false, and if the event is a mouse event it is forwarded to the tree.

The behavior for this is debatable, and should really be offered as a property. By returning false, all keyboard actions are implemented in terms of the table. By returning true, the tree would get a chance to do something with the keyboard events. For the most part this is ok. But for certain keys, such as left/right, the tree will expand/collapse where as the table focus should really move to a different column. Page up/down should also be implemented in terms of the table. By returning false this also has the added benefit that clicking outside of the bounds of the tree node, but still in the tree column will select the row, whereas if this returned true that wouldn't be the case.

By returning false we are also enforcing the policy that the tree will never be editable (at least by a key sequence).

Definition at line 148 of file JTreeTable.java.


The documentation for this class was generated from the following file:
Generated at Thu Feb 7 07:18:08 2002 for Bandera by doxygen1.2.10 written by Dimitri van Heesch, © 1997-2001