jdbreport.grid
Class BasicTableRowHeaderUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by jdbreport.grid.TableRowHeaderUI
          extended by jdbreport.grid.BasicTableRowHeaderUI

public class BasicTableRowHeaderUI
extends TableRowHeaderUI

Version:
1.2 02/08/09
Author:
Andrey Kholmanskih

Nested Class Summary
 class BasicTableRowHeaderUI.MouseInputHandler
          This inner class is marked "public" due to a compiler bug.
 
Field Summary
protected  RowHeader header
          The RowHeader that is delegating the painting to this UI.
protected  MouseInputListener mouseInputListener
           
protected  CellRendererPane rendererPane
           
 
Constructor Summary
BasicTableRowHeaderUI()
           
 
Method Summary
protected  MouseInputListener createMouseInputListener()
          Creates the mouse listener for the JTable.
static ComponentUI createUI(JComponent h)
           
 Dimension getMaximumSize(JComponent c)
          Return the maximum size of the header.
 Dimension getMinimumSize(JComponent c)
          Return the minimum size of the header.
 Dimension getPreferredSize(JComponent c)
          Return the preferred size of the header.
protected  void installDefaults()
          Initialize RowHeader properties, e.g. font, foreground, and background.
protected  void installKeyboardActions()
          Register all keyboard actions on the RowHeader.
protected  void installListeners()
          Attaches listeners to the RowHeader.
 void installUI(JComponent c)
           
 void paint(Graphics g, JComponent c)
           
protected  void uninstallDefaults()
           
protected  void uninstallKeyboardActions()
           
protected  void uninstallListeners()
           
 void uninstallUI(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

protected RowHeader header
The RowHeader that is delegating the painting to this UI.


rendererPane

protected CellRendererPane rendererPane

mouseInputListener

protected MouseInputListener mouseInputListener
Constructor Detail

BasicTableRowHeaderUI

public BasicTableRowHeaderUI()
Method Detail

createMouseInputListener

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


createUI

public static ComponentUI createUI(JComponent h)

installUI

public void installUI(JComponent c)
Overrides:
installUI in class ComponentUI

installDefaults

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


installKeyboardActions

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


uninstallUI

public void uninstallUI(JComponent c)
Overrides:
uninstallUI in class ComponentUI

uninstallDefaults

protected void uninstallDefaults()

uninstallListeners

protected void uninstallListeners()

uninstallKeyboardActions

protected void uninstallKeyboardActions()

paint

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

getMinimumSize

public Dimension getMinimumSize(JComponent c)
Return the minimum size of the header.

Overrides:
getMinimumSize in class ComponentUI

getPreferredSize

public Dimension getPreferredSize(JComponent c)
Return the preferred size of the header.

Overrides:
getPreferredSize in class ComponentUI

getMaximumSize

public Dimension getMaximumSize(JComponent c)
Return the maximum size of the header.

Overrides:
getMaximumSize in class ComponentUI