All Packages  Class Hierarchy  This Package  Previous  Next  Index  

Class java.awt.swing.basic.BasicTableUI

java.lang.Object
    |
    +----java.awt.swing.plaf.ComponentUI
            |
            +----java.awt.swing.plaf.TableUI
                    |
                    +----java.awt.swing.basic.BasicTableUI

public class BasicTableUI
extends TableUI
implements MouseListener, MouseMotionListener, FocusListener, Serializable
BasicTableUI implementation


Variable Index

 o controlKeyDown
 o dispatchComponent
Component that will recieve mouse events while editing.
 o firstCellIndex
 o hasPress
 o hitColumn
 o hitColumnIndex
 o hitRowIndex
 o isSelecting
 o selectedBackgroundColor

Constructor Index

 o BasicTableUI()

Method Index

 o createUI(JComponent)
 o drawGridInClipRect(Rectangle, Graphics)
Draws the grid lines within aRect, using the grid color set with setGridColor.
 o drawRowInClipRect(int, Rectangle, Graphics)
Draws the cells for the row at rowIndex in the columns that intersect clipRect.
 o focusGained(FocusEvent)
 o focusLost(FocusEvent)
 o getMaximumSize(JComponent)
 o getMinimumSize(JComponent)
 o getPreferredSize(JComponent)
 o installUI(JComponent)
 o mouseClicked(MouseEvent)
 o mouseDragged(MouseEvent)
 o mouseEntered(MouseEvent)
 o mouseExited(MouseEvent)
 o mouseMoved(MouseEvent)
 o mousePressed(MouseEvent)
 o mouseReleased(MouseEvent)
 o paint(Graphics, JComponent)
 o prepareRenderer(TableCellRenderer, JTable, TableColumn, int)
 o uninstallUI(JComponent)
 o updateSelection(MouseEvent)

Variables

 o selectedBackgroundColor
protected static final Color selectedBackgroundColor
 o hasPress
protected transient boolean hasPress
 o hitColumnIndex
protected transient int hitColumnIndex
 o hitRowIndex
protected transient int hitRowIndex
 o hitColumn
protected transient TableColumn hitColumn
 o controlKeyDown
protected transient boolean controlKeyDown
 o isSelecting
protected transient boolean isSelecting
 o firstCellIndex
protected transient int firstCellIndex
 o dispatchComponent
protected transient Component dispatchComponent
Component that will recieve mouse events while editing. Not necessarily the editorComponent.

Constructors

 o BasicTableUI
public BasicTableUI()

Methods

 o createUI
public static ComponentUI createUI(JComponent c)
 o installUI
public void installUI(JComponent c)
Overrides:
installUI in class ComponentUI
 o uninstallUI
public void uninstallUI(JComponent c)
Overrides:
uninstallUI in class ComponentUI
 o focusGained
public void focusGained(FocusEvent e)
 o focusLost
public void focusLost(FocusEvent e)
 o mouseMoved
public void mouseMoved(MouseEvent e)
 o mouseClicked
public void mouseClicked(MouseEvent e)
 o mouseEntered
public void mouseEntered(MouseEvent e)
 o mouseExited
public void mouseExited(MouseEvent e)
 o mousePressed
public void mousePressed(MouseEvent e)
 o mouseDragged
public void mouseDragged(MouseEvent e)
 o mouseReleased
public void mouseReleased(MouseEvent e)
 o paint
public void paint(Graphics g,
                  JComponent c)
Overrides:
paint in class ComponentUI
 o getMinimumSize
public Dimension getMinimumSize(JComponent c)
Overrides:
getMinimumSize in class ComponentUI
 o getPreferredSize
public Dimension getPreferredSize(JComponent c)
Overrides:
getPreferredSize in class ComponentUI
 o getMaximumSize
public Dimension getMaximumSize(JComponent c)
Overrides:
getMaximumSize in class ComponentUI
 o drawGridInClipRect
protected void drawGridInClipRect(Rectangle rect,
                                  Graphics g)
Draws the grid lines within aRect, using the grid color set with setGridColor. This method draws a grid regardless of whether the receiver is set to draw one automatically. Subclasses can override this method to draw grid lines other than the standard ones.

 o drawRowInClipRect
public void drawRowInClipRect(int row,
                              Rectangle rect,
                              Graphics g)
Draws the cells for the row at rowIndex in the columns that intersect clipRect. Subclasses can override this method to customize their appearance.

 o prepareRenderer
protected Component prepareRenderer(TableCellRenderer renderer,
                                    JTable table,
                                    TableColumn aColumn,
                                    int row)
 o updateSelection
protected void updateSelection(MouseEvent e)

All Packages  Class Hierarchy  This Package  Previous  Next  Index  

Submit a bug or feature