uic.themes
Class UICButtonUI

java.lang.Object
  extended byjavax.swing.plaf.ComponentUI
      extended byjavax.swing.plaf.ButtonUI
          extended byjavax.swing.plaf.basic.BasicButtonUI
              extended byjavax.swing.plaf.metal.MetalButtonUI
                  extended byuic.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)
           
protected  Color getDisabledTextColor()
           
 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, 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


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


installDefaults

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


getDisabledTextColor

protected Color getDisabledTextColor()


Copyright © 2002,2003 Thomas Zander Available under the Free Apache licence