public class IdeMenuBar extends javax.swing.JMenuBar implements IdeEventQueue.EventDispatcher, UISettingsListener
javax.swing.JMenuBar.AccessibleJMenuBar
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
protected Disposable |
myDisposable |
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
TOPIC
Modifier | Constructor and Description |
---|---|
protected |
IdeMenuBar() |
Modifier and Type | Method and Description |
---|---|
javax.swing.JMenu |
add(javax.swing.JMenu menu) |
void |
addNotify() |
protected ActionMenu |
createActionMenu(boolean enableMnemonics,
boolean isDarkMenu,
ActionGroup action) |
static IdeMenuBar |
createMenuBar() |
boolean |
dispatch(java.awt.AWTEvent e) |
protected void |
doInstallAppMenuIfNeeded(javax.swing.JFrame frame) |
void |
doLayout() |
javax.swing.border.Border |
getBorder() |
ActionGroup |
getMainMenuActionGroup() |
int |
getMenuCount() |
java.awt.Dimension |
getPreferredSize() |
com.intellij.openapi.wm.impl.IdeMenuBar.State |
getState() |
static void |
installAppMenuIfNeeded(javax.swing.JFrame frame) |
protected boolean |
isDarkMenu() |
void |
menuSelectionChanged(boolean isIncluded) |
void |
onToggleFullScreen(boolean isFullScreen) |
void |
paint(java.awt.Graphics g) |
protected void |
paintBackground(java.awt.Graphics g) |
protected void |
paintChildren(java.awt.Graphics g) |
protected void |
paintComponent(java.awt.Graphics g) |
void |
removeNotify() |
void |
uiSettingsChanged(UISettings uiSettings) |
protected void |
updateGlobalMenuRoots() |
getAccessibleContext, getComponent, getComponentAtIndex, getComponentIndex, getHelpMenu, getMargin, getMenu, getSelectionModel, getSubElements, getUI, getUIClassID, isBorderPainted, isSelected, paintBorder, paramString, processKeyBinding, processKeyEvent, processMouseEvent, setBorderPainted, setHelpMenu, setMargin, setSelected, setSelectionModel, setUI, updateUI
addAncestorListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
protected final Disposable myDisposable
public static IdeMenuBar createMenuBar()
public com.intellij.openapi.wm.impl.IdeMenuBar.State getState()
public javax.swing.JMenu add(javax.swing.JMenu menu)
add
in class javax.swing.JMenuBar
public javax.swing.border.Border getBorder()
getBorder
in class javax.swing.JComponent
public void paint(java.awt.Graphics g)
paint
in class javax.swing.JComponent
public void doLayout()
doLayout
in class java.awt.Container
public void menuSelectionChanged(boolean isIncluded)
menuSelectionChanged
in interface javax.swing.MenuElement
menuSelectionChanged
in class javax.swing.JMenuBar
public java.awt.Dimension getPreferredSize()
getPreferredSize
in class javax.swing.JComponent
public void addNotify()
addNotify
in class javax.swing.JMenuBar
public void removeNotify()
removeNotify
in class javax.swing.JMenuBar
public void uiSettingsChanged(UISettings uiSettings)
uiSettingsChanged
in interface UISettingsListener
public boolean dispatch(java.awt.AWTEvent e)
dispatch
in interface IdeEventQueue.EventDispatcher
protected boolean isDarkMenu()
protected ActionMenu createActionMenu(boolean enableMnemonics, boolean isDarkMenu, ActionGroup action)
protected void paintComponent(java.awt.Graphics g)
paintComponent
in class javax.swing.JComponent
protected void paintBackground(java.awt.Graphics g)
protected void paintChildren(java.awt.Graphics g)
paintChildren
in class javax.swing.JComponent
public ActionGroup getMainMenuActionGroup()
public int getMenuCount()
getMenuCount
in class javax.swing.JMenuBar
protected void updateGlobalMenuRoots()
public static void installAppMenuIfNeeded(javax.swing.JFrame frame)
protected void doInstallAppMenuIfNeeded(javax.swing.JFrame frame)
public void onToggleFullScreen(boolean isFullScreen)