Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.7.0)

E13403-08

oracle.javatools.ui.plaf
Class IconicButtonUI

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 com.jgoodies.looks.plastic.PlasticButtonUI
                      extended by oracle.bali.ewt.olaf2.OracleButtonUI
                          extended by oracle.javatools.ui.plaf.IconicButtonUI
Direct Known Subclasses:
ThemedToolBarButtonUI

public class IconicButtonUI
extends oracle.bali.ewt.olaf2.OracleButtonUI

A UI delegate that configures the appearance of a button that has only an icon. You can configure any button to be iconic by calling the static method install(AbstractButton).

   JButton b = new JButton();
   IconicButtonUI.install( b );
 
Although this class is not final, extension writers should not subclass this class..

Since:
11.1.1

Field Summary
static java.lang.String ACTION_PROPERTY_TINY
          The action property ACTION_PROPERTY_TINY can be set to true on any button which should have minimal top and bottom padding.
static java.lang.String CLIENT_PROPERTY_ACTIVE
          The CLIENT_PROPERTY_ACTIVE client property can be set on any button instance that should change the cursor as the mouse moves over it.
 
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
protected IconicButtonUI()
           
 
Method Summary
static void install(javax.swing.AbstractButton button)
          Make the specified button iconic.
 void installDefaults(javax.swing.AbstractButton b)
           
 void installListeners(javax.swing.AbstractButton b)
           
 void paint(java.awt.Graphics g, javax.swing.JComponent c)
           
protected  void paintButtonPressed(java.awt.Graphics g, javax.swing.AbstractButton b)
           
protected  void paintFocus(java.awt.Graphics g, javax.swing.AbstractButton b, java.awt.Rectangle viewRect, java.awt.Rectangle textRect, java.awt.Rectangle iconRect)
           
protected  void paintThemeBackground(java.awt.Graphics g, javax.swing.JComponent c)
           
 void uninstallListeners(javax.swing.AbstractButton b)
           
static void updateCursor(javax.swing.AbstractButton b)
          Updates the cursor for a button, setting it to the hand cursor if the button is enabled and the "iconicButtonUIActive" client property is true.
 
Methods inherited from class oracle.bali.ewt.olaf2.OracleButtonUI
createButtonListener, createUI
 
Methods inherited from class com.jgoodies.looks.plastic.PlasticButtonUI
is3D, isToolBarButton, 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, installUI, paintIcon, paintText, setTextShiftOffset, uninstallKeyboardActions, 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
 

Field Detail

CLIENT_PROPERTY_ACTIVE

public static final java.lang.String CLIENT_PROPERTY_ACTIVE
The CLIENT_PROPERTY_ACTIVE client property can be set on any button instance that should change the cursor as the mouse moves over it. The value of the property should be an instance of java.lang.Boolean. The default value is Boolean.FALSE.

See Also:
Constant Field Values

ACTION_PROPERTY_TINY

public static final java.lang.String ACTION_PROPERTY_TINY
The action property ACTION_PROPERTY_TINY can be set to true on any button which should have minimal top and bottom padding.

See Also:
Constant Field Values
Constructor Detail

IconicButtonUI

protected IconicButtonUI()
Method Detail

install

public static void install(javax.swing.AbstractButton button)
Make the specified button iconic.

Parameters:
button -

installDefaults

public void installDefaults(javax.swing.AbstractButton b)
Overrides:
installDefaults in class com.jgoodies.looks.plastic.PlasticButtonUI

updateCursor

public static void updateCursor(javax.swing.AbstractButton b)
Updates the cursor for a button, setting it to the hand cursor if the button is enabled and the "iconicButtonUIActive" client property is true.

Parameters:
b - a button to update the cursor of. Must not be null.

installListeners

public void installListeners(javax.swing.AbstractButton b)
Overrides:
installListeners in class javax.swing.plaf.basic.BasicButtonUI

uninstallListeners

public void uninstallListeners(javax.swing.AbstractButton b)
Overrides:
uninstallListeners in class javax.swing.plaf.basic.BasicButtonUI

paint

public void paint(java.awt.Graphics g,
                  javax.swing.JComponent c)
Overrides:
paint in class javax.swing.plaf.basic.BasicButtonUI

paintThemeBackground

protected void paintThemeBackground(java.awt.Graphics g,
                                    javax.swing.JComponent c)

paintButtonPressed

protected void paintButtonPressed(java.awt.Graphics g,
                                  javax.swing.AbstractButton b)
Overrides:
paintButtonPressed in class javax.swing.plaf.metal.MetalButtonUI

paintFocus

protected void paintFocus(java.awt.Graphics g,
                          javax.swing.AbstractButton b,
                          java.awt.Rectangle viewRect,
                          java.awt.Rectangle textRect,
                          java.awt.Rectangle iconRect)
Overrides:
paintFocus in class com.jgoodies.looks.plastic.PlasticButtonUI

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.7.0)

E13403-08

Copyright © 1997, 2013, Oracle. All rights reserved.