APIdia Launch Partner
Top Description Inners Fields Constructors Methods
sun.jvm.hotspot.ui

public Class ObjectListPanel

extends SAPanel
Class Inheritance
Imports
java.io.*, java.util.*, java.awt.*, java.awt.event.*, javax.swing.*, javax.swing.table.*, sun.jvm.hotspot.debugger.*, sun.jvm.hotspot.oops.*, sun.jvm.hotspot.runtime.*, sun.jvm.hotspot.utilities.*, sun.jvm.hotspot.ui.table.*, sun.jvm.hotspot.ui.tree.*

Lists objects along with their types

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private class

Field Summary

Modifier and TypeField and Description
private boolean
private ObjectListPanel.ObjectListTableModel
private List<Oop>
private boolean
private JButton
private ActionListener
private int
private static final String
private JTable
private HeapProgressThunk
Inherited from sun.jvm.hotspot.ui.SAPanel:
listeners

Constructor Summary

AccessConstructor and Description
public
ObjectListPanel(List<Oop> els, HeapProgressThunk thunk)

Takes a List<oop> in constructor, and an optional HeapProgressThunk used if computing liveness

Method Summary

Modifier and TypeMethod and Description
private void
private void
private void
private void
private void
Inherited from sun.jvm.hotspot.ui.SAPanel:
addPanelListenerremovePanelListenershowCodeViewershowInspectorshowInspectorshowJavaStackTraceshowThreadInfoshowThreadOopInspectorshowThreadStackMemory

Field Detail

checkedForArraysback to summary
private boolean checkedForArrays
dataModelback to summary
private ObjectListPanel.ObjectListTableModel dataModel
elementsback to summary
private List<Oop> elements
hasArraysback to summary
private boolean hasArrays
livenessButtonback to summary
private JButton livenessButton
livenessButtonListenerback to summary
private ActionListener livenessButtonListener
numColumnsback to summary
private int numColumns
showLivenessTextback to summary
private static final String showLivenessText
tableback to summary
private JTable table
thunkback to summary
private HeapProgressThunk thunk

Constructor Detail

ObjectListPanelback to summary
public ObjectListPanel(List<Oop> els, HeapProgressThunk thunk)

Takes a List in constructor, and an optional HeapProgressThunk used if computing liveness

Method Detail

checkForArraysback to summary
private void checkForArrays()
computeNumColumnsback to summary
private void computeNumColumns()
fireComputeLivenessback to summary
private void fireComputeLiveness()
fireShowInspectorback to summary
private void fireShowInspector()
fireShowLivenessback to summary
private void fireShowLiveness()
sun.jvm.hotspot.ui back to summary

private Class ObjectListPanel.AddressWrapper

extends Object
implements Comparable<ObjectListPanel.AddressWrapper>
Class Inheritance
All Implemented Interfaces
java.lang.Comparable

Field Summary

Modifier and TypeField and Description
private Address

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public int
compareTo(ObjectListPanel.AddressWrapper wrapper)

Implements java.lang.Comparable.compareTo.

Compares this object with the specified object for order.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

addressback to summary
private Address address

Constructor Detail

AddressWrapperback to summary
private AddressWrapper(Address address)

Method Detail

compareToback to summary
public int compareTo(ObjectListPanel.AddressWrapper wrapper)

Implements java.lang.Comparable.compareTo.

Doc from java.lang.Comparable.compareTo.

Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

The implementor must ensure signum(x.compareTo(y)) == -signum(y.compareTo(x)) for all x and y. (This implies that x.compareTo(y) must throw an exception if and only if y.compareTo(x) throws an exception.)

The implementor must also ensure that the relation is transitive: (x.compareTo(y) > 0 && y.compareTo(z) > 0) implies x.compareTo(z) > 0.

Finally, the implementor must ensure that x.compareTo(y)==0 implies that signum(x.compareTo(z)) == signum(y.compareTo(z)), for all z.

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

sun.jvm.hotspot.ui back to summary

private Class ObjectListPanel.ObjectListTableModel

extends SortableTableModel<Oop>
Class Inheritance

Nested and Inner Type Summary

Modifier and TypeClass and Description
private class

Field Summary

Inherited from sun.jvm.hotspot.ui.table.SortableTableModel:
elements

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public int
getColumnCount()

Implements javax.swing.table.TableModel.getColumnCount.

Returns the number of columns in the model.

public String
getColumnName(int col)

Overrides javax.swing.table.AbstractTableModel.getColumnName.

Implements javax.swing.table.TableModel.getColumnName.

Returns a default name for the column using spreadsheet conventions: A, B, C, ...

public int
getRowCount()

Implements javax.swing.table.TableModel.getRowCount.

Returns the number of rows in the model.

public Object
getValueAt(int row, int col)

Implements javax.swing.table.TableModel.getValueAt.

Returns the value for the cell at columnIndex and rowIndex.

public Comparable<?>
getValueForColumn(Oop oop, int col)

Inherited from sun.jvm.hotspot.ui.table.SortableTableModel:
getColumnisAscendingsetComparatorsortByColumn

Constructor Detail

ObjectListTableModelback to summary
public ObjectListTableModel()

Method Detail

getColumnCountback to summary
public int getColumnCount()

Implements javax.swing.table.TableModel.getColumnCount.

Doc from javax.swing.table.TableModel.getColumnCount.

Returns the number of columns in the model. A JTable uses this method to determine how many columns it should create and display by default.

getColumnNameback to summary
public String getColumnName(int col)

Overrides javax.swing.table.AbstractTableModel.getColumnName.

Implements javax.swing.table.TableModel.getColumnName.

Doc from javax.swing.table.AbstractTableModel.getColumnName.

Returns a default name for the column using spreadsheet conventions: A, B, C, ... Z, AA, AB, etc. If column cannot be found, returns an empty string.

getRowCountback to summary
public int getRowCount()

Implements javax.swing.table.TableModel.getRowCount.

Doc from javax.swing.table.TableModel.getRowCount.

Returns the number of rows in the model. A JTable uses this method to determine how many rows it should display. This method should be quick, as it is called frequently during rendering.

getValueAtback to summary
public Object getValueAt(int row, int col)

Implements javax.swing.table.TableModel.getValueAt.

Doc from javax.swing.table.TableModel.getValueAt.

Returns the value for the cell at columnIndex and rowIndex.

getValueForColumnback to summary
public Comparable<?> getValueForColumn(Oop oop, int col)
sun.jvm.hotspot.ui back to summary

private Class ObjectListPanel.ObjectListTableModel.ObjectListComparator

extends TableModelComparator
Class Inheritance

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Comparable<?>
getValueForColumn(Object
Object that was passed for Comparator
obj
,
int
the column to retrieve
column
)

Implements abstract sun.jvm.hotspot.ui.table.TableModelComparator.getValueForColumn.

Returns the value for the comparing object for the column.

Inherited from sun.jvm.hotspot.ui.table.TableModelComparator:
addColumncomparegetColumnisAscendingsetAscending

Constructor Detail

ObjectListComparatorback to summary
public ObjectListComparator(ObjectListPanel.ObjectListTableModel model)

Method Detail

getValueForColumnback to summary
public Comparable<?> getValueForColumn(Object obj, int column)

Implements abstract sun.jvm.hotspot.ui.table.TableModelComparator.getValueForColumn.

Returns the value for the comparing object for the column.

Parameters
obj:Object

Object that was passed for Comparator

column:int

the column to retrieve