Package org.jppf.ui.monitoring.node
Class AbstractTopologyMouseListener
java.lang.Object
java.awt.event.MouseAdapter
org.jppf.ui.monitoring.node.AbstractTopologyMouseListener
- All Implemented Interfaces:
MouseListener,MouseMotionListener,MouseWheelListener,EventListener
- Direct Known Subclasses:
JVMHealthTreeTableMouseListener,NodeTreeTableMouseListener
Mouse listener for the node data panel.
Processes right-click events to display popup menus.
- Author:
- Laurent Cohen
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected JTreeTableActionHandlerThe object that handles toolbar and menu actions.protected static final StringPath to the cancel icon resource.protected org.jppf.client.monitoring.topology.AbstractTopologyComponent[]Array of current corresponding jmx connections.protected static final org.jppf.client.monitoring.topology.AbstractTopologyComponent[]Constant for an emptyTopologyDataarray.protected static final StringPath to the restart icon resource. -
Constructor Summary
ConstructorsConstructorDescriptionAbstractTopologyMouseListener(JTreeTableActionHandler actionHandler) Initialize this mouse listener. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddItem(JPopupMenu menu, String actionName, Point location) Create a menu item and add it to the specified menu.protected abstract JPopupMenucreatePopupMenu(MouseEvent event) Create the popup menu.voidmousePressed(MouseEvent event) Processes right-click events to display popup menus.Methods inherited from class java.awt.event.MouseAdapter
mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mouseReleased, mouseWheelMoved
-
Field Details
-
EMPTY_TOPOLOGY_DATA_ARRAY
protected static final org.jppf.client.monitoring.topology.AbstractTopologyComponent[] EMPTY_TOPOLOGY_DATA_ARRAYConstant for an emptyTopologyDataarray. -
CANCEL_ICON
Path to the cancel icon resource.- See Also:
-
RESTART_ICON
Path to the restart icon resource.- See Also:
-
data
protected org.jppf.client.monitoring.topology.AbstractTopologyComponent[] dataArray of current corresponding jmx connections. -
actionHandler
The object that handles toolbar and menu actions.
-
-
Constructor Details
-
AbstractTopologyMouseListener
Initialize this mouse listener.- Parameters:
actionHandler- the object that handles toolbar and menu actions.
-
-
Method Details
-
mousePressed
Processes right-click events to display popup menus.- Specified by:
mousePressedin interfaceMouseListener- Overrides:
mousePressedin classMouseAdapter- Parameters:
event- the mouse event to process.- See Also:
-
createPopupMenu
Create the popup menu.- Parameters:
event- the mouse event to process.- Returns:
- a
JPopupMenuinstance.
-
addItem
Create a menu item and add it to the specified menu.- Parameters:
menu- the popoup menu to add the item to.actionName- the name of action associated with the new item.location- the location to use for any window create by the action.
-