Home » openjdk-7 » javax » swing » plaf » basic » [javadoc | source]
javax.swing.plaf.basic
public class: BasicTableHeaderUI [javadoc | source]
java.lang.Object
   javax.swing.plaf.ComponentUI
      javax.swing.plaf.TableHeaderUI
         javax.swing.plaf.basic.BasicTableHeaderUI

Direct Known Subclasses:
    SynthTableHeaderUI

BasicTableHeaderUI implementation
Nested Class Summary:
public class  BasicTableHeaderUI.MouseInputHandler  This class should be treated as a "protected" inner class. Instantiate it only within subclasses of {@code BasicTableHeaderUI}. 
Field Summary
protected  JTableHeader header    The JTableHeader that is delegating the painting to this UI. 
protected  CellRendererPane rendererPane     
protected  MouseInputListener mouseInputListener     
Method from javax.swing.plaf.basic.BasicTableHeaderUI Summary:
createMouseInputListener,   createUI,   getBaseline,   getMaximumSize,   getMinimumSize,   getPreferredSize,   getRolloverColumn,   installDefaults,   installKeyboardActions,   installListeners,   installUI,   loadActionMap,   paint,   rolloverColumnUpdated,   selectColumn,   selectColumn,   uninstallDefaults,   uninstallKeyboardActions,   uninstallListeners,   uninstallUI
Methods from javax.swing.plaf.ComponentUI:
contains,   createUI,   getAccessibleChild,   getAccessibleChildrenCount,   getBaseline,   getBaselineResizeBehavior,   getMaximumSize,   getMinimumSize,   getPreferredSize,   installUI,   paint,   uninstallUI,   update
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.swing.plaf.basic.BasicTableHeaderUI Detail:
 protected MouseInputListener createMouseInputListener() 
    Creates the mouse listener for the JTableHeader.
 public static ComponentUI createUI(JComponent h) 
 public int getBaseline(JComponent c,
    int width,
    int height) 
    Returns the baseline.
 public Dimension getMaximumSize(JComponent c) 
    Return the maximum size of the header. The maximum width is the sum of the maximum widths of each column (plus inter-cell spacing).
 public Dimension getMinimumSize(JComponent c) 
    Return the minimum size of the header. The minimum width is the sum of the minimum widths of each column (plus inter-cell spacing).
 public Dimension getPreferredSize(JComponent c) 
    Return the preferred size of the header. The preferred height is the maximum of the preferred heights of all of the components provided by the header renderers. The preferred width is the sum of the preferred widths of each column (plus inter-cell spacing).
 protected int getRolloverColumn() 
    Returns the index of the column header over which the mouse currently is. When the mouse is not over the table header, -1 is returned.
 protected  void installDefaults() 
    Initializes JTableHeader properties such as 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.
 protected  void installKeyboardActions() 
    Register all keyboard actions on the JTableHeader.
 protected  void installListeners() 
    Attaches listeners to the JTableHeader.
 public  void installUI(JComponent c) 
 static  void loadActionMap(LazyActionMap map) 
    Populates TableHeader's actions.
 public  void paint(Graphics g,
    JComponent c) 
 protected  void rolloverColumnUpdated(int oldColumn,
    int newColumn) 
    This method gets called every time when a rollover column in the table header is updated. Every look and feel that supports a rollover effect in a table header should override this method and repaint the header.
  void selectColumn(int newColIndex) 
    Selects the specified column in the table header. Repaints the affected header cells and makes sure the newly selected one is visible.
  void selectColumn(int newColIndex,
    boolean doScroll) 
 protected  void uninstallDefaults() 
 protected  void uninstallKeyboardActions() 
    Unregisters default key actions.
 protected  void uninstallListeners() 
 public  void uninstallUI(JComponent c)