public class PopupManager
extends java.lang.Object
PopupLayer,
WebInnerPopup,
WebButtonPopup,
WebInnerNotification| Modifier and Type | Field and Description |
|---|---|
protected static StyleId |
defaultPopupStyleId
Default style used for popups.
|
protected static java.util.Map<javax.swing.JRootPane,PopupLayer> |
popupLayers
Popup layers cache.
|
protected static java.util.Map<javax.swing.JRootPane,ShadeLayer> |
shadeLayers
Shade layers cache.
|
| Constructor and Description |
|---|
PopupManager() |
| Modifier and Type | Method and Description |
|---|---|
static StyleId |
getDefaultPopupStyleId()
Returns default popup style.
|
static PopupLayer |
getPopupLayer(java.awt.Component component)
Returns cached popup layer for root pane containing specified component.
|
static PopupLayer |
getPopupLayer(javax.swing.JRootPane rootPane)
Returns cached popup layer for the specified root pane.
|
static ShadeLayer |
getShadeLayer(javax.swing.JRootPane rootPane)
Returns cached shade layer for the specified root pane.
|
static void |
hideAllPopups()
Hides all visible popups on all cached popup layers.
|
static void |
hideAllPopups(javax.swing.JComponent component)
Hides all visible popups for the root pane under the specified component.
|
static void |
hideAllPopups(javax.swing.JRootPane rootPane)
Hides all visible popups for the specified root pane.
|
protected static void |
installPopupLayer(PopupLayer popupLayer,
javax.swing.JRootPane rootPane,
javax.swing.JLayeredPane layeredPane)
Installs popup layer for the specified root pane.
|
static void |
setDefaultPopupStyleId(StyleId id)
Sets default popup style.
|
static void |
showModalPopup(java.awt.Component component,
WebInnerPopup popup,
boolean hfill,
boolean vfill)
Displays popup as modal for the root pane containing specified component.
|
static void |
showModalPopup(java.awt.Component component,
WebInnerPopup popup,
boolean hfill,
boolean vfill,
boolean blockClose)
Displays popup as modal for the root pane containing specified component.
|
static void |
showModalPopup(javax.swing.JRootPane rootPane,
WebInnerPopup popup,
boolean hfill,
boolean vfill)
Displays popup as modal for the specified root pane.
|
static void |
showModalPopup(javax.swing.JRootPane rootPane,
WebInnerPopup popup,
boolean hfill,
boolean vfill,
boolean blockClose)
Displays popup as modal for the specified root pane.
|
static void |
showPopup(java.awt.Component component,
WebInnerPopup popup)
Displays popup for the root pane containing specified component.
|
static void |
showPopup(java.awt.Component component,
WebInnerPopup popup,
boolean transferFocus)
Displays popup for the root pane containing specified component.
|
static void |
showPopup(javax.swing.JRootPane rootPane,
WebInnerPopup popup,
boolean transferFocus)
Displays popup for the specified root pane.
|
protected static final java.util.Map<javax.swing.JRootPane,ShadeLayer> shadeLayers
protected static final java.util.Map<javax.swing.JRootPane,PopupLayer> popupLayers
protected static StyleId defaultPopupStyleId
public static void hideAllPopups()
public static void hideAllPopups(javax.swing.JComponent component)
component - component to processpublic static void hideAllPopups(javax.swing.JRootPane rootPane)
rootPane - root pane to processpublic static StyleId getDefaultPopupStyleId()
public static void setDefaultPopupStyleId(StyleId id)
id - default popup stylepublic static void showPopup(java.awt.Component component,
WebInnerPopup popup)
component - component used to determine root pane for which modal popup will be displayedpopup - popup to displaypublic static void showPopup(java.awt.Component component,
WebInnerPopup popup,
boolean transferFocus)
component - component used to determine root pane for which modal popup will be displayedpopup - popup to displaytransferFocus - whether to transfer focus to content of the displayed popup or notpublic static void showPopup(javax.swing.JRootPane rootPane,
WebInnerPopup popup,
boolean transferFocus)
rootPane - root pane used to display popuppopup - popup to displaytransferFocus - whether to transfer focus to content of the displayed popup or notpublic static void showModalPopup(java.awt.Component component,
WebInnerPopup popup,
boolean hfill,
boolean vfill)
component - component used to determine root pane for which modal popup will be displayedpopup - popup to displayhfill - whether popup should fill the whole available width or notvfill - whether popup should fill the whole available height or notpublic static void showModalPopup(java.awt.Component component,
WebInnerPopup popup,
boolean hfill,
boolean vfill,
boolean blockClose)
component - component used to determine root pane for which modal popup will be displayedpopup - popup to displayhfill - whether popup should fill the whole available width or notvfill - whether popup should fill the whole available height or notblockClose - whether or not popup close attemps should be blocked or notpublic static void showModalPopup(javax.swing.JRootPane rootPane,
WebInnerPopup popup,
boolean hfill,
boolean vfill)
rootPane - root pane used to display modal popuppopup - popup to displayhfill - whether popup should fill the whole available width or notvfill - whether popup should fill the whole available height or notpublic static void showModalPopup(javax.swing.JRootPane rootPane,
WebInnerPopup popup,
boolean hfill,
boolean vfill,
boolean blockClose)
rootPane - root pane used to display modal popuppopup - popup to displayhfill - whether popup should fill the whole available width or notvfill - whether popup should fill the whole available height or notblockClose - whether or not popup close attemps should be blocked or notpublic static PopupLayer getPopupLayer(java.awt.Component component)
component - component used to determine root pane for popup layerpublic static PopupLayer getPopupLayer(javax.swing.JRootPane rootPane)
rootPane - root pane for popup layerpublic static ShadeLayer getShadeLayer(javax.swing.JRootPane rootPane)
rootPane - root pane for the shade layerprotected static void installPopupLayer(PopupLayer popupLayer, javax.swing.JRootPane rootPane, javax.swing.JLayeredPane layeredPane)
popupLayer - popup layer to installrootPane - root pane for which popup layer should be installedlayeredPane - window's layered pane