public class JXTreeTable.TreeTableHacker extends Object
specifically:
Modifier and Type | Field and Description |
---|---|
protected boolean |
expansionChangedFlag |
Constructor and Description |
---|
TreeTableHacker() |
Modifier and Type | Method and Description |
---|---|
protected void |
completeEditing()
Complete editing if collapsed/expanded.
|
protected boolean |
expandOrCollapseNode(int column,
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,
EventObject e)
Entry point for hit handle detection called from editCellAt,
does nothing if isHitDetectionFromProcessMouse is true;
|
boolean |
hitHandleDetectionFromProcessMouse(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(EventObject e) |
protected boolean expansionChangedFlag
public TreeTableHacker()
protected boolean isHitDetectionFromProcessMouse()
public void hitHandleDetectionFromEditCell(int column, EventObject e)
isHitDetectionFromProcessMouse()
public boolean hitHandleDetectionFromProcessMouse(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, 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(EventObject e)
protected void expansionChanged()
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses