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
controlKeyDown-
dispatchComponent- Component that will recieve mouse events while editing.
firstCellIndex-
hasPress-
hitColumn-
hitColumnIndex-
hitRowIndex-
isSelecting-
selectedBackgroundColor-
BasicTableUI()
-
createUI(JComponent)
-
drawGridInClipRect(Rectangle, Graphics)
- Draws the grid lines within aRect, using the grid color set with
setGridColor.
drawRowInClipRect(int, Rectangle, Graphics)
- Draws the cells for the row at rowIndex in the columns that intersect
clipRect.
focusGained(FocusEvent)
-
focusLost(FocusEvent)
-
getMaximumSize(JComponent)
-
getMinimumSize(JComponent)
-
getPreferredSize(JComponent)
-
installUI(JComponent)
-
mouseClicked(MouseEvent)
-
mouseDragged(MouseEvent)
-
mouseEntered(MouseEvent)
-
mouseExited(MouseEvent)
-
mouseMoved(MouseEvent)
-
mousePressed(MouseEvent)
-
mouseReleased(MouseEvent)
-
paint(Graphics, JComponent)
-
prepareRenderer(TableCellRenderer, JTable, TableColumn, int)
-
uninstallUI(JComponent)
-
updateSelection(MouseEvent)
-
selectedBackgroundColor
protected static final Color selectedBackgroundColor
hasPress
protected transient boolean hasPress
hitColumnIndex
protected transient int hitColumnIndex
hitRowIndex
protected transient int hitRowIndex
hitColumn
protected transient TableColumn hitColumn
controlKeyDown
protected transient boolean controlKeyDown
isSelecting
protected transient boolean isSelecting
firstCellIndex
protected transient int firstCellIndex
dispatchComponent
protected transient Component dispatchComponent
- Component that will recieve mouse events while editing. Not
necessarily the editorComponent.
BasicTableUI
public BasicTableUI()
createUI
public static ComponentUI createUI(JComponent c)
installUI
public void installUI(JComponent c)
- Overrides:
- installUI in class ComponentUI
uninstallUI
public void uninstallUI(JComponent c)
- Overrides:
- uninstallUI in class ComponentUI
focusGained
public void focusGained(FocusEvent e)
focusLost
public void focusLost(FocusEvent e)
mouseMoved
public void mouseMoved(MouseEvent e)
mouseClicked
public void mouseClicked(MouseEvent e)
mouseEntered
public void mouseEntered(MouseEvent e)
mouseExited
public void mouseExited(MouseEvent e)
mousePressed
public void mousePressed(MouseEvent e)
mouseDragged
public void mouseDragged(MouseEvent e)
mouseReleased
public void mouseReleased(MouseEvent e)
paint
public void paint(Graphics g,
JComponent c)
- Overrides:
- paint in class ComponentUI
getMinimumSize
public Dimension getMinimumSize(JComponent c)
- Overrides:
- getMinimumSize in class ComponentUI
getPreferredSize
public Dimension getPreferredSize(JComponent c)
- Overrides:
- getPreferredSize in class ComponentUI
getMaximumSize
public Dimension getMaximumSize(JComponent c)
- Overrides:
- getMaximumSize in class ComponentUI
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.
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.
prepareRenderer
protected Component prepareRenderer(TableCellRenderer renderer,
JTable table,
TableColumn aColumn,
int row)
updateSelection
protected void updateSelection(MouseEvent e)
All Packages Class Hierarchy This Package Previous Next Index
Submit a bug or feature