Class FVRightClick
java.lang.Object
java.awt.event.MouseAdapter
com.jackmeng.halcyoninae.cosmos.components.FVRightClick
- All Implemented Interfaces:
MouseListener,MouseMotionListener,MouseWheelListener,EventListener
This class handles the right click event for any JTree instance.
This right click menu currently allows the user to hide a node from view.
- Since:
- 3.0
- Author:
- Jack Meng
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDEFUNCT ConstructorFVRightClick(TabTree tree) FVRightClick(TabTree tree, String hideItemString, FVRightClick.RightClickHideItemListener hideTask) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidprivate voidpopup(MouseEvent e) A function that displays the right click menu.Methods inherited from class java.awt.event.MouseAdapter
mouseDragged, mouseEntered, mouseExited, mouseMoved, mouseWheelMoved
-
Field Details
-
tree
-
lastJTree
-
hideString
-
hideTask
-
-
Constructor Details
-
FVRightClick
public FVRightClick(TabTree tree, String hideItemString, FVRightClick.RightClickHideItemListener hideTask) -
FVRightClick
-
FVRightClick
public FVRightClick()DEFUNCT Constructor
-
-
Method Details
-
popup
A function that displays the right click menu.- Parameters:
e- The MouseEvent that was triggered.
-
mousePressed
- Specified by:
mousePressedin interfaceMouseListener- Overrides:
mousePressedin classMouseAdapter- Parameters:
e-
-
mouseReleased
- Specified by:
mouseReleasedin interfaceMouseListener- Overrides:
mouseReleasedin classMouseAdapter- Parameters:
e-
-
mouseClicked
- Specified by:
mouseClickedin interfaceMouseListener- Overrides:
mouseClickedin classMouseAdapter- Parameters:
e-
-