|
JIDE 3.5.15 | ||||||||
| 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.MenuItemUI
com.jidesoft.plaf.vsnet.VsnetMenuItemUI
com.jidesoft.plaf.vsnet.VsnetMenuUI
public class VsnetMenuUI
Menu UI implementation
| Nested Class Summary | |
|---|---|
protected class |
VsnetMenuUI.MouseInputHandler
Instantiated and used by a menu item to handle the current menu selection from mouse events. |
protected static class |
VsnetMenuUI.PostAction
|
| Field Summary | |
|---|---|
protected ChangeListener |
changeListener
|
protected MenuListener |
menuListener
|
protected PropertyChangeListener |
propertyChangeListener
|
| Fields inherited from class com.jidesoft.plaf.vsnet.VsnetMenuItemUI |
|---|
_isFloatingIcon, acceleratorFont, acceleratorForeground, acceleratorRect, acceleratorSelectionForeground, arrowIcon, arrowIconRect, backgroundColor, borderColor, checkIcon, checkIconRect, defaultAccelEndGap, defaultShadowWidth, defaultTextIconGap, disabledForeground, iconRect, menuDragMouseListener, menuItem, menuKeyListener, mouseInputListener, oldBorderPainted, selectionBackground, selectionForeground, shadowColor, textRect, viewRect, windowInputMap, zeroRect |
| Constructor Summary | |
|---|---|
VsnetMenuUI()
|
|
| Method Summary | |
|---|---|
protected static void |
appendPath(MenuElement[] path,
MenuElement elem)
|
protected ActionMap |
createActionMap()
Invoked to create the ActionMap. |
protected ChangeListener |
createChangeListener(JComponent c)
|
protected MenuDragMouseListener |
createMenuDragMouseListener(JComponent c)
|
protected MenuKeyListener |
createMenuKeyListener(JComponent c)
|
protected MenuListener |
createMenuListener(JComponent c)
|
protected MouseInputListener |
createMouseInputListener(JComponent c)
|
protected PopupMenuListener |
createPopupMenuListener()
|
protected PropertyChangeListener |
createPropertyChangeListener(JComponent c)
|
static ComponentUI |
createUI(JComponent x)
|
protected ActionMap |
getActionMap()
The ActionMap for BasicMenUI can not be shared, this is subclassed to create a new one for each invocation. |
Dimension |
getMaximumSize(JComponent c)
|
Dimension |
getPreferredSize(JComponent c)
|
protected String |
getPropertyPrefix()
|
protected void |
installDefaults()
|
protected void |
installKeyboardActions()
|
protected void |
installListeners()
|
protected boolean |
isMouseOver()
Get the temporary flag to indicate if the mouse has entered the menu. |
protected void |
paintBackground(Graphics g,
JMenuItem menuItem,
Color bgColor)
Draws the background of the menu item. |
protected void |
paintText(Graphics g,
JMenuItem menuItem,
Rectangle textRect,
String text)
Method which renders the text of the current menu item. |
protected void |
setMouseOver(boolean over)
Set the temporary flag to indicate if the mouse has entered the menu. |
protected static void |
setupPostTimer(JMenu menu)
|
protected void |
uninstallDefaults()
|
protected void |
uninstallKeyboardActions()
|
protected void |
uninstallListeners()
|
protected void |
updateMnemonicBinding()
|
| Methods inherited from class com.jidesoft.plaf.vsnet.VsnetMenuItemUI |
|---|
createInputMap, doClick, getIcon, getMinimumSize, getPainter, getPath, getPreferredMenuItemSize, getRightMargin, installComponents, installUI, isDownArrowVisible, isFloatingIcon, paint, paintCheckBox, paintIcon, paintMenuItem, uninstallComponents, uninstallUI, update, useCheckAndArrow |
| 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 |
|---|
protected ChangeListener changeListener
protected PropertyChangeListener propertyChangeListener
protected MenuListener menuListener
| Constructor Detail |
|---|
public VsnetMenuUI()
| Method Detail |
|---|
public static ComponentUI createUI(JComponent x)
protected void installDefaults()
installDefaults in class VsnetMenuItemUIprotected String getPropertyPrefix()
getPropertyPrefix in class VsnetMenuItemUI
protected void paintBackground(Graphics g,
JMenuItem menuItem,
Color bgColor)
VsnetMenuItemUI
paintBackground in class VsnetMenuItemUIg - the paint graphicsmenuItem - menu item to be paintedbgColor - selection background colorprotected void installListeners()
installListeners in class VsnetMenuItemUIprotected PopupMenuListener createPopupMenuListener()
protected void installKeyboardActions()
installKeyboardActions in class VsnetMenuItemUIprotected void updateMnemonicBinding()
protected void uninstallKeyboardActions()
uninstallKeyboardActions in class VsnetMenuItemUIprotected ActionMap getActionMap()
getActionMap in class VsnetMenuItemUIprotected ActionMap createActionMap()
createActionMap in class VsnetMenuItemUIprotected MouseInputListener createMouseInputListener(JComponent c)
createMouseInputListener in class VsnetMenuItemUIprotected MenuListener createMenuListener(JComponent c)
protected ChangeListener createChangeListener(JComponent c)
protected PropertyChangeListener createPropertyChangeListener(JComponent c)
protected void uninstallDefaults()
uninstallDefaults in class VsnetMenuItemUIprotected void uninstallListeners()
uninstallListeners in class VsnetMenuItemUIprotected MenuDragMouseListener createMenuDragMouseListener(JComponent c)
createMenuDragMouseListener in class VsnetMenuItemUIprotected MenuKeyListener createMenuKeyListener(JComponent c)
createMenuKeyListener in class VsnetMenuItemUIpublic Dimension getMaximumSize(JComponent c)
getMaximumSize in class VsnetMenuItemUIprotected static void setupPostTimer(JMenu menu)
protected static void appendPath(MenuElement[] path,
MenuElement elem)
protected void paintText(Graphics g,
JMenuItem menuItem,
Rectangle textRect,
String text)
paintText in class VsnetMenuItemUIg - Graphics contextmenuItem - Current menu item to rendertextRect - Bounding rectangle to render the text.text - String to renderprotected void setMouseOver(boolean over)
over - the flagprotected boolean isMouseOver()
public Dimension getPreferredSize(JComponent c)
getPreferredSize in class VsnetMenuItemUI
|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||