uic.themes
Class UICButtonUI

java.lang.Object
  |
  +--javax.swing.plaf.ComponentUI
        |
        +--javax.swing.plaf.ButtonUI
              |
              +--javax.swing.plaf.basic.BasicButtonUI
                    |
                    +--javax.swing.plaf.metal.MetalButtonUI
                          |
                          +--uic.themes.UICButtonUI

public class UICButtonUI
extends MetalButtonUI

Needed to give the Button it's original behaviour back after adding the UICListUI for lists.


Field Summary
 
Fields inherited from class javax.swing.plaf.metal.MetalButtonUI
disabledTextColor, focusColor, selectColor
 
Fields inherited from class javax.swing.plaf.basic.BasicButtonUI
defaultTextIconGap, defaultTextShiftOffset
 
Constructor Summary
UICButtonUI()
           
 
Method Summary
static ComponentUI createUI(JComponent c)
           
 void installDefaults(AbstractButton b)
          Since our TableSorterHeader extends JButton we load the tableHeader stuff here.
 void paint(Graphics g, JComponent c)
          Overrides the default paint Does not paint the original focus and calls paintFocus implemented here
protected  void paintButton(Graphics g, AbstractButton button)
          Paints the default non-pressed button
protected  void paintButtonPressed(Graphics g, AbstractButton button)
          Paints the focus non-pressed button
protected  void paintFocus(Graphics g, AbstractButton button)
           
 
Methods inherited from class javax.swing.plaf.metal.MetalButtonUI
createButtonListener, getDisabledTextColor, getFocusColor, getSelectColor, paintFocus, paintText, uninstallDefaults
 
Methods inherited from class javax.swing.plaf.basic.BasicButtonUI
clearTextShiftOffset, getDefaultTextIconGap, getMaximumSize, getMinimumSize, getPreferredSize, getPropertyPrefix, getTextShiftOffset, installKeyboardActions, installListeners, installUI, paintIcon, paintText, setTextShiftOffset, uninstallKeyboardActions, uninstallListeners, uninstallUI
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UICButtonUI

public UICButtonUI()
Method Detail

createUI

public static ComponentUI createUI(JComponent c)

paint

public void paint(Graphics g,
                  JComponent c)
Overrides the default paint Does not paint the original focus and calls paintFocus implemented here

Overrides:
paint in class BasicButtonUI

paintButton

protected void paintButton(Graphics g,
                           AbstractButton button)
Paints the default non-pressed button


paintFocus

protected void paintFocus(Graphics g,
                          AbstractButton button)

paintButtonPressed

protected void paintButtonPressed(Graphics g,
                                  AbstractButton button)
Paints the focus non-pressed button

Overrides:
paintButtonPressed in class MetalButtonUI

installDefaults

public void installDefaults(AbstractButton b)
Since our TableSorterHeader extends JButton we load the tableHeader stuff here.

Overrides:
installDefaults in class MetalButtonUI


Copyright © 2002,2003 Thomas Zander