Класс BasicMenuBarUI
- java.lang.Object
-
- javax.swing.plaf.ComponentUI
-
- javax.swing.plaf.MenuBarUI
-
- javax.swing.plaf.basic.BasicMenuBarUI
- Прямые известные подклассы:
-
MetalMenuBarUI,SynthMenuBarUI
public class BasicMenuBarUI extends MenuBarUI
Реализация по умолчанию L&F для MenuBarUI. Эта реализация — "комбинированный" вид/контроллер.
Поля
| Модификатор и тип | Поле | Описание |
|---|---|---|
protected ChangeListener | changeListener | Экземпляр |
protected ContainerListener | containerListener | Экземпляр |
protected JMenuBar | menuBar | Экземпляр |
Конструкторы
| Конструктор | Описание |
|---|---|
BasicMenuBarUI() |
Методы
| Модификатор и тип | Метод | Описание |
|---|---|---|
protected ChangeListener | createChangeListener() | Возвращает экземпляр |
protected ContainerListener | createContainerListener() | Возвращает экземпляр |
static ComponentUI | createUI(JComponent x) | Возвращает новый экземпляр |
protected void | installDefaults() | Устанавливает свойства по умолчанию. |
protected void | installKeyboardActions() | Регистрирует действия клавиатуры. |
protected void | installListeners() | Регистрирует слушателей. |
protected void | uninstallDefaults() | Отменяет установку свойств по умолчанию. |
protected void | uninstallKeyboardActions() | Отменяет регистрацию действий клавиатуры. |
protected void | uninstallListeners() | Отменяет регистрацию слушателей. |
Методы, объявленные в классе javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, installUI, paint, uninstallUI, updateМетоды, объявленные в классе java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitПоля
menuBar
protected JMenuBar menuBar
Экземпляр JMenuBar.
containerListener
protected ContainerListener containerListener
Экземпляр ContainerListener.
changeListener
protected ChangeListener changeListener
Экземпляр ChangeListener.
Конструкторы
BasicMenuBarUI
public BasicMenuBarUI()
Методы
createUI
public static ComponentUI createUI(JComponent x)
Возвращает новый экземпляр BasicMenuBarUI.
- Параметры:
-
x- компонент - Возвращает:
- новый экземпляр
BasicMenuBarUI
installDefaults
protected void installDefaults()
Устанавливает свойства по умолчанию.
installListeners
protected void installListeners()
Регистрирует слушателей.
installKeyboardActions
protected void installKeyboardActions()
Регистрирует действия клавиатуры.
uninstallDefaults
protected void uninstallDefaults()
Отменяет установку свойств по умолчанию.
uninstallListeners
protected void uninstallListeners()
Отменяет регистрацию слушателей.
uninstallKeyboardActions
protected void uninstallKeyboardActions()
Отменяет регистрацию действий клавиатуры.
createContainerListener
protected ContainerListener createContainerListener()
Возвращает экземпляр ContainerListener.
- Возвращает:
- экземпляр
ContainerListener
createChangeListener
protected ChangeListener createChangeListener()
Возвращает экземпляр ChangeListener.
- Возвращает:
- экземпляр
ChangeListener
© 1993, 2020, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/plaf/basic/BasicMenuBarUI.html