public class

XMBeanNotifications

extends JTable
implements NotificationListener
java.lang.Object
   ↳ java.awt.Component
     ↳ java.awt.Container
       ↳ javax.swing.JComponent
         ↳ javax.swing.JTable
           ↳ sun.tools.jconsole.inspector.XMBeanNotifications

Summary

Constants
String NOTIFICATION_RECEIVED_EVENT
[Expand]
Inherited Constants
From class javax.swing.JTable
From class javax.swing.JComponent
From class java.awt.Component
From interface java.awt.image.ImageObserver
[Expand]
Inherited Fields
From class javax.swing.JTable
From class javax.swing.JComponent
Public Constructors
XMBeanNotifications()
Public Methods
void addNotificationsListener(NotificationListener nl)
void cancelCellEditing()
synchronized boolean clearCurrentNotifications()
synchronized void disableNotifications()
synchronized void emptyTable()
synchronized TableCellRenderer getCellRenderer(int row, int column)
Returns an appropriate renderer for the cell specified by this row and column.
long getReceivedNotifications(XMBean mbean)
synchronized void handleNotification(Notification notif, Object handback)
Invoked when a JMX notification occurs.
boolean isCellEditable(int row, int col)
Returns true if the cell at row and column is editable.
synchronized boolean isListenerRegistered(XMBean mbean)
boolean isTableEditable()
synchronized void loadNotifications(XMBean mbean)
synchronized Component prepareRenderer(TableCellRenderer renderer, int row, int column)
Prepares the renderer by querying the data model for the value and selection state of the cell at row, column.
synchronized void registerListener(DefaultMutableTreeNode node)
void removeNotificationsListener(NotificationListener nl)
void setValueAt(Object value, int row, int column)
Sets the value for the cell in the table model at row and column.
void stopCellEditing()
synchronized boolean unregisterListener(DefaultMutableTreeNode node)
[Expand]
Inherited Methods
From class javax.swing.JTable
From class javax.swing.JComponent
From class java.awt.Container
From class java.awt.Component
From class java.lang.Object
From interface java.awt.MenuContainer
From interface java.awt.image.ImageObserver
From interface javax.accessibility.Accessible
From interface javax.management.NotificationListener
From interface javax.swing.Scrollable
From interface javax.swing.event.CellEditorListener
From interface javax.swing.event.ListSelectionListener
From interface javax.swing.event.RowSorterListener
From interface javax.swing.event.TableColumnModelListener
From interface javax.swing.event.TableModelListener

Constants

public static final String NOTIFICATION_RECEIVED_EVENT

Constant Value: "jconsole.xnotification.received"

Public Constructors

public XMBeanNotifications ()

Public Methods

public void addNotificationsListener (NotificationListener nl)

public void cancelCellEditing ()

public synchronized boolean clearCurrentNotifications ()

public synchronized void disableNotifications ()

public synchronized void emptyTable ()

public synchronized TableCellRenderer getCellRenderer (int row, int column)

Returns an appropriate renderer for the cell specified by this row and column. If the TableColumn for this column has a non-null renderer, returns that. If not, finds the class of the data in this column (using getColumnClass) and returns the default renderer for this type of data.

Note: Throughout the table package, the internal implementations always use this method to provide renderers so that this default behavior can be safely overridden by a subclass.

Parameters
row the row of the cell to render, where 0 is the first row
column the column of the cell to render, where 0 is the first column
Returns
  • the assigned renderer; if null returns the default renderer for this type of object

public long getReceivedNotifications (XMBean mbean)

public synchronized void handleNotification (Notification notif, Object handback)

Invoked when a JMX notification occurs. The implementation of this method should return as soon as possible, to avoid blocking its notification broadcaster.

Parameters
notif The notification.
handback An opaque object which helps the listener to associate information regarding the MBean emitter. This object is passed to the MBean during the addListener call and resent, without modification, to the listener. The MBean object should not use or modify the object.

public boolean isCellEditable (int row, int col)

Returns true if the cell at row and column is editable. Otherwise, invoking setValueAt on the cell will have no effect.

Note: The column is specified in the table view's display order, and not in the TableModel's column order. This is an important distinction because as the user rearranges the columns in the table, the column at a given index in the view will change. Meanwhile the user's actions never affect the model's column ordering.

Parameters
row the row whose value is to be queried
col the column whose value is to be queried
Returns
  • true if the cell is editable

public synchronized boolean isListenerRegistered (XMBean mbean)

public boolean isTableEditable ()

public synchronized void loadNotifications (XMBean mbean)

public synchronized Component prepareRenderer (TableCellRenderer renderer, int row, int column)

Prepares the renderer by querying the data model for the value and selection state of the cell at row, column. Returns the component (may be a Component or a JComponent) under the event location.

During a printing operation, this method will configure the renderer without indicating selection or focus, to prevent them from appearing in the printed output. To do other customizations based on whether or not the table is being printed, you can check the value of isPaintingForPrint(), either here or within custom renderers.

Note: Throughout the table package, the internal implementations always use this method to prepare renderers so that this default behavior can be safely overridden by a subclass.

Parameters
renderer the TableCellRenderer to prepare
row the row of the cell to render, where 0 is the first row
column the column of the cell to render, where 0 is the first column
Returns
  • the Component under the event location

public synchronized void registerListener (DefaultMutableTreeNode node)

public void removeNotificationsListener (NotificationListener nl)

public void setValueAt (Object value, int row, int column)

Sets the value for the cell in the table model at row and column.

Note: The column is specified in the table view's display order, and not in the TableModel's column order. This is an important distinction because as the user rearranges the columns in the table, the column at a given index in the view will change. Meanwhile the user's actions never affect the model's column ordering. aValue is the new value.

Parameters
value the new value
row the row of the cell to be changed
column the column of the cell to be changed

public void stopCellEditing ()

public synchronized boolean unregisterListener (DefaultMutableTreeNode node)