com.jidesoft.plaf.metal
Class MetalJideSplitButtonUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.ButtonUI
javax.swing.plaf.MenuItemUI
com.jidesoft.plaf.metal.MetalMenuItemUI
com.jidesoft.plaf.metal.MetalMenuUI
com.jidesoft.plaf.metal.MetalJideSplitButtonUI
public class MetalJideSplitButtonUI
- extends MetalMenuUI
MetalJideSplitButtonUI implementation
Fields inherited from class com.jidesoft.plaf.metal.MetalMenuItemUI |
acceleratorFont, acceleratorForeground, acceleratorSelectionForeground, arrowIcon, checkIcon, defaultTextIconGap, disabledForeground, menuDragMouseListener, menuItem, menuKeyListener, mouseInputListener, oldBorderPainted, selectionBackground, selectionForeground |
Methods inherited from class com.jidesoft.plaf.metal.MetalMenuItemUI |
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 |
_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
_propertyChangeListener
protected java.beans.PropertyChangeListener _propertyChangeListener
MetalJideSplitButtonUI
public MetalJideSplitButtonUI()
getPropertyPrefix
protected java.lang.String getPropertyPrefix()
- Overrides:
getPropertyPrefix
in class MetalMenuUI
createUI
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
installDefaults
protected void installDefaults()
- Overrides:
installDefaults
in class MetalMenuUI
uninstallDefaults
protected void uninstallDefaults()
- Overrides:
uninstallDefaults
in class MetalMenuUI
installListeners
protected void installListeners()
- Overrides:
installListeners
in class MetalMenuUI
uninstallListeners
protected void uninstallListeners()
- Overrides:
uninstallListeners
in class MetalMenuUI
createSplitButtonPropertyChangeListener
protected java.beans.PropertyChangeListener createSplitButtonPropertyChangeListener(javax.swing.JComponent c)
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 MetalMenuUI
uninstallKeyboardActions
protected void uninstallKeyboardActions()
- Overrides:
uninstallKeyboardActions
in class MetalMenuUI
createMouseInputListener
protected javax.swing.event.MouseInputListener createMouseInputListener(javax.swing.JComponent c)
- Overrides:
createMouseInputListener
in class MetalMenuUI
paintBackground
protected void paintBackground(java.awt.Graphics g,
javax.swing.JMenuItem menuItem,
java.awt.Color bgColor)
- Description copied from class:
MetalMenuUI
- Draws the background of the menu item.
- Overrides:
paintBackground
in class MetalMenuUI
- Parameters:
g
- the paint graphicsmenuItem
- menu item to be paintedbgColor
- selection background color
paintText
protected void paintText(java.awt.Graphics g,
javax.swing.JMenuItem menuItem,
java.awt.Rectangle textRect,
java.lang.String text)
- Description copied from class:
MetalMenuItemUI
- Renders the text of the current menu item.
- Overrides:
paintText
in class MetalMenuItemUI
- Parameters:
g
- graphics contextmenuItem
- menu item to rendertextRect
- bounding rectangle for rendering the texttext
- string to render
getMinimumSize
public java.awt.Dimension getMinimumSize(javax.swing.JComponent c)
- Overrides:
getMinimumSize
in class MetalMenuItemUI
getPreferredSize
public java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
- Overrides:
getPreferredSize
in class MetalMenuUI
getMaximumSize
public java.awt.Dimension getMaximumSize(javax.swing.JComponent c)
- Overrides:
getMaximumSize
in class MetalMenuUI
paintIcon
protected void paintIcon(javax.swing.JMenuItem b,
java.awt.Graphics g)
getOffset
protected int getOffset()
isAlwaysDropdown
protected boolean isAlwaysDropdown(javax.swing.JMenuItem menuItem)
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)
getRightMargin
protected int getRightMargin()
- Overrides:
getRightMargin
in class MetalMenuItemUI