public class

TableCellRenderer4AssociationList

extends ListTableCellRenderer
java.lang.Object
   ↳ java.awt.Component
     ↳ java.awt.Container
       ↳ javax.swing.JComponent
         ↳ javax.swing.JList
           ↳ org.mbari.swing.table.ListTableCellRenderer
             ↳ vars.annotation.ui.table.TableCellRenderer4AssociationList

Class Overview

Renderer used to display a list of Associations in the GUI. Requires that the table be an instance of JTableEx. This class sets the row height of the table row, then passes the rendering duties on to AssociationListCellRenderer

UML

  [AssociationListCellRenderer]
          ^1
          |
          |
  [TableCellRenderer4AssociationList]---[JTableEx]
 

License

The Monterey Bay Aquarium Research Institute (MBARI) provides this documentation and code "as is", with no warranty, express or implied, of its quality or consistency. It is provided without support and without obligation on the part of MBARI to assist in its use, correction, modification, or enhancement. This information should not be published or distributed to third parties without specific written permission from MBARI.

Copyright 2003 MBARI. MBARI Proprietary Information. All rights reserved.

Summary

[Expand]
Inherited Constants
From class javax.swing.JList
From class javax.swing.JComponent
From class java.awt.Component
From interface java.awt.image.ImageObserver
[Expand]
Inherited Fields
From class org.mbari.swing.table.ListTableCellRenderer
From class javax.swing.JComponent
Public Constructors
TableCellRenderer4AssociationList()
Constructor for the TableCellRenderer4AssociationList object
Public Methods
Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column)
Returns the table cell renderer for AssociationLists.
Protected Methods
void setValue(Object value)
Sets the string for the cell being rendered to value.
[Expand]
Inherited Methods
From class org.mbari.swing.table.ListTableCellRenderer
From class javax.swing.JList
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.table.TableCellRenderer

Public Constructors

public TableCellRenderer4AssociationList ()

Constructor for the TableCellRenderer4AssociationList object

Public Methods

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

Returns the table cell renderer for AssociationLists. Requires that the JTable be an instance of JTableEx so that th row height for an individual row can be changed.

Parameters
table the JTable
value the value to assign to the cell at [row, column] An AssociationList
isSelected true if cell is selected
hasFocus Description of the Parameter
row the row of the cell to render
column the column of the cell to render
Returns
  • the default table cell renderer

Protected Methods

protected void setValue (Object value)

Sets the string for the cell being rendered to value. Overrides the super class to avoid Problems with shared renderers.

Parameters
value the List for this cell; if value is null it sets the value to an empty string
See Also