Package org.compiere.plaf
Class CompiereButtonUI
- java.lang.Object
-
- javax.swing.plaf.ComponentUI
-
- javax.swing.plaf.ButtonUI
-
- javax.swing.plaf.basic.BasicButtonUI
-
- javax.swing.plaf.metal.MetalButtonUI
-
- 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
Constructors Constructor Description CompiereButtonUI()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected BasicButtonListenercreateButtonListener(AbstractButton b)Create Button Listenerstatic ComponentUIcreateUI(JComponent c)Static Create UIvoidinstallDefaults(AbstractButton b)Install Defaultsvoidpaint(Graphics g, JComponent c)Paint 3D boxesprotected voidpaintButtonPressed(Graphics g, AbstractButton b)Don't get selected Color - use default (otherwise the pressed button is gray)voidupdate(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
-
-
-
-
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:
installDefaultsin classMetalButtonUI- Parameters:
b-
-
update
public void update(Graphics g, JComponent c)
Update. This method is invoked byJComponentwhen the specified component is being painted. By default this method will fill the specified component with its background color (if itsopaqueproperty istrue) and then immediately callpaint.- Overrides:
updatein classMetalButtonUI- Parameters:
g- theGraphicscontext in which to paintc- 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:
paintin classBasicButtonUI- 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:
paintButtonPressedin classMetalButtonUI- Parameters:
g-b-
-
createButtonListener
protected BasicButtonListener createButtonListener(AbstractButton b)
Create Button Listener- Overrides:
createButtonListenerin classMetalButtonUI- Parameters:
b- button- Returns:
- listener
-
-