Class BasicRibbonApplicationMenuPopupPanelUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.PanelUI
org.pushingpixels.radiance.component.internal.ui.common.popup.PopupPanelUI
org.pushingpixels.radiance.component.internal.ui.common.popup.BasicPopupPanelUI
org.pushingpixels.radiance.component.internal.ui.ribbon.appmenu.BasicRibbonApplicationMenuPopupPanelUI
- Direct Known Subclasses:
RadianceRibbonApplicationMenuPopupPanelUI
Basic UI for ribbon application menu button.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.pushingpixels.radiance.component.internal.ui.common.popup.BasicPopupPanelUI
BasicPopupPanelUI.PopupPanelEscapeDismisser, BasicPopupPanelUI.WindowTracker
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected JRibbonApplicationMenuPopupPanel
The associated application menu button.private JPanel
protected JPanel
private static final CommandButtonPresentationState
private JPanel
protected JPanel
protected JScrollablePanel
<JPanel> Fields inherited from class org.pushingpixels.radiance.component.internal.ui.common.popup.BasicPopupPanelUI
popupPanel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate Component
findFirstFocusableAfter
(Component[] components, int index, boolean onlyMenuButtons) private Component
findLastFocusableBefore
(Component[] components, int index, boolean onlyMenuButtons) void
void
void
focusUp()
private boolean
getCommandPath
(CommandMenuContentModel commandMenuContentModel, Command command, List<Command> pathTo) private int
getFocusedIndex
(Component[] components) private JCommandButton
getMenuButtonForCommand
(Command command) getPathToSequence
(Command command) private JCommandButton
getPrimaryForCommand
(Command command) private int
private JCommandButton
getSecondaryForCommand
(Command command) protected void
Installs components on the associated command popup menu.protected void
Installs listeners on the associated command popup menu.void
protected void
Uninstalls subcomponents from the associated command popup menu.protected void
Uninstalls default settings from the associated command popup menu.protected void
Uninstalls listeners from the associated command popup menu.void
Methods inherited from class org.pushingpixels.radiance.component.internal.ui.common.popup.BasicPopupPanelUI
focusFirst, focusLast, focusLeft, initiliazeGlobalListeners, installDefaults
Methods inherited from class javax.swing.plaf.ComponentUI
contains, createUI, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, paint, update
-
Field Details
-
panelLevel1
-
panelScrollerLevel2
-
panelLevel2
-
MENU_TILE_LEVEL_1
-
applicationMenuPopupPanel
The associated application menu button. -
mainPanel
-
-
Constructor Details
-
BasicRibbonApplicationMenuPopupPanelUI
public BasicRibbonApplicationMenuPopupPanelUI()
-
-
Method Details
-
installUI
- Overrides:
installUI
in classBasicPopupPanelUI
-
uninstallUI
- Overrides:
uninstallUI
in classBasicPopupPanelUI
-
installComponents
protected void installComponents()Description copied from class:BasicPopupPanelUI
Installs components on the associated command popup menu.- Overrides:
installComponents
in classBasicPopupPanelUI
-
installListeners
protected void installListeners()Description copied from class:BasicPopupPanelUI
Installs listeners on the associated command popup menu.- Overrides:
installListeners
in classBasicPopupPanelUI
-
uninstallDefaults
protected void uninstallDefaults()Description copied from class:BasicPopupPanelUI
Uninstalls default settings from the associated command popup menu.- Overrides:
uninstallDefaults
in classBasicPopupPanelUI
-
uninstallComponents
protected void uninstallComponents()Description copied from class:BasicPopupPanelUI
Uninstalls subcomponents from the associated command popup menu.- Overrides:
uninstallComponents
in classBasicPopupPanelUI
-
uninstallListeners
protected void uninstallListeners()Description copied from class:BasicPopupPanelUI
Uninstalls listeners from the associated command popup menu.- Overrides:
uninstallListeners
in classBasicPopupPanelUI
-
getPanelLevel1
-
getPanelLevel2
-
getCommandPath
private boolean getCommandPath(CommandMenuContentModel commandMenuContentModel, Command command, List<Command> pathTo) -
getPrimaryForCommand
-
getSecondaryForCommand
-
getMenuButtonForCommand
-
getPathToSequence
-
getFocusedIndex
-
findFirstFocusableAfter
-
findLastFocusableBefore
-
getSecondaryFocusedIndex
private int getSecondaryFocusedIndex() -
focusDown
public void focusDown()- Overrides:
focusDown
in classBasicPopupPanelUI
-
focusUp
public void focusUp()- Overrides:
focusUp
in classBasicPopupPanelUI
-
focusRight
public void focusRight()- Overrides:
focusRight
in classBasicPopupPanelUI
-