JIDE Common Layer 2.7.1

com.jidesoft.plaf.eclipse
Class EclipseJideSplitButtonUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.swing.plaf.ButtonUI
          extended by javax.swing.plaf.MenuItemUI
              extended by com.jidesoft.plaf.eclipse.EclipseMenuItemUI
                  extended by com.jidesoft.plaf.eclipse.EclipseMenuUI
                      extended by com.jidesoft.plaf.eclipse.EclipseJideSplitButtonUI

public class EclipseJideSplitButtonUI
extends EclipseMenuUI

EclipseJideSplitButtonUI implementation.


Nested Class Summary
protected  class EclipseJideSplitButtonUI.MouseInputHandler
           
 
Nested classes/interfaces inherited from class com.jidesoft.plaf.eclipse.EclipseMenuUI
EclipseMenuUI.ChangeHandler
 
Field Summary
protected  java.awt.Color _darkShadowColor
           
protected  java.awt.Color _highlight
           
protected  java.awt.Color _lightHighlightColor
           
protected  ThemePainter _painter
           
protected  java.awt.Color _shadowColor
           
protected  int _splitButtonMargin
           
protected  int _splitButtonMarginOnMenu
           
 
Fields inherited from class com.jidesoft.plaf.eclipse.EclipseMenuUI
changeListener, menuListener, propertyChangeListener
 
Fields inherited from class com.jidesoft.plaf.eclipse.EclipseMenuItemUI
acceleratorFont, acceleratorForeground, acceleratorSelectionForeground, arrowIcon, checkIcon, defaultAccelEndGap, defaultShadowWidth, defaultTextIconGap, disabledForeground, menuDragMouseListener, menuItem, menuKeyListener, mouseInputListener, oldBorderPainted, selectionBackground, selectionForeground, shadowColor
 
Constructor Summary
EclipseJideSplitButtonUI()
           
 
Method Summary
protected  javax.swing.event.MouseInputListener createMouseInputListener(javax.swing.JComponent c)
           
static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
           
protected static void downButtonPressed(javax.swing.JMenu menu)
           
protected static java.awt.Container getFirstParentMenuElement(java.awt.Component comp)
           
 javax.swing.InputMap getInputMap(int condition, javax.swing.JComponent c)
          Returns the InputMap for condition condition.
 java.awt.Dimension getMaximumSize(javax.swing.JComponent c)
           
 java.awt.Dimension getMinimumSize(javax.swing.JComponent c)
           
protected  int getOffset()
           
 java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
           
protected  java.lang.String getPropertyPrefix()
           
protected  void installDefaults()
           
protected  void installKeyboardActions()
           
protected  void installListeners()
           
static void loadActionMap(LazyActionMap map)
          Populates Buttons actions.
protected  void paintBackground(java.awt.Graphics g, javax.swing.JMenuItem menuItem, java.awt.Color bgColor)
          Draws the background of the menu item.
protected  void paintIcon(javax.swing.JMenuItem b, java.awt.Graphics g)
           
protected  void uninstallDefaults()
           
protected  void uninstallKeyboardActions()
           
protected  void uninstallListeners()
           
 
Methods inherited from class com.jidesoft.plaf.eclipse.EclipseMenuUI
appendPath, createChangeListener, createMenuDragMouseListener, createMenuKeyListener, createMenuListener, createPropertyChangeListener, isMouseOver, paintText, setMouseOver, setupPostTimer
 
Methods inherited from class com.jidesoft.plaf.eclipse.EclipseMenuItemUI
doClick, getPainter, getPath, getPreferredMenuItemSize, installComponents, installUI, isDownArrowVisible, paint, paintMenuItem, uninstallComponents, uninstallUI, update
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_painter

protected ThemePainter _painter

_shadowColor

protected java.awt.Color _shadowColor

_darkShadowColor

protected java.awt.Color _darkShadowColor

_highlight

protected java.awt.Color _highlight

_lightHighlightColor

protected java.awt.Color _lightHighlightColor

_splitButtonMargin

protected int _splitButtonMargin

_splitButtonMarginOnMenu

protected int _splitButtonMarginOnMenu
Constructor Detail

EclipseJideSplitButtonUI

public EclipseJideSplitButtonUI()
Method Detail

getPropertyPrefix

protected java.lang.String getPropertyPrefix()
Overrides:
getPropertyPrefix in class EclipseMenuUI

createUI

public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)

installDefaults

protected void installDefaults()
Overrides:
installDefaults in class EclipseMenuUI

uninstallDefaults

protected void uninstallDefaults()
Overrides:
uninstallDefaults in class EclipseMenuUI

installListeners

protected void installListeners()
Overrides:
installListeners in class EclipseMenuUI

uninstallListeners

protected void uninstallListeners()
Overrides:
uninstallListeners in class EclipseMenuUI

getInputMap

public javax.swing.InputMap getInputMap(int condition,
                                        javax.swing.JComponent c)
Returns the InputMap for condition condition. Called as part of installKeyboardActions.


installKeyboardActions

protected void installKeyboardActions()
Overrides:
installKeyboardActions in class EclipseMenuUI

uninstallKeyboardActions

protected void uninstallKeyboardActions()
Overrides:
uninstallKeyboardActions in class EclipseMenuUI

createMouseInputListener

protected javax.swing.event.MouseInputListener createMouseInputListener(javax.swing.JComponent c)
Overrides:
createMouseInputListener in class EclipseMenuUI

paintBackground

protected void paintBackground(java.awt.Graphics g,
                               javax.swing.JMenuItem menuItem,
                               java.awt.Color bgColor)
Description copied from class: EclipseMenuUI
Draws the background of the menu item.

Overrides:
paintBackground in class EclipseMenuUI
Parameters:
g - the paint graphics
menuItem - menu item to be painted
bgColor - selection background color

getMinimumSize

public java.awt.Dimension getMinimumSize(javax.swing.JComponent c)
Overrides:
getMinimumSize in class EclipseMenuItemUI

getMaximumSize

public java.awt.Dimension getMaximumSize(javax.swing.JComponent c)
Overrides:
getMaximumSize in class EclipseMenuUI

getPreferredSize

public java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
Overrides:
getPreferredSize in class EclipseMenuUI

paintIcon

protected void paintIcon(javax.swing.JMenuItem b,
                         java.awt.Graphics g)

getOffset

protected int getOffset()

loadActionMap

public static void loadActionMap(LazyActionMap map)
Populates Buttons actions.


downButtonPressed

protected static void downButtonPressed(javax.swing.JMenu menu)

getFirstParentMenuElement

protected static java.awt.Container getFirstParentMenuElement(java.awt.Component comp)

JIDE Common Layer 2.7.1