com.birosoft.liquid
Class LiquidTableHeaderUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.swing.plaf.TableHeaderUI
          extended by com.birosoft.liquid.LiquidTableHeaderUI

public class LiquidTableHeaderUI
extends javax.swing.plaf.TableHeaderUI

BasicTableHeaderUI implementation


Nested Class Summary
 class LiquidTableHeaderUI.MouseInputHandler
          This inner class is marked "public" due to a compiler bug.
 
Field Summary
protected  javax.swing.table.JTableHeader header
          The JTableHeader that is delegating the painting to this UI.
protected static int HEADER_HEIGHT
           
protected  javax.swing.event.MouseInputListener mouseInputListener
           
protected  javax.swing.CellRendererPane rendererPane
           
 
Constructor Summary
LiquidTableHeaderUI()
           
 
Method Summary
protected  javax.swing.event.MouseInputListener createMouseInputListener()
          Creates the mouse listener for the JTable.
static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent h)
           
 java.awt.Dimension getMaximumSize(javax.swing.JComponent c)
          Return the maximum size of the header.
 java.awt.Dimension getMinimumSize(javax.swing.JComponent c)
          Return the minimum size of the header.
 java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
          Return the preferred size of the header.
 Skin getSkin()
           
protected  void installDefaults()
          Initialize JTableHeader properties, e.g.
protected  void installKeyboardActions()
          Register all keyboard actions on the JTableHeader.
protected  void installListeners()
          Attaches listeners to the JTableHeader.
 void installUI(javax.swing.JComponent c)
           
 void paint(java.awt.Graphics g, javax.swing.JComponent c)
           
protected  void uninstallDefaults()
           
protected  void uninstallKeyboardActions()
           
protected  void uninstallListeners()
           
 void uninstallUI(javax.swing.JComponent c)
           
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HEADER_HEIGHT

protected static final int HEADER_HEIGHT
See Also:
Constant Field Values

header

protected javax.swing.table.JTableHeader header
The JTableHeader that is delegating the painting to this UI.


rendererPane

protected javax.swing.CellRendererPane rendererPane

mouseInputListener

protected javax.swing.event.MouseInputListener mouseInputListener
Constructor Detail

LiquidTableHeaderUI

public LiquidTableHeaderUI()
Method Detail

createMouseInputListener

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


createUI

public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent h)

installUI

public void installUI(javax.swing.JComponent c)
Overrides:
installUI in class javax.swing.plaf.ComponentUI

installDefaults

protected void installDefaults()
Initialize JTableHeader 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.

See Also:
installUI(javax.swing.JComponent)

installListeners

protected void installListeners()
Attaches listeners to the JTableHeader.


installKeyboardActions

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


uninstallUI

public void uninstallUI(javax.swing.JComponent c)
Overrides:
uninstallUI in class javax.swing.plaf.ComponentUI

uninstallDefaults

protected void uninstallDefaults()

uninstallListeners

protected void uninstallListeners()

uninstallKeyboardActions

protected void uninstallKeyboardActions()

paint

public void paint(java.awt.Graphics g,
                  javax.swing.JComponent c)
Overrides:
paint in class javax.swing.plaf.ComponentUI

getMinimumSize

public java.awt.Dimension getMinimumSize(javax.swing.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).

Overrides:
getMinimumSize in class javax.swing.plaf.ComponentUI

getPreferredSize

public java.awt.Dimension getPreferredSize(javax.swing.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).

Overrides:
getPreferredSize in class javax.swing.plaf.ComponentUI

getMaximumSize

public java.awt.Dimension getMaximumSize(javax.swing.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).

Overrides:
getMaximumSize in class javax.swing.plaf.ComponentUI

getSkin

public Skin getSkin()