public abstract class

XTable

extends JTable
java.lang.Object
   ↳ java.awt.Component
     ↳ java.awt.Container
       ↳ javax.swing.JComponent
         ↳ javax.swing.JTable
           ↳ sun.tools.jconsole.inspector.XTable
Known Direct Subclasses

Summary

[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
XTable()
Public Methods
int convertRowToIndex(int row)
void emptyTable()
TableCellRenderer getCellRenderer(int row, int column)
This method sets read write rows to be blue, and other rows to be their default rendered colour.
abstract String getClassName(int row)
int getSelectedIndex()
This returns the select index as the table was at initialization
String getToolTip(int row, int column)
abstract Object getValue(int row)
abstract String getValueName(int row)
abstract boolean isAttributeViewable(int row, int col)
boolean isCellDroppable(int row, int col)
boolean isCellEditable(int row, int col)
Returns true if the cell at row and column is editable.
abstract boolean isCellError(int row, int col)
abstract boolean isColumnEditable(int column)
boolean isReadWrite(int row)
abstract boolean isReadable(int row)
abstract boolean isTableEditable()
abstract boolean isWritable(int row)
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.
abstract void setTableValue(Object value, int row)
[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.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

Public Constructors

public XTable ()

Public Methods

public int convertRowToIndex (int row)

public void emptyTable ()

public TableCellRenderer getCellRenderer (int row, int column)

This method sets read write rows to be blue, and other rows to be their default rendered colour.

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 abstract String getClassName (int row)

public int getSelectedIndex ()

This returns the select index as the table was at initialization

public String getToolTip (int row, int column)

public abstract Object getValue (int row)

public abstract String getValueName (int row)

public abstract boolean isAttributeViewable (int row, int col)

public boolean isCellDroppable (int row, int col)

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 abstract boolean isCellError (int row, int col)

public abstract boolean isColumnEditable (int column)

public boolean isReadWrite (int row)

public abstract boolean isReadable (int row)

public abstract boolean isTableEditable ()

public abstract boolean isWritable (int row)

public 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 abstract void setTableValue (Object value, int row)