JIDE 3.5.15

com.jidesoft.plaf.aqua
Class AquaCellStyleTableHeaderUI

java.lang.Object
  extended by AquaTableHeaderUI
      extended by com.jidesoft.plaf.aqua.AquaCellStyleTableHeaderUI
All Implemented Interfaces:
DelegateTableHeaderUI
Direct Known Subclasses:
AquaSortableTableHeaderUI

public class AquaCellStyleTableHeaderUI
extends AquaTableHeaderUI
implements DelegateTableHeaderUI


Nested Class Summary
 class AquaCellStyleTableHeaderUI.MouseInputHandler
           
 
Field Summary
protected  TableHeaderUIDelegate _delegate
           
 
Constructor Summary
AquaCellStyleTableHeaderUI()
           
 
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.
 void installDefaults()
           
 void paint(Graphics g, JComponent c)
           
 void setRolloverColumn(int rolloverColumn)
          Sets the rollover column.
 void uninstallDefaults()
           
 
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

AquaCellStyleTableHeaderUI

public AquaCellStyleTableHeaderUI()
Method Detail

createUI

public static ComponentUI createUI(JComponent h)

installDefaults

public void installDefaults()

uninstallDefaults

public void uninstallDefaults()

paint

public void paint(Graphics g,
                  JComponent c)

getPreferredSize

public Dimension getPreferredSize(JComponent c)

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
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()

JIDE 3.5.15