FileDocCategorySizeDatePackage
WindowsTableHeaderUI.javaAPI DocJava SE 6 API8290Tue Jun 10 00:21:58 BST 2008com.sun.java.swing.plaf.windows

WindowsTableHeaderUI

public class WindowsTableHeaderUI extends BasicTableHeaderUI

Fields Summary
private TableCellRenderer
originalHeaderRenderer
Constructors Summary
Methods Summary
public static javax.swing.plaf.ComponentUIcreateUI(javax.swing.JComponent h)

        return new WindowsTableHeaderUI();
    
public voidinstallUI(javax.swing.JComponent c)

	super.installUI(c);

	if (XPStyle.getXP() != null) {
	    originalHeaderRenderer = header.getDefaultRenderer();
	    if (originalHeaderRenderer instanceof UIResource) {
		header.setDefaultRenderer(new XPDefaultRenderer());
	    }
	}
    
protected voidrolloverColumnUpdated(int oldColumn, int newColumn)

        if (XPStyle.getXP() != null) {
            header.repaint(header.getHeaderRect(oldColumn));
            header.repaint(header.getHeaderRect(newColumn));
        }
    
public voiduninstallUI(javax.swing.JComponent c)

	if (header.getDefaultRenderer() instanceof XPDefaultRenderer) {
	    header.setDefaultRenderer(originalHeaderRenderer);
	}
	super.uninstallUI(c);