Top Fields Constructors Methods
sun.tools.jconsole.inspector

public Class XSheet

extends JPanel
implements ActionListener, NotificationListener
Class Inheritance
All Implemented Interfaces
javax.management.NotificationListener, java.util.EventListener, java.awt.event.ActionListener
Annotations
@SuppressWarnings:serial
Imports
java.awt.BorderLayout, .Color, .Component, .Dimension, java.awt.event.ActionEvent, .ActionListener, java.io.IOException, javax.management.IntrospectionException, .NotificationListener, .MBeanInfo, .InstanceNotFoundException, .ReflectionException, .MBeanAttributeInfo, .MBeanOperationInfo, .MBeanNotificationInfo, .Notification, javax.swing.BorderFactory, .JButton, .JOptionPane, .JPanel, .JScrollPane, .JTextArea, .SwingWorker, javax.swing.border.LineBorder, javax.swing.tree.DefaultMutableTreeNode, .DefaultTreeModel, sun.tools.jconsole.*, sun.tools.jconsole.inspector.XNodeInfo.Type

Field Summary

Modifier and TypeField and Description
private JButton
private volatile DefaultMutableTreeNode
private JPanel
private volatile XMBean
private XMBeanAttributes
private XMBeanInfo
private XMBeanNotifications
private XMBeanOperations
private MBeansTab
private JButton
private JPanel
private JButton
private JButton

Constructor Summary

AccessConstructor and Description
public
XSheet(MBeansTab mbeansTab)

Method Summary

Modifier and TypeMethod and Description
public void
actionPerformed(ActionEvent
the event to be processed
e
)

Implements java.awt.event.ActionListener.actionPerformed.

Action listener: handles actions in panel buttons
private void
private void
clearCurrentNotifications()

Clear button action.

private void
clearNotifications()

Update notification node label in MBean tree: "Notifications".

private void
clearNotifications0()

Update notification node label in MBean tree: "Notifications[0]".

private void
private void
private void
private void
private void
private void
public synchronized void
public void
public void
handleNotification(Notification
The notification.
e
,
Object
An opaque object which helps the listener to associate information regarding the MBean emitter. This object is passed to the addNotificationListener call and resent, without modification, to the listener.
handback
)

Implements javax.management.NotificationListener.handleNotification.

Notification listener: handles asynchronous reception of MBean operation results and MBean notifications.
public boolean
private boolean
private void
refreshAttributes()

Refresh button action.

private void
registerListener()

Subscribe button action.

private void
private void
showErrorDialog(Object message, String title)

private void
unregisterListener()

Unsubscribe button action.

private void
private void
updateNotificationsNodeLabel(DefaultMutableTreeNode node, String label)

Update the label of the supplied MBean tree node.

private void
updateReceivedNotifications(DefaultMutableTreeNode emitter, long received, boolean bold)

Update notification node label in MBean tree: "Notifications[received]".

Inherited from javax.swing.JPanel:
getAccessibleContextgetUIgetUIClassIDparamStringsetUIupdateUI

Field Detail

clearButtonback to summary
private JButton clearButton
currentNodeback to summary
private volatile DefaultMutableTreeNode currentNode
mainPanelback to summary
private JPanel mainPanel
mbeanback to summary
private volatile XMBean mbean
mbeanAttributesback to summary
private XMBeanAttributes mbeanAttributes
mbeanInfoback to summary
private XMBeanInfo mbeanInfo
mbeanNotificationsback to summary
private XMBeanNotifications mbeanNotifications
mbeanOperationsback to summary
private XMBeanOperations mbeanOperations
mbeansTabback to summary
private MBeansTab mbeansTab
refreshButtonback to summary
private JButton refreshButton
southPanelback to summary
private JPanel southPanel
subscribeButtonback to summary
private JButton subscribeButton
unsubscribeButtonback to summary
private JButton unsubscribeButton

Constructor Detail

XSheetback to summary
public XSheet(MBeansTab mbeansTab)

Method Detail

actionPerformedback to summary
public void actionPerformed(ActionEvent e)

Implements java.awt.event.ActionListener.actionPerformed.

Action listener: handles actions in panel buttons

Parameters
e:ActionEvent

Doc from java.awt.event.ActionListener.actionPerformed.

the event to be processed

clearback to summary
private void clear()
clearCurrentNotificationsback to summary
private void clearCurrentNotifications()

Clear button action.

clearNotificationsback to summary
private void clearNotifications()

Update notification node label in MBean tree: "Notifications".

clearNotifications0back to summary
private void clearNotifications0()

Update notification node label in MBean tree: "Notifications[0]".

displayEmptyNodeback to summary
private void displayEmptyNode()
displayMBeanAttributesNodeback to summary
private void displayMBeanAttributesNode(final DefaultMutableTreeNode node)
displayMBeanNodeback to summary
private void displayMBeanNode(final DefaultMutableTreeNode node)
displayMBeanNotificationsNodeback to summary
private void displayMBeanNotificationsNode(DefaultMutableTreeNode node)
displayMBeanOperationsNodeback to summary
private void displayMBeanOperationsNode(final DefaultMutableTreeNode node)
displayMetadataNodeback to summary
private void displayMetadataNode(final DefaultMutableTreeNode node)
displayNodeback to summary
public synchronized void displayNode(DefaultMutableTreeNode node)
disposeback to summary
public void dispose()
handleNotificationback to summary
public void handleNotification(Notification e, Object handback)

Implements javax.management.NotificationListener.handleNotification.

Notification listener: handles asynchronous reception of MBean operation results and MBean notifications.

Parameters
e:Notification

Doc from javax.management.NotificationListener.handleNotification.

The notification.

handback:Object

Doc from javax.management.NotificationListener.handleNotification.

An opaque object which helps the listener to associate information regarding the MBean emitter. This object is passed to the addNotificationListener call and resent, without modification, to the listener.

isMBeanNodeback to summary
public boolean isMBeanNode(DefaultMutableTreeNode node)
isSelectedNodeback to summary
private boolean isSelectedNode(DefaultMutableTreeNode n, DefaultMutableTreeNode cn)
refreshAttributesback to summary
private void refreshAttributes()

Refresh button action.

registerListenerback to summary
private void registerListener()

Subscribe button action.

setupScreenback to summary
private void setupScreen()
showErrorDialogback to summary
private void showErrorDialog(Object message, String title)
unregisterListenerback to summary
private void unregisterListener()

Unsubscribe button action.

updateNotificationsback to summary
private void updateNotifications()
updateNotificationsNodeLabelback to summary
private void updateNotificationsNodeLabel(DefaultMutableTreeNode node, String label)

Update the label of the supplied MBean tree node.

updateReceivedNotificationsback to summary
private void updateReceivedNotifications(DefaultMutableTreeNode emitter, long received, boolean bold)

Update notification node label in MBean tree: "Notifications[received]".