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 BasicPopupPanelUI
BasicPopupPanelUI.PopupPanelEscapeDismisser, BasicPopupPanelUI.WindowTracker -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected JRibbonApplicationMenuPopupPanelThe associated application menu button.private JPanelprotected JPanelprivate static final CommandButtonPresentationStateprivate JPanelprotected JPanelprotected JScrollablePanel<JPanel> Fields inherited from class BasicPopupPanelUI
popupPanel -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate ComponentfindFirstFocusableAfter(Component[] components, int index, boolean onlyMenuButtons) private ComponentfindLastFocusableBefore(Component[] components, int index, boolean onlyMenuButtons) voidvoidvoidfocusUp()private booleangetCommandPath(CommandMenuContentModel commandMenuContentModel, Command command, List<Command> pathTo) private intgetFocusedIndex(Component[] components) private JCommandButtongetMenuButtonForCommand(Command command) getPathToSequence(Command command) private JCommandButtongetPrimaryForCommand(Command command) private intprivate JCommandButtongetSecondaryForCommand(Command command) protected voidInstalls components on the associated command popup menu.protected voidInstalls listeners on the associated command popup menu.voidprotected voidUninstalls subcomponents from the associated command popup menu.protected voidUninstalls default settings from the associated command popup menu.protected voidUninstalls listeners from the associated command popup menu.voidMethods inherited from class BasicPopupPanelUI
focusFirst, focusLast, focusLeft, initiliazeGlobalListeners, installDefaultsMethods inherited from class 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:
installUIin classBasicPopupPanelUI
-
uninstallUI
- Overrides:
uninstallUIin classBasicPopupPanelUI
-
installComponents
protected void installComponents()Description copied from class:BasicPopupPanelUIInstalls components on the associated command popup menu.- Overrides:
installComponentsin classBasicPopupPanelUI
-
installListeners
protected void installListeners()Description copied from class:BasicPopupPanelUIInstalls listeners on the associated command popup menu.- Overrides:
installListenersin classBasicPopupPanelUI
-
uninstallDefaults
protected void uninstallDefaults()Description copied from class:BasicPopupPanelUIUninstalls default settings from the associated command popup menu.- Overrides:
uninstallDefaultsin classBasicPopupPanelUI
-
uninstallComponents
protected void uninstallComponents()Description copied from class:BasicPopupPanelUIUninstalls subcomponents from the associated command popup menu.- Overrides:
uninstallComponentsin classBasicPopupPanelUI
-
uninstallListeners
protected void uninstallListeners()Description copied from class:BasicPopupPanelUIUninstalls listeners from the associated command popup menu.- Overrides:
uninstallListenersin 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:
focusDownin classBasicPopupPanelUI
-
focusUp
public void focusUp()- Overrides:
focusUpin classBasicPopupPanelUI
-
focusRight
public void focusRight()- Overrides:
focusRightin classBasicPopupPanelUI
-