org.jdesktop.swingx
Class JXTreeTable.TreeTableHackerExt2
java.lang.Object
org.jdesktop.swingx.JXTreeTable.TreeTableHacker
org.jdesktop.swingx.JXTreeTable.TreeTableHackerExt
org.jdesktop.swingx.JXTreeTable.TreeTableHackerExt2
- Enclosing class:
- JXTreeTable
public class JXTreeTable.TreeTableHackerExt2
- extends JXTreeTable.TreeTableHackerExt
Patch for #471-swingx: no selection on click in hierarchical column
outside of node-text. Mar 2007.
Note: this solves the selection issue but is not bidi-compliant - in RToL
contexts the expansion/collapse handles aren't detected and consequently
are disfunctional.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JXTreeTable.TreeTableHackerExt2
public JXTreeTable.TreeTableHackerExt2()
expandOrCollapseNode
protected boolean expandOrCollapseNode(int column,
EventObject e)
- Description copied from class:
JXTreeTable.TreeTableHacker
- Tricksery to make the tree expand/collapse.
This might be - indirectly - called from one of two places:
- editCellAt: original, stable but buggy (#332, #222) the table's
own selection had been changed due to the click before even entering
into editCellAt so all tree selection state is lost.
- processMouseEvent: the idea is to catch the mouseEvent, check
if it triggered an expanded/collapsed, consume and return if so or
pass to super if not.
widened access for testing ...
- Overrides:
expandOrCollapseNode
in class JXTreeTable.TreeTableHacker
- Parameters:
column
- the column index under the event, if any.e
- the event which might trigger a expand/collapse.
- Returns:
- this methods evaluation as to whether the event triggered a
expand/collaps
getTreeMousePoint
protected Point getTreeMousePoint(int column,
MouseEvent me)
- This is a patch provided for Issue #980-swingx which should
improve the bidi-compliance. Still doesn't work in our
visual tests...
- Parameters:
column
- the column index under the event, if any.e
- the event which might trigger a expand/collapse.
- Returns:
- the Point adjusted for bidi