UniVista.beans
Class ArrayVariableDisplay.VariableCellRenderer

java.lang.Object
  |
  +--UniVista.beans.ArrayVariableDisplay.VariableCellRenderer
All Implemented Interfaces:
javax.swing.table.TableCellRenderer
Enclosing class:
ArrayVariableDisplay

protected class ArrayVariableDisplay.VariableCellRenderer
extends java.lang.Object
implements javax.swing.table.TableCellRenderer

the cell renderer for the table. It is mostly a wrapper for the VariableUI interface.


Constructor Summary
protected ArrayVariableDisplay.VariableCellRenderer()
           
 
Method Summary
 java.awt.Component getTableCellRendererComponent(javax.swing.JTable table, java.lang.Object value, boolean isSelected, boolean hasFocus, int row, int column)
          return the Component used for drawing
 boolean isVariableObject(java.lang.Object obj)
          determine if a passed object is a Variable object through comparing its class names.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArrayVariableDisplay.VariableCellRenderer

protected ArrayVariableDisplay.VariableCellRenderer()
Method Detail

getTableCellRendererComponent

public java.awt.Component getTableCellRendererComponent(javax.swing.JTable table,
                                                        java.lang.Object value,
                                                        boolean isSelected,
                                                        boolean hasFocus,
                                                        int row,
                                                        int column)
return the Component used for drawing
Specified by:
getTableCellRendererComponent in interface javax.swing.table.TableCellRenderer

isVariableObject

public boolean isVariableObject(java.lang.Object obj)
determine if a passed object is a Variable object through comparing its class names. Because all variable types are subclasses of Variable, we can search up through the inheritence chain.