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
public abstract class BasicRibbonApplicationMenuPopupPanelUI extends BasicPopupPanelUI
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
Fields Modifier and Type Field Description protected JRibbonApplicationMenuPopupPanel
applicationMenuPopupPanel
The associated application menu button.private javax.swing.JPanel
footerPanel
protected javax.swing.JPanel
mainPanel
private static CommandButtonPresentationState
MENU_TILE_LEVEL_1
private javax.swing.JPanel
panelLevel1
protected javax.swing.JPanel
panelLevel2
protected JScrollablePanel<javax.swing.JPanel>
panelScrollerLevel2
-
Fields inherited from class org.pushingpixels.radiance.component.internal.ui.common.popup.BasicPopupPanelUI
popupPanel
-
-
Constructor Summary
Constructors Constructor Description BasicRibbonApplicationMenuPopupPanelUI()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private java.awt.Component
findFirstFocusableAfter(java.awt.Component[] components, int index, boolean onlyMenuButtons)
private java.awt.Component
findLastFocusableBefore(java.awt.Component[] components, int index, boolean onlyMenuButtons)
void
focusDown()
void
focusRight()
void
focusUp()
private boolean
getCommandPath(CommandMenuContentModel commandMenuContentModel, Command command, java.util.List<Command> pathTo)
private int
getFocusedIndex(java.awt.Component[] components)
javax.swing.JPanel
getFooterPanel()
private JCommandButton
getMenuButtonForCommand(Command command)
javax.swing.JPanel
getPanelLevel1()
javax.swing.JPanel
getPanelLevel2()
java.lang.Runnable
getPathToSequence(Command command)
private JCommandButton
getPrimaryForCommand(Command command)
private int
getSecondaryFocusedIndex()
private JCommandButton
getSecondaryForCommand(Command command)
protected void
installComponents()
Installs components on the associated command popup menu.protected void
installListeners()
Installs listeners on the associated command popup menu.void
installUI(javax.swing.JComponent c)
protected void
uninstallComponents()
Uninstalls subcomponents from the associated command popup menu.protected void
uninstallDefaults()
Uninstalls default settings from the associated command popup menu.protected void
uninstallListeners()
Uninstalls listeners from the associated command popup menu.void
uninstallUI(javax.swing.JComponent c)
-
Methods inherited from class org.pushingpixels.radiance.component.internal.ui.common.popup.BasicPopupPanelUI
focusFirst, focusLast, focusLeft, initiliazeGlobalListeners, installDefaults
-
-
-
-
Field Detail
-
panelLevel1
private javax.swing.JPanel panelLevel1
-
panelScrollerLevel2
protected JScrollablePanel<javax.swing.JPanel> panelScrollerLevel2
-
panelLevel2
protected javax.swing.JPanel panelLevel2
-
footerPanel
private javax.swing.JPanel footerPanel
-
MENU_TILE_LEVEL_1
private static final CommandButtonPresentationState MENU_TILE_LEVEL_1
-
applicationMenuPopupPanel
protected JRibbonApplicationMenuPopupPanel applicationMenuPopupPanel
The associated application menu button.
-
mainPanel
protected javax.swing.JPanel mainPanel
-
-
Method Detail
-
installUI
public void installUI(javax.swing.JComponent c)
- Overrides:
installUI
in classBasicPopupPanelUI
-
uninstallUI
public void uninstallUI(javax.swing.JComponent c)
- 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
public javax.swing.JPanel getPanelLevel1()
-
getPanelLevel2
public javax.swing.JPanel getPanelLevel2()
-
getFooterPanel
public javax.swing.JPanel getFooterPanel()
-
getCommandPath
private boolean getCommandPath(CommandMenuContentModel commandMenuContentModel, Command command, java.util.List<Command> pathTo)
-
getPrimaryForCommand
private JCommandButton getPrimaryForCommand(Command command)
-
getSecondaryForCommand
private JCommandButton getSecondaryForCommand(Command command)
-
getMenuButtonForCommand
private JCommandButton getMenuButtonForCommand(Command command)
-
getPathToSequence
public java.lang.Runnable getPathToSequence(Command command)
-
getFocusedIndex
private int getFocusedIndex(java.awt.Component[] components)
-
findFirstFocusableAfter
private java.awt.Component findFirstFocusableAfter(java.awt.Component[] components, int index, boolean onlyMenuButtons)
-
findLastFocusableBefore
private java.awt.Component findLastFocusableBefore(java.awt.Component[] components, int index, boolean onlyMenuButtons)
-
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
-
-