com.metamatrix.toolbox.ui.widget.property
Class PropertiedObjectTableCellRenderer

java.lang.Object
  extended by com.metamatrix.toolbox.ui.widget.table.DefaultTableCellRenderer
      extended by com.metamatrix.toolbox.ui.widget.property.PropertiedObjectTableCellRenderer
All Implemented Interfaces:
javax.swing.SwingConstants, javax.swing.table.TableCellRenderer

public class PropertiedObjectTableCellRenderer
extends DefaultTableCellRenderer

Since:
2.1
Version:
2.1
Author:
John P. A. Verhaeg

Nested Class Summary
 
Nested classes/interfaces inherited from class com.metamatrix.toolbox.ui.widget.table.DefaultTableCellRenderer
DefaultTableCellRenderer.DefaultBooleanComponent, DefaultTableCellRenderer.DefaultTextComponent
 
Field Summary
 
Fields inherited from class com.metamatrix.toolbox.ui.widget.table.DefaultTableCellRenderer
checkBoxBorder, noFocusBorder
 
Fields inherited from interface javax.swing.SwingConstants
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
 
Constructor Summary
PropertiedObjectTableCellRenderer()
           
 
Method Summary
 java.awt.Component getTableCellRendererComponent(javax.swing.JTable table, java.lang.Object value, boolean isSelected, boolean hasFocus, int rowIndex, int columnIndex)
          Returns the appropriate Component to render the value in the specified table at the specified row and column indexes.
 
Methods inherited from class com.metamatrix.toolbox.ui.widget.table.DefaultTableCellRenderer
initializeComponent, setBooleanComponent, setTextComponent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertiedObjectTableCellRenderer

public PropertiedObjectTableCellRenderer()
Method Detail

getTableCellRendererComponent

public java.awt.Component getTableCellRendererComponent(javax.swing.JTable table,
                                                        java.lang.Object value,
                                                        boolean isSelected,
                                                        boolean hasFocus,
                                                        int rowIndex,
                                                        int columnIndex)
Description copied from class: DefaultTableCellRenderer
Returns the appropriate Component to render the value in the specified table at the specified row and column indexes.

Specified by:
getTableCellRendererComponent in interface javax.swing.table.TableCellRenderer
Overrides:
getTableCellRendererComponent in class DefaultTableCellRenderer
Parameters:
table - The table containing the value
value - The value
isSelected - True if the cell containing the value is currently selected
hasFocus - True if the cell containing the value currently has focus
rowIndex - The row index of the cell containing the value
columnIndex - The column index of the cell containing the value
Returns:
A CheckBox for boolean values, a LabelWidget with right-justified text for numeric values, and a LabelWidget with left-justified text for all other values.
Since:
2.1


Copyright © 2009. All Rights Reserved.