Class BasicPopupPanelUI
- 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
-
- Direct Known Subclasses:
BasicCommandPopupMenuPanelUI
,BasicRibbonApplicationMenuPopupPanelUI
,RadiancePopupPanelUI
public abstract class BasicPopupPanelUI extends PopupPanelUI
Basic UI for popup panelJPopupPanel
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
BasicPopupPanelUI.PopupPanelEscapeDismisser
This class is used to trace the changes in the shown popup panels and install ESC key listener on the matching root pane so that the popup panels can be dismissed with the ESC key.protected static class
BasicPopupPanelUI.WindowTracker
This class is used to dismiss popup panels on the following events: Mouse click outside any shown popup panel. Closing, iconifying or deactivation of a top-level window. Any change in the component hierarchy of a top-level window.
-
Field Summary
Fields Modifier and Type Field Description private java.awt.event.AWTEventListener
awtEventListener
protected JPopupPanel
popupPanel
The associated popup panel.(package private) static PopupPanelManager.PopupListener
popupPanelManagerListener
The global listener that tracks the ESC key action on the root panes of windows that show popup panels.
-
Constructor Summary
Constructors Constructor Description BasicPopupPanelUI()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
focusDown()
void
focusFirst()
void
focusLast()
void
focusLeft()
void
focusRight()
void
focusUp()
protected static void
initiliazeGlobalListeners()
Initializes the global listeners.protected void
installComponents()
Installs components on the associated command popup menu.protected void
installDefaults()
Installs default settings for 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)
-
-
-
Field Detail
-
popupPanel
protected JPopupPanel popupPanel
The associated popup panel.
-
awtEventListener
private java.awt.event.AWTEventListener awtEventListener
-
popupPanelManagerListener
static PopupPanelManager.PopupListener popupPanelManagerListener
The global listener that tracks the ESC key action on the root panes of windows that show popup panels.
-
-
Method Detail
-
installUI
public void installUI(javax.swing.JComponent c)
- Overrides:
installUI
in classjavax.swing.plaf.ComponentUI
-
uninstallUI
public void uninstallUI(javax.swing.JComponent c)
- Overrides:
uninstallUI
in classjavax.swing.plaf.ComponentUI
-
installDefaults
protected void installDefaults()
Installs default settings for the associated command popup menu.
-
installListeners
protected void installListeners()
Installs listeners on the associated command popup menu.
-
installComponents
protected void installComponents()
Installs components on the associated command popup menu.
-
uninstallDefaults
protected void uninstallDefaults()
Uninstalls default settings from the associated command popup menu.
-
uninstallListeners
protected void uninstallListeners()
Uninstalls listeners from the associated command popup menu.
-
uninstallComponents
protected void uninstallComponents()
Uninstalls subcomponents from the associated command popup menu.
-
initiliazeGlobalListeners
protected static void initiliazeGlobalListeners()
Initializes the global listeners.
-
focusFirst
public void focusFirst()
- Specified by:
focusFirst
in classPopupPanelUI
-
focusLast
public void focusLast()
- Specified by:
focusLast
in classPopupPanelUI
-
focusDown
public void focusDown()
- Specified by:
focusDown
in classPopupPanelUI
-
focusUp
public void focusUp()
- Specified by:
focusUp
in classPopupPanelUI
-
focusLeft
public void focusLeft()
- Specified by:
focusLeft
in classPopupPanelUI
-
focusRight
public void focusRight()
- Specified by:
focusRight
in classPopupPanelUI
-
-