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 JRibbonApplicationMenuPopupPanelapplicationMenuPopupPanelThe associated application menu button.private javax.swing.JPanelfooterPanelprotected javax.swing.JPanelmainPanelprivate static CommandButtonPresentationStateMENU_TILE_LEVEL_1private javax.swing.JPanelpanelLevel1protected javax.swing.JPanelpanelLevel2protected 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.ComponentfindFirstFocusableAfter(java.awt.Component[] components, int index, boolean onlyMenuButtons)private java.awt.ComponentfindLastFocusableBefore(java.awt.Component[] components, int index, boolean onlyMenuButtons)voidfocusDown()voidfocusRight()voidfocusUp()private booleangetCommandPath(CommandMenuContentModel commandMenuContentModel, Command command, java.util.List<Command> pathTo)private intgetFocusedIndex(java.awt.Component[] components)javax.swing.JPanelgetFooterPanel()private JCommandButtongetMenuButtonForCommand(Command command)javax.swing.JPanelgetPanelLevel1()javax.swing.JPanelgetPanelLevel2()java.lang.RunnablegetPathToSequence(Command command)private JCommandButtongetPrimaryForCommand(Command command)private intgetSecondaryFocusedIndex()private JCommandButtongetSecondaryForCommand(Command command)protected voidinstallComponents()Installs components on the associated command popup menu.protected voidinstallListeners()Installs listeners on the associated command popup menu.voidinstallUI(javax.swing.JComponent c)protected voiduninstallComponents()Uninstalls subcomponents from the associated command popup menu.protected voiduninstallDefaults()Uninstalls default settings from the associated command popup menu.protected voiduninstallListeners()Uninstalls listeners from the associated command popup menu.voiduninstallUI(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:
installUIin classBasicPopupPanelUI
-
uninstallUI
public void uninstallUI(javax.swing.JComponent c)
- 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
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:
focusDownin classBasicPopupPanelUI
-
focusUp
public void focusUp()
- Overrides:
focusUpin classBasicPopupPanelUI
-
focusRight
public void focusRight()
- Overrides:
focusRightin classBasicPopupPanelUI
-
-