This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


javax.swing.plaf.basic
class BasicTableUI

java.lang.Object extended by javax.swing.plaf.ComponentUI extended by javax.swing.plaf.TableUI extended by javax.swing.plaf.basic.BasicTableUI

public class BasicTableUI
extends TableUI

BasicTableUI implementation


Nested Class Summary
 class

           This inner class is marked "public" due to a compiler bug.
 class

           This inner class is marked "public" due to a compiler bug.
 class

           This inner class is marked "public" due to a compiler bug.
 
Field Summary
protected FocusListener focusListener
          
protected KeyListener keyListener
          
protected MouseInputListener mouseInputListener
          
protected CellRendererPane rendererPane
          
protected JTable table
          
 
Constructor Summary

          
 
Method Summary
protected FocusListener

          Creates the focus listener for handling keyboard navigation in the JTable.
protected KeyListener

          Creates the key listener for handling keyboard navigation in the JTable.
protected MouseInputListener

          Creates the mouse listener for the JTable.
static ComponentUI

          
 int
getBaseline(JComponent c, int width, int height)

          Returns the baseline.
 Component.BaselineResizeBehavior

          Returns an enum indicating how the baseline of the component changes as the size changes.
 Dimension

          Return the maximum size of the table.
 Dimension

          Return the minimum size of the table.
 Dimension

          Return the preferred size of the table.
protected void

          Initialize JTable properties, e.g.
protected void

          Register all keyboard actions on the JTable.
protected void

          Attaches listeners to the JTable.
 void

          Configures the specified component appropriate for the look and feel.
 void

          Paint a representation of the table instance that was set in installUI().
protected void

          
protected void

          
protected void

          
 void

          Reverses configuration which was done on the specified component during installUI.
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, createUI, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, installUI, paint, uninstallUI, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

focusListener

protected FocusListener focusListener

keyListener

protected KeyListener keyListener

mouseInputListener

protected MouseInputListener mouseInputListener

rendererPane

protected CellRendererPane rendererPane

table

protected JTable table
Constructor Detail

BasicTableUI

public BasicTableUI()
Method Detail

createFocusListener

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


createKeyListener

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


createMouseInputListener

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


createUI

public static ComponentUI createUI(JComponent c)
Parameters:
c

getBaseline

public int getBaseline(JComponent c,
                       int width,
                       int height)
Returns the baseline.

Overrides:
getBaseline in class ComponentUI
Parameters:
c
width
height

getBaselineResizeBehavior

public Component.BaselineResizeBehavior getBaselineResizeBehavior(JComponent c)
Returns an enum indicating how the baseline of the component changes as the size changes.

Overrides:
getBaselineResizeBehavior in class ComponentUI
Parameters:
c

getMaximumSize

public Dimension getMaximumSize(JComponent c)
Return the maximum size of the table. The maximum height is the row heighttimes the number of rows. The maximum width is the sum of the maximum widths of each column.

Overrides:
getMaximumSize in class ComponentUI
Parameters:
c

getMinimumSize

public Dimension getMinimumSize(JComponent c)
Return the minimum size of the table. The minimum height is the row height times the number of rows. The minimum width is the sum of the minimum widths of each column.

Overrides:
getMinimumSize in class ComponentUI
Parameters:
c

getPreferredSize

public Dimension getPreferredSize(JComponent c)
Return the preferred size of the table. The preferred height is the row height times the number of rows. The preferred width is the sum of the preferred widths of each column.

Overrides:
getPreferredSize in class ComponentUI
Parameters:
c

installDefaults

protected void installDefaults()
Initialize JTable properties, e.g. font, foreground, and background. The font, foreground, and background properties are only set if their current value is either null or a UIResource, other properties are set if the current value is null.


installKeyboardActions

protected void installKeyboardActions()
Register all keyboard actions on the JTable.


installListeners

protected void installListeners()
Attaches listeners to the JTable.


installUI

public void installUI(JComponent c)
Overrides:
installUI in class ComponentUI
Parameters:
c

paint

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

Overrides:
paint in class ComponentUI
Parameters:
g
c

uninstallDefaults

protected void uninstallDefaults()

uninstallKeyboardActions

protected void uninstallKeyboardActions()

uninstallListeners

protected void uninstallListeners()

uninstallUI

public void uninstallUI(JComponent c)
Overrides:
uninstallUI in class ComponentUI
Parameters:
c


This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
The official Sun™ documentation can be found here at http://java.sun.com/javase/6/docs/api/.