Adempiere 3.5.2a

org.compiere.plaf
Class CompiereButtonUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.swing.plaf.ButtonUI
          extended by javax.swing.plaf.basic.BasicButtonUI
              extended by javax.swing.plaf.metal.MetalButtonUI
                  extended by org.compiere.plaf.CompiereButtonUI

public class CompiereButtonUI
extends MetalButtonUI

Button UI

Version:
$Id: AdempiereButtonUI.java,v 1.2 2006/07/30 00:52:24 jjanke Exp $
Author:
Jorg Janke

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
CompiereButtonUI()
           
 
Method Summary
protected  BasicButtonListener createButtonListener(AbstractButton b)
          Create Button Listener
static ComponentUI createUI(JComponent c)
          Static Create UI
 void installDefaults(AbstractButton b)
          Install Defaults
 void paint(Graphics g, JComponent c)
          Paint 3D boxes
protected  void paintButtonPressed(Graphics g, AbstractButton b)
          Don't get selected Color - use default (otherwise the pressed button is gray)
 void update(Graphics g, JComponent c)
          Update.
 
Methods inherited from class javax.swing.plaf.metal.MetalButtonUI
getDisabledTextColor, getFocusColor, getSelectColor, paintFocus, paintText, uninstallDefaults
 
Methods inherited from class javax.swing.plaf.basic.BasicButtonUI
clearTextShiftOffset, getBaseline, getBaselineResizeBehavior, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompiereButtonUI

public CompiereButtonUI()
Method Detail

createUI

public static ComponentUI createUI(JComponent c)
Static Create UI

Parameters:
c -
Returns:
Adempiere Button UI

installDefaults

public void installDefaults(AbstractButton b)
Install Defaults

Overrides:
installDefaults in class MetalButtonUI
Parameters:
b -

update

public void update(Graphics g,
                   JComponent c)
Update. This method is invoked by JComponent when the specified component is being painted. By default this method will fill the specified component with its background color (if its opaque property is true) and then immediately call paint.

Overrides:
update in class MetalButtonUI
Parameters:
g - the Graphics context in which to paint
c - the component being painted
See Also:
paint(java.awt.Graphics, javax.swing.JComponent), JComponent.paintComponent(java.awt.Graphics)

paint

public void paint(Graphics g,
                  JComponent c)
Paint 3D boxes

Overrides:
paint in class BasicButtonUI
Parameters:
g -
c -

paintButtonPressed

protected void paintButtonPressed(Graphics g,
                                  AbstractButton b)
Don't get selected Color - use default (otherwise the pressed button is gray)

Overrides:
paintButtonPressed in class MetalButtonUI
Parameters:
g -
b -

createButtonListener

protected BasicButtonListener createButtonListener(AbstractButton b)
Create Button Listener

Overrides:
createButtonListener in class MetalButtonUI
Parameters:
b - button
Returns:
listener

Adempiere 3.5.2a

Adempiere® is a registered trademark of ADempiere Business Inc. ©2004-2008 HumanFlash.com All rights reserved.