Class BasicCommandPopupMenuPanelUI
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.common.popup.BasicCommandPopupMenuPanelUI
- Direct Known Subclasses:
BasicColorSelectorPopupMenuPanelUI
,RadianceCommandPopupMenuPanelUI
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class
protected class
protected static class
Popup panel that hosts groups of icons.Nested classes/interfaces inherited from class org.pushingpixels.radiance.component.internal.ui.common.popup.BasicPopupPanelUI
BasicPopupPanelUI.PopupPanelEscapeDismisser, BasicPopupPanelUI.WindowTracker
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
protected JScrollablePanel
<JPanel> private PopupPanelManager.PopupListener
protected AbstractPopupMenuPanel
The associated popup menu panelprivate ChangeListener
Fields inherited from class org.pushingpixels.radiance.component.internal.ui.common.popup.BasicPopupPanelUI
popupPanel, popupPanelManagerListener
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected LayoutManager
protected abstract JPanel
private Component
findFirstFocusableAfter
(List<Component> components, int index) private Component
findLastFocusableBefore
(List<Component> components, int index) private void
focusAndScrollToMenuItem
(Component popupMenuComponent) void
void
void
void
void
void
focusUp()
private int
getFocusedIndex
(List<Component> components) protected int
protected boolean
protected void
Installs components on the associated command popup menu.protected void
Installs listeners on the associated command popup menu.void
private boolean
protected void
protected void
Uninstalls subcomponents from the associated command popup menu.protected void
Uninstalls listeners from the associated command popup menu.Methods inherited from class org.pushingpixels.radiance.component.internal.ui.common.popup.BasicPopupPanelUI
initiliazeGlobalListeners, installDefaults, uninstallDefaults, uninstallUI
Methods inherited from class javax.swing.plaf.ComponentUI
contains, createUI, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, paint, update
-
Field Details
-
popupMenuPanel
The associated popup menu panel -
popupMenuPanelChangeListener
-
popupListener
-
commandButtonPanel
-
FORCE_ICON
- See Also:
-
-
Constructor Details
-
BasicCommandPopupMenuPanelUI
public BasicCommandPopupMenuPanelUI()
-
-
Method Details
-
installUI
- Overrides:
installUI
in classBasicPopupPanelUI
-
installComponents
protected void installComponents()Description copied from class:BasicPopupPanelUI
Installs components on the associated command popup menu.- Overrides:
installComponents
in classBasicPopupPanelUI
-
hasLeadingButtonPanel
protected boolean hasLeadingButtonPanel() -
getMaxVisibleMenuCommands
protected int getMaxVisibleMenuCommands() -
syncComponents
protected void syncComponents() -
createScrollableButtonPanel
-
uninstallComponents
protected void uninstallComponents()Description copied from class:BasicPopupPanelUI
Uninstalls subcomponents from the associated command popup menu.- Overrides:
uninstallComponents
in classBasicPopupPanelUI
-
installListeners
protected void installListeners()Description copied from class:BasicPopupPanelUI
Installs listeners on the associated command popup menu.- Overrides:
installListeners
in classBasicPopupPanelUI
-
uninstallListeners
protected void uninstallListeners()Description copied from class:BasicPopupPanelUI
Uninstalls listeners from the associated command popup menu.- Overrides:
uninstallListeners
in classBasicPopupPanelUI
-
createMenuPanel
-
createLayoutManager
-
focusAndScrollToMenuItem
-
focusFirst
public void focusFirst()- Overrides:
focusFirst
in classBasicPopupPanelUI
-
focusLast
public void focusLast()- Overrides:
focusLast
in classBasicPopupPanelUI
-
getFocusedIndex
-
findFirstFocusableAfter
-
findLastFocusableBefore
-
focusDown
public void focusDown()- Overrides:
focusDown
in classBasicPopupPanelUI
-
focusUp
public void focusUp()- Overrides:
focusUp
in classBasicPopupPanelUI
-
maybeMoveFocusToAnotherPopup
private boolean maybeMoveFocusToAnotherPopup() -
focusRight
public void focusRight()- Overrides:
focusRight
in classBasicPopupPanelUI
-
focusLeft
public void focusLeft()- Overrides:
focusLeft
in classBasicPopupPanelUI
-