|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pushingpixels.flamingo.api.common.popup.PopupPanelManager
public class PopupPanelManager
Manager for showing and hiding JPopupPanel
s.
Nested Class Summary | |
---|---|
static class |
PopupPanelManager.PopupEvent
Popup event. |
static class |
PopupPanelManager.PopupInfo
Information on a single showing popup. |
static interface |
PopupPanelManager.PopupListener
Listener on showing and hiding the popup panels. |
Field Summary | |
---|---|
protected javax.swing.event.EventListenerList |
listenerList
List of all registered listeners. |
protected java.util.Map<JPopupPanel,javax.swing.Popup> |
popupPanels
Map of all popup panels and associated Popup objects. |
protected java.util.LinkedList<PopupPanelManager.PopupInfo> |
shownPath
All currently shown popup panels. |
Constructor Summary | |
---|---|
PopupPanelManager()
|
Method Summary | |
---|---|
void |
addPopup(javax.swing.JComponent popupOriginator,
javax.swing.Popup popup,
JPopupPanel popupInitiator)
Adds new popup to the tracking structures. |
void |
addPopupListener(PopupPanelManager.PopupListener l)
Adds the specified popup listener. |
static PopupPanelManager |
defaultManager()
Returns the default popup panel manager. |
protected void |
firePopupHidden(JPopupPanel panel,
javax.swing.JComponent popupOriginator)
Fires an event on hiding the specified popup panel. |
protected void |
firePopupShown(JPopupPanel panel,
javax.swing.JComponent popupOriginator)
Fires an event on showing the specified popup panel. |
java.util.List<PopupPanelManager.PopupInfo> |
getShownPath()
Returns all currently shown popup panels. |
void |
hideLastPopup()
Hides the last shown popup panel. |
void |
hidePopups(java.awt.Component comp)
Hides all popup panels based on the specified component. |
void |
removePopupListener(PopupPanelManager.PopupListener l)
Removes the specified popup listener. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected javax.swing.event.EventListenerList listenerList
protected java.util.LinkedList<PopupPanelManager.PopupInfo> shownPath
protected java.util.Map<JPopupPanel,javax.swing.Popup> popupPanels
Popup
objects.
Constructor Detail |
---|
public PopupPanelManager()
Method Detail |
---|
public static PopupPanelManager defaultManager()
public void addPopup(javax.swing.JComponent popupOriginator, javax.swing.Popup popup, JPopupPanel popupInitiator)
popupOriginator
- The originating component.popup
- The new popup.popupInitiator
- The initiator of the popup.public void hideLastPopup()
public void hidePopups(java.awt.Component comp)
null
, all popup panels are closed.
comp
- Component.public java.util.List<PopupPanelManager.PopupInfo> getShownPath()
public void addPopupListener(PopupPanelManager.PopupListener l)
l
- Listener to add.public void removePopupListener(PopupPanelManager.PopupListener l)
l
- Listener to remove.protected void firePopupShown(JPopupPanel panel, javax.swing.JComponent popupOriginator)
panel
- Popup panel that was shown.popupOriginator
- The originating component.protected void firePopupHidden(JPopupPanel panel, javax.swing.JComponent popupOriginator)
panel
- Popup panel that was hidden.popupOriginator
- The originating component.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |