You are currently viewing a snapshot of www.mozilla.org taken on April 21, 2008. Most of this content is highly out of date (some pages haven't been updated since the project began in 1998) and exists for historical purposes only. If there are any pages on this archive site that you think should be added back to www.mozilla.org, please file a bug.



All Packages  This Package  Class Hierarchy  Class Search  Index

Class grendel.widgets.DefaultCellRenderer

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----com.sun.java.swing.JComponent
                           |
                           +----grendel.widgets.DefaultCellRenderer

The default TreeTable cell renderer. Handles text and not much else.

See Also: TreeTable, CellRenderer


public class  DefaultCellRenderer
     extends com.sun.java.swing.JComponent
     implements grendel.widgets.CellRenderer
{
          // Fields 3
     protected Object fData;
     protected Object fObject;
     protected boolean fSelected;

          // Constructors 1
     public DefaultCellRenderer();

          // Methods 6
     public Component getComponent();
     public Dimension getMaximumSize();
     public Dimension getMinimumSize();
     public Dimension getPreferredSize();
     public void paint(Graphics);
     public void setValue(Object, Object, boolean);
}



Fields


fObject

   protected Object fObject


fData

   protected Object fData


fSelected

   protected boolean fSelected



Constructors


DefaultCellRenderer

   public DefaultCellRenderer() 



Methods


setValue

   public void setValue(Object aObject, 
                        Object aData, 
                        boolean aSelected) 
Implements:
setValue in interface CellRenderer


getComponent

   public Component getComponent() 
Implements:
getComponent in interface CellRenderer


getPreferredSize

   public Dimension getPreferredSize() 
Overrides:
getPreferredSize in class JComponent


getMinimumSize

   public Dimension getMinimumSize() 
Overrides:
getMinimumSize in class JComponent


getMaximumSize

   public Dimension getMaximumSize() 
Overrides:
getMaximumSize in class JComponent


paint

   public void paint(Graphics g) 
Overrides:
paint in class JComponent


All Packages  This Package  Class Hierarchy  Class Search  Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.4