Quaqua 8.0 2011-10-02

ch.randelshofer.quaqua
Class QuaquaTableUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.swing.plaf.TableUI
          extended by javax.swing.plaf.basic.BasicTableUI
              extended by ch.randelshofer.quaqua.QuaquaTableUI
All Implemented Interfaces:
ViewportPainter

public class QuaquaTableUI
extends javax.swing.plaf.basic.BasicTableUI
implements ViewportPainter

QuaquaTableUI.

Version:
$Id: QuaquaTableUI.java 448 2011-10-02 11:43:52Z wrandelshofer $
Author:
Werner Randelshofer

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicTableUI
javax.swing.plaf.basic.BasicTableUI.FocusHandler, javax.swing.plaf.basic.BasicTableUI.KeyHandler, javax.swing.plaf.basic.BasicTableUI.MouseInputHandler
 
Field Summary
 
Fields inherited from class javax.swing.plaf.basic.BasicTableUI
focusListener, keyListener, mouseInputListener, rendererPane, table
 
Constructor Summary
QuaquaTableUI()
          Creates a new instance.
 
Method Summary
protected  java.awt.event.FocusListener createFocusListener()
          Creates the focus listener for handling keyboard navigation in the JTable.
protected  java.awt.event.KeyListener createKeyListener()
          Creates the key listener for handling keyboard navigation in the JTable.
protected  javax.swing.event.MouseInputListener createMouseInputListener()
          Creates the mouse listener for the JTable.
static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
           
protected  void installDefaults()
           
protected  void installListeners()
          Attaches listeners to the JTable.
 void paint(java.awt.Graphics g, javax.swing.JComponent c)
          Paint a representation of the table instance that was set in installUI().
 void paintViewport(java.awt.Graphics g, javax.swing.JViewport c)
          Paints the viewport of a JViewport, that contains the component of the user interface delegate.
protected  void uninstallDefaults()
           
protected  void uninstallListeners()
           
 
Methods inherited from class javax.swing.plaf.basic.BasicTableUI
getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, installKeyboardActions, installUI, uninstallKeyboardActions, uninstallUI
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuaquaTableUI

public QuaquaTableUI()
Creates a new instance.

Method Detail

createUI

public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)

createKeyListener

protected java.awt.event.KeyListener createKeyListener()
Creates the key listener for handling keyboard navigation in the JTable.

Overrides:
createKeyListener in class javax.swing.plaf.basic.BasicTableUI

installListeners

protected void installListeners()
Attaches listeners to the JTable.

Overrides:
installListeners in class javax.swing.plaf.basic.BasicTableUI

uninstallListeners

protected void uninstallListeners()
Overrides:
uninstallListeners in class javax.swing.plaf.basic.BasicTableUI

installDefaults

protected void installDefaults()
Overrides:
installDefaults in class javax.swing.plaf.basic.BasicTableUI

uninstallDefaults

protected void uninstallDefaults()
Overrides:
uninstallDefaults in class javax.swing.plaf.basic.BasicTableUI

paint

public void paint(java.awt.Graphics g,
                  javax.swing.JComponent c)
Paint a representation of the table instance that was set in installUI().

Overrides:
paint in class javax.swing.plaf.basic.BasicTableUI

paintViewport

public void paintViewport(java.awt.Graphics g,
                          javax.swing.JViewport c)
Description copied from interface: ViewportPainter
Paints the viewport of a JViewport, that contains the component of the user interface delegate. This method is invoked by QuaquaViewportUI.

Specified by:
paintViewport in interface ViewportPainter

createMouseInputListener

protected javax.swing.event.MouseInputListener createMouseInputListener()
Creates the mouse listener for the JTable.

Overrides:
createMouseInputListener in class javax.swing.plaf.basic.BasicTableUI

createFocusListener

protected java.awt.event.FocusListener createFocusListener()
Creates the focus listener for handling keyboard navigation in the JTable.

Overrides:
createFocusListener in class javax.swing.plaf.basic.BasicTableUI

Copyright 2003-2007 (c) Werner Randelshofer.
All rights reserved.