|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.plaf.ComponentUI
javax.swing.plaf.ButtonUI
javax.swing.plaf.basic.BasicButtonUI
javax.swing.plaf.metal.MetalButtonUI
org.compiere.plaf.CompiereButtonUI
public class CompiereButtonUI
Button UI
| 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) |
protected void |
paintFocus(Graphics g,
AbstractButton b,
Rectangle viewRect,
Rectangle textRect,
Rectangle iconRect)
Paint Focus |
void |
update(Graphics g,
JComponent c)
Update. |
| Methods inherited from class javax.swing.plaf.metal.MetalButtonUI |
|---|
getDisabledTextColor, getFocusColor, getSelectColor, 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 |
|---|
public CompiereButtonUI()
| Method Detail |
|---|
public static ComponentUI createUI(JComponent c)
c -
public void installDefaults(AbstractButton b)
installDefaults in class MetalButtonUIb -
public void update(Graphics g,
JComponent c)
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.
update in class MetalButtonUIg - the Graphics context in which to paintc - the component being paintedpaint(java.awt.Graphics, javax.swing.JComponent),
JComponent.paintComponent(java.awt.Graphics)
public void paint(Graphics g,
JComponent c)
paint in class BasicButtonUIg - c -
protected void paintFocus(Graphics g,
AbstractButton b,
Rectangle viewRect,
Rectangle textRect,
Rectangle iconRect)
paintFocus in class MetalButtonUIg - gaphicsb - buttonviewRect - viewtextRect - texticonRect - iconMetalButtonUI.paintFocus(java.awt.Graphics, javax.swing.AbstractButton, java.awt.Rectangle, java.awt.Rectangle, java.awt.Rectangle)
protected void paintButtonPressed(Graphics g,
AbstractButton b)
paintButtonPressed in class MetalButtonUIg - b - protected BasicButtonListener createButtonListener(AbstractButton b)
createButtonListener in class MetalButtonUIb - button
|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||