|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jdesktop.swingx.JXTreeTable.TreeTableHacker
public class JXTreeTable.TreeTableHacker
Temporary class to have all the hacking at one place. Naturally, it will change a lot. The base class has the "stable" behaviour as of around jun2006 (before starting the fix for 332-swingx).
specifically:
| Field Summary | |
|---|---|
protected boolean |
expansionChangedFlag
|
| Constructor Summary | |
|---|---|
JXTreeTable.TreeTableHacker()
|
|
| Method Summary | |
|---|---|
protected void |
completeEditing()
Complete editing if collapsed/expanded. |
protected boolean |
expandOrCollapseNode(int column,
java.util.EventObject e)
Tricksery to make the tree expand/collapse. |
protected void |
expansionChanged()
called from the renderer's setExpandedPath after all expansion-related updates happend. |
void |
hitHandleDetectionFromEditCell(int column,
java.util.EventObject e)
Entry point for hit handle detection called from editCellAt, does nothing if isHitDetectionFromProcessMouse is true; |
boolean |
hitHandleDetectionFromProcessMouse(java.awt.event.MouseEvent e)
Entry point for hit handle detection called from processMouse. |
protected boolean |
isHitDetectionFromProcessMouse()
Decision whether the handle hit detection should be done in processMouseEvent or editCellAt. |
protected boolean |
mightBeExpansionTrigger(java.util.EventObject e)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected boolean expansionChangedFlag
| Constructor Detail |
|---|
public JXTreeTable.TreeTableHacker()
| Method Detail |
|---|
protected boolean isHitDetectionFromProcessMouse()
public void hitHandleDetectionFromEditCell(int column,
java.util.EventObject e)
isHitDetectionFromProcessMouse()public boolean hitHandleDetectionFromProcessMouse(java.awt.event.MouseEvent e)
isHitDetectionFromProcessMouse()protected void completeEditing()
Is: first try to stop editing before falling back to cancel.
This is part of fix for #730-swingx - editingStopped not always called. The other part is to call this from the renderer before expansion related state has changed.
Was: any editing is always cancelled.
This is a rude fix to #120-jdnc: data corruption on collapse/expand if editing. This is called from the renderer after expansion related state has changed.
protected boolean expandOrCollapseNode(int column,
java.util.EventObject e)
This might be - indirectly - called from one of two places:
widened access for testing ...
column - the column index under the event, if any.e - the event which might trigger a expand/collapse.
protected boolean mightBeExpansionTrigger(java.util.EventObject e)
protected void expansionChanged()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||