net.java.sip.communicator.impl.gui.lookandfeel
Class SIPCommChatSelectorMenuUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.ButtonUI
javax.swing.plaf.MenuItemUI
javax.swing.plaf.basic.BasicMenuItemUI
javax.swing.plaf.basic.BasicMenuUI
net.java.sip.communicator.impl.gui.lookandfeel.SIPCommChatSelectorMenuUI
- All Implemented Interfaces:
- Skinnable
public class SIPCommChatSelectorMenuUI
- extends BasicMenuUI
- implements Skinnable
The SIPCommChatSelectorMenuUI implementation.
- Author:
- Yana Stamcheva, Adam Netocny
| Fields inherited from class javax.swing.plaf.basic.BasicMenuItemUI |
acceleratorFont, acceleratorForeground, acceleratorSelectionForeground, arrowIcon, checkIcon, defaultTextIconGap, disabledForeground, menuDragMouseListener, menuItem, menuKeyListener, mouseInputListener, oldBorderPainted, propertyChangeListener, selectionBackground, selectionForeground |
| Methods inherited from class javax.swing.plaf.basic.BasicMenuUI |
createChangeListener, createMenuDragMouseListener, createMenuListener, createMouseInputListener, createPropertyChangeListener, getMaximumSize, getPropertyPrefix, installDefaults, installKeyboardActions, installListeners, setupPostTimer, uninstallDefaults, uninstallKeyboardActions, uninstallListeners |
| Methods inherited from class javax.swing.plaf.basic.BasicMenuItemUI |
createMenuKeyListener, doClick, getMinimumSize, getPath, getPreferredMenuItemSize, getPreferredSize, installComponents, installUI, paint, paintMenuItem, paintText, uninstallComponents, uninstallUI, update |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SIPCommChatSelectorMenuUI
public SIPCommChatSelectorMenuUI()
createUI
public static ComponentUI createUI(JComponent x)
- Creates a new SIPCommChatSelectorMenuUI instance.
- Parameters:
x - the component for which this UI is created
- Returns:
- the component UI
paintBackground
protected void paintBackground(Graphics g,
JMenuItem menuItem,
Color bgColor)
- Draws the background of the menu item.
- Overrides:
paintBackground in class BasicMenuItemUI
- Parameters:
g - the paint graphicsmenuItem - menu item to be paintedbgColor - selection background color- Since:
- 1.4
loadSkin
public void loadSkin()
- Loads skin.
- Specified by:
loadSkin in interface Skinnable
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.