|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jdesktop.swingx.JXTreeTable.TreeTableHacker
org.jdesktop.swingx.JXTreeTable.TreeTableHackerExt
org.jdesktop.swingx.JXTreeTable.TreeTableHackerExt4
public class JXTreeTable.TreeTableHackerExt4
This class extends TreeTableHackerExt instead of TreeTableHackerExt3 so as to serve as a clue that it is a complete overhaul and looking in TreeTableHackerExt2 and TreeTableHackerExt3 for methods to change the behavior will do you no good.
The methods previously used are abandoned as they would be misnomers to the behavior as implemented in this class.
Changes:
processMouseEvent(MouseEvent)
consumed events was incompatible with the way this
class does things. As a consequence,
hitHandleDetectionFromProcessMouse(MouseEvent)
always returns false so that processMoueEvent(MouseEvent) will not
doing anything other than call its super
method.isPopupTrigger() returns true, are sent to
the JTree. This has the added benefit of not having to piggy back a mouse
released event as we can just use the real mouse released event. This
keeps the look and feel consistent for the user of UI's that
expand/collapse nodes on the release of the mouse.isTreeHandleEventType(MouseEvent) method. This
implementation sends all events regardless of the modifiers.
| Field Summary |
|---|
| Fields inherited from class org.jdesktop.swingx.JXTreeTable.TreeTableHacker |
|---|
expansionChangedFlag |
| Constructor Summary | |
|---|---|
JXTreeTable.TreeTableHackerExt4()
|
|
| Method Summary | |
|---|---|
protected MouseEvent |
getEventForTreeRenderer(MouseEvent e)
This method checks if the location of the event is in the tree handle margin and translates the coordinates for the JTree. |
boolean |
hitHandleDetectionFromProcessMouse(MouseEvent e)
Entry point for hit handle detection called from processMouse. |
protected boolean |
isTreeHandleEventType(MouseEvent e)
Filter to find mouse events that are candidates for node expansion/ collapse. |
protected boolean |
shouldDisableMouseMotionOnTable(MouseEvent e)
Returns a boolean indicating whether mouseMotionEvents to the table should be disabled. |
| Methods inherited from class org.jdesktop.swingx.JXTreeTable.TreeTableHackerExt |
|---|
isHitDetectionFromProcessMouse |
| Methods inherited from class org.jdesktop.swingx.JXTreeTable.TreeTableHacker |
|---|
completeEditing, expandOrCollapseNode, expansionChanged, hitHandleDetectionFromEditCell, mightBeExpansionTrigger |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JXTreeTable.TreeTableHackerExt4()
| Method Detail |
|---|
protected boolean isTreeHandleEventType(MouseEvent e)
e - the currently dispatching mouse event
protected MouseEvent getEventForTreeRenderer(MouseEvent e)
e - the currently dispatching mouse event
public boolean hitHandleDetectionFromProcessMouse(MouseEvent e)
JXTreeTable.TreeTableHacker
hitHandleDetectionFromProcessMouse in class JXTreeTable.TreeTableHackerJXTreeTable.TreeTableHacker.isHitDetectionFromProcessMouse()protected boolean shouldDisableMouseMotionOnTable(MouseEvent e)
NOTE JW: this was extracted to from the calling method to fix Issue #1527-swingx (no tooltips on JXTreeTable after expand/collapse) and at the same time allow subclasses to further hack around ...
e - the mouseEvent that was routed to the renderer.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||