Top Inners Fields Constructors Methods
sun.tools.jconsole.inspector

public Class XMBeanInfo

extends JPanel
Class Inheritance
Annotations
@SuppressWarnings:serial
Imports
java.awt.BorderLayout, .Color, .Component, .GridLayout, java.util.*, javax.management.*, javax.swing.*, javax.swing.border.TitledBorder, javax.swing.event.*, javax.swing.table.*, sun.tools.jconsole.Messages

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private static class
private static class
private static class

Field Summary

Modifier and TypeField and Description
private final String[]
private JPanel
private JTable
private static TableCellEditor
private JPanel
private JTable
private static final Color
private final int
private static XMBeanInfo.MBeanInfoTableCellRenderer
private final int

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private void
public void
private void
public void
addMBeanInfo(XMBean mbean, MBeanInfo mbeanInfo)

public void
public void
private void
public void
public void
Inherited from javax.swing.JPanel:
getAccessibleContextgetUIgetUIClassIDparamStringsetUIupdateUI

Field Detail

columnNamesback to summary
private final String[] columnNames
descBorderPanelback to summary
private JPanel descBorderPanel
descTableback to summary
private JTable descTable
editorback to summary
private static TableCellEditor editor
infoBorderPanelback to summary
private JPanel infoBorderPanel
infoTableback to summary
private JTable infoTable
lightYellowback to summary
private static final Color lightYellow
NAME_COLUMNback to summary
private final int NAME_COLUMN
rendererback to summary
private static XMBeanInfo.MBeanInfoTableCellRenderer renderer
VALUE_COLUMNback to summary
private final int VALUE_COLUMN

Constructor Detail

XMBeanInfoback to summary
public XMBeanInfo()

Method Detail

addDescriptorback to summary
private void addDescriptor(Descriptor desc, String text)
addMBeanAttributeInfoback to summary
public void addMBeanAttributeInfo(MBeanAttributeInfo mbai)
addMBeanConstructorInfoback to summary
private void addMBeanConstructorInfo(MBeanConstructorInfo mbci, String text)
addMBeanInfoback to summary
public void addMBeanInfo(XMBean mbean, MBeanInfo mbeanInfo)
addMBeanNotificationInfoback to summary
public void addMBeanNotificationInfo(MBeanNotificationInfo mbni)
addMBeanOperationInfoback to summary
public void addMBeanOperationInfo(MBeanOperationInfo mboi)
addMBeanParameterInfoback to summary
private void addMBeanParameterInfo(MBeanParameterInfo mbpi, String text)
emptyDescTableback to summary
public void emptyDescTable()
emptyInfoTableback to summary
public void emptyInfoTable()
sun.tools.jconsole.inspector back to summary

private Class XMBeanInfo.MBeanInfoTableCellEditor

extends ReadOnlyTableCellEditor
Class Inheritance

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Component
getTableCellEditorComponent(JTable
the JTable that is asking the editor to edit; can be null
table
,
Object
the value of the cell to be edited; it is up to the specific editor to interpret and draw the value. For example, if value is the string "true", it could be rendered as a string or it could be rendered as a check box that is checked. null is a valid value
value
,
boolean
true if the cell is to be rendered with highlighting
isSelected
,
int
the row of the cell being edited
row
,
int
the column of the cell being edited
column
)

Overrides javax.swing.DefaultCellEditor.getTableCellEditorComponent.

Implements javax.swing.table.TableCellEditor.getTableCellEditorComponent.

Implements the TableCellEditor interface.

Constructor Detail

MBeanInfoTableCellEditorback to summary
public MBeanInfoTableCellEditor(JTextField tf)

Method Detail

getTableCellEditorComponentback to summary
public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)

Overrides javax.swing.DefaultCellEditor.getTableCellEditorComponent.

Implements javax.swing.table.TableCellEditor.getTableCellEditorComponent.

Doc from javax.swing.DefaultCellEditor.getTableCellEditorComponent.

Implements the TableCellEditor interface.

Parameters
table:JTable

Doc from javax.swing.table.TableCellEditor.getTableCellEditorComponent.

the JTable that is asking the editor to edit; can be null

value:Object

Doc from javax.swing.table.TableCellEditor.getTableCellEditorComponent.

the value of the cell to be edited; it is up to the specific editor to interpret and draw the value. For example, if value is the string "true", it could be rendered as a string or it could be rendered as a check box that is checked. null is a valid value

isSelected:boolean

Doc from javax.swing.table.TableCellEditor.getTableCellEditorComponent.

true if the cell is to be rendered with highlighting

row:int

Doc from javax.swing.table.TableCellEditor.getTableCellEditorComponent.

the row of the cell being edited

column:int

Doc from javax.swing.table.TableCellEditor.getTableCellEditorComponent.

the column of the cell being edited

Returns:Component

Doc from javax.swing.table.TableCellEditor.getTableCellEditorComponent.

the component for editing

Annotations
@Override
sun.tools.jconsole.inspector back to summary

private Class XMBeanInfo.MBeanInfoTableCellRenderer

extends DefaultTableCellRenderer
Class Inheritance

Field Summary

Inherited from javax.swing.table.DefaultTableCellRenderer:
noFocusBorder

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public Component
getTableCellRendererComponent(JTable
the JTable
table
,
Object
the value to assign to the cell at [row, column]
value
,
boolean
true if cell is selected
isSelected
,
boolean
true if cell has focus
hasFocus
,
int
the row of the cell to render
row
,
int
the column of the cell to render
column
)

Overrides javax.swing.table.DefaultTableCellRenderer.getTableCellRendererComponent.

Implements javax.swing.table.TableCellRenderer.getTableCellRendererComponent.

Returns the default table cell renderer.
Inherited from javax.swing.table.DefaultTableCellRenderer:
firePropertyChangefirePropertyChangeinvalidateisOpaquerepaintrepaintrepaintrevalidatesetBackgroundsetForegroundsetValueupdateUIvalidate

Constructor Detail

MBeanInfoTableCellRendererback to summary
private MBeanInfoTableCellRenderer()

Method Detail

getTableCellRendererComponentback to summary
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column)

Overrides javax.swing.table.DefaultTableCellRenderer.getTableCellRendererComponent.

Implements javax.swing.table.TableCellRenderer.getTableCellRendererComponent.

Doc from javax.swing.table.DefaultTableCellRenderer.getTableCellRendererComponent.

Returns the default table cell renderer.

During a printing operation, this method will be called with isSelected and hasFocus values of false to prevent selection and focus from appearing in the printed output. To do other customization based on whether or not the table is being printed, check the return value from javax.swing.JComponent#isPaintingForPrint().

Parameters
table:JTable

the JTable

value:Object

the value to assign to the cell at [row, column]

isSelected:boolean

true if cell is selected

hasFocus:boolean

true if cell has focus

row:int

the row of the cell to render

column:int

the column of the cell to render

Returns:Component

the default table cell renderer

Annotations
@Override
sun.tools.jconsole.inspector back to summary

private Class XMBeanInfo.ReadOnlyDefaultTableModel

extends DefaultTableModel
Class Inheritance

Field Summary

Inherited from javax.swing.table.DefaultTableModel:
columnIdentifiersdataVector

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public void
setValueAt(Object
the new value; this can be null
value
,
int
the row whose value is to be changed
row
,
int
the column whose value is to be changed
col
)

Overrides javax.swing.table.DefaultTableModel.setValueAt.

Implements javax.swing.table.TableModel.setValueAt.

Sets the object value for the cell at column and row.
Inherited from javax.swing.table.DefaultTableModel:
addColumnaddColumnaddColumnaddRowaddRowconvertToVectorconvertToVectorgetColumnCountgetColumnNamegetDataVectorgetRowCountgetValueAtinsertRowinsertRowisCellEditablemoveRownewDataAvailablenewRowsAddedremoveRowrowsRemovedsetColumnCountsetColumnIdentifierssetColumnIdentifierssetDataVectorsetDataVectorsetNumRowssetRowCount

Constructor Detail

ReadOnlyDefaultTableModelback to summary
private ReadOnlyDefaultTableModel()

Method Detail

setValueAtback to summary
public void setValueAt(Object value, int row, int col)

Overrides javax.swing.table.DefaultTableModel.setValueAt.

Implements javax.swing.table.TableModel.setValueAt.

Doc from javax.swing.table.DefaultTableModel.setValueAt.

Sets the object value for the cell at column and row. aValue is the new value. This method will generate a tableChanged notification.

Parameters
value:Object

the new value; this can be null

row:int

the row whose value is to be changed

col:int

the column whose value is to be changed

Annotations
@Override
sun.tools.jconsole.inspector back to summary

private Class XMBeanInfo.TableRowDivider

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private String

Constructor Summary

AccessConstructor and Description
public
TableRowDivider(String tableRowDividerText)

Method Summary

Modifier and TypeMethod and Description
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

tableRowDividerTextback to summary
private String tableRowDividerText

Constructor Detail

TableRowDividerback to summary
public TableRowDivider(String tableRowDividerText)

Method Detail

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object

Annotations
@Override