JIDE 3.5.15

com.jidesoft.plaf.windows
Class WindowsCellStyleTableHeaderUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.swing.plaf.TableHeaderUI
          extended by javax.swing.plaf.basic.BasicTableHeaderUI
              extended by com.sun.java.swing.plaf.windows.WindowsTableHeaderUI
                  extended by com.jidesoft.plaf.windows.WindowsCellStyleTableHeaderUI
All Implemented Interfaces:
DelegateTableHeaderUI
Direct Known Subclasses:
WindowsSortableTableHeaderUI

public class WindowsCellStyleTableHeaderUI
extends com.sun.java.swing.plaf.windows.WindowsTableHeaderUI
implements DelegateTableHeaderUI


Nested Class Summary
 class WindowsCellStyleTableHeaderUI.MouseInputHandler
           
 
Field Summary
protected  TableHeaderUIDelegate _delegate
           
 
Fields inherited from class javax.swing.plaf.basic.BasicTableHeaderUI
header, mouseInputListener, rendererPane
 
Constructor Summary
WindowsCellStyleTableHeaderUI()
           
 
Method Summary
protected  TableHeaderUIDelegate createDefaultDelegate()
          Creates the default UI delegate instance to paint the header.
protected  TableHeaderUIDelegate createDelegate()
          Creates a UI delegate instance to paint the header.
protected  MouseInputListener createMouseInputListener()
           
static ComponentUI createUI(JComponent h)
           
 TableHeaderUIDelegate getHeaderUIDelegate()
          Gets the header UI delegate instance.
 Dimension getPreferredSize(JComponent c)
           
 int getRolloverColumn()
          Gets the rollover column.
protected  void installDefaults()
           
 void paint(Graphics g, JComponent c)
           
 void setRolloverColumn(int rolloverColumn)
          Sets the rollover column.
protected  void uninstallDefaults()
           
 
Methods inherited from class com.sun.java.swing.plaf.windows.WindowsTableHeaderUI
installUI, rolloverColumnUpdated, uninstallUI
 
Methods inherited from class javax.swing.plaf.basic.BasicTableHeaderUI
getBaseline, getMaximumSize, getMinimumSize, installKeyboardActions, installListeners, uninstallKeyboardActions, uninstallListeners
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaselineResizeBehavior, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_delegate

protected TableHeaderUIDelegate _delegate
Constructor Detail

WindowsCellStyleTableHeaderUI

public WindowsCellStyleTableHeaderUI()
Method Detail

createUI

public static ComponentUI createUI(JComponent h)

installDefaults

protected void installDefaults()
Overrides:
installDefaults in class BasicTableHeaderUI

uninstallDefaults

protected void uninstallDefaults()
Overrides:
uninstallDefaults in class BasicTableHeaderUI

paint

public void paint(Graphics g,
                  JComponent c)
Overrides:
paint in class BasicTableHeaderUI

getPreferredSize

public Dimension getPreferredSize(JComponent c)
Overrides:
getPreferredSize in class BasicTableHeaderUI

createDelegate

protected TableHeaderUIDelegate createDelegate()
Creates a UI delegate instance to paint the header.

It will first try to get the class name from UIDefaults. You can custmoize the UI delegate class by setting class name to the UIDefaults with corresponding key. If it's not configured, createDefaultDelegate() will be used to create the UI delegate instance.

Returns:
the UI delegate instance

createDefaultDelegate

protected TableHeaderUIDelegate createDefaultDelegate()
Creates the default UI delegate instance to paint the header.

Returns:
the default UI delegate instance

getHeaderUIDelegate

public TableHeaderUIDelegate getHeaderUIDelegate()
Description copied from interface: DelegateTableHeaderUI
Gets the header UI delegate instance.

Specified by:
getHeaderUIDelegate in interface DelegateTableHeaderUI
Returns:
the header UI delegate instance.

getRolloverColumn

public int getRolloverColumn()
Description copied from interface: DelegateTableHeaderUI
Gets the rollover column.

Specified by:
getRolloverColumn in interface DelegateTableHeaderUI
Overrides:
getRolloverColumn in class BasicTableHeaderUI
Returns:
the rollover column index. -1 if the mouse is not over the column or is dragging on the column.

setRolloverColumn

public void setRolloverColumn(int rolloverColumn)
Description copied from interface: DelegateTableHeaderUI
Sets the rollover column.

Specified by:
setRolloverColumn in interface DelegateTableHeaderUI
Parameters:
rolloverColumn - the rollover column index

createMouseInputListener

protected MouseInputListener createMouseInputListener()
Overrides:
createMouseInputListener in class BasicTableHeaderUI

JIDE 3.5.15