public final class PopupManager
extends java.lang.Object
PopupLayer,
WebPopup,
WebButtonPopup,
WebNotificationPopup| Constructor and Description |
|---|
PopupManager() |
| Modifier and Type | Method and Description |
|---|---|
static Painter |
getDefaultPopupPainter()
Returns default popup painter.
|
static PopupStyle |
getDefaultPopupStyle()
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 Painter |
getPopupPainter(PopupStyle style)
Returns popup painter for the specified popup style.
|
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.
|
static void |
setDefaultPopupStyle(PopupStyle style)
Sets default popup style.
|
static void |
showModalPopup(java.awt.Component component,
WebPopup popup,
boolean hfill,
boolean vfill)
Displays popup as modal for the root pane containing specified component.
|
static void |
showModalPopup(java.awt.Component component,
WebPopup 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,
WebPopup popup,
boolean hfill,
boolean vfill)
Displays popup as modal for the specified root pane.
|
static void |
showModalPopup(javax.swing.JRootPane rootPane,
WebPopup popup,
boolean hfill,
boolean vfill,
boolean blockClose)
Displays popup as modal for the specified root pane.
|
static void |
showPopup(java.awt.Component component,
WebPopup popup)
Displays popup for the root pane containing specified component.
|
static void |
showPopup(java.awt.Component component,
WebPopup popup,
boolean transferFocus)
Displays popup for the root pane containing specified component.
|
static void |
showPopup(javax.swing.JRootPane rootPane,
WebPopup popup,
boolean transferFocus)
Displays popup for the specified root pane.
|
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 PopupStyle getDefaultPopupStyle()
public static void setDefaultPopupStyle(PopupStyle style)
style - default popup stylepublic static Painter getDefaultPopupPainter()
public static Painter getPopupPainter(PopupStyle style)
style - popup stylepublic static void showPopup(java.awt.Component component,
WebPopup 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,
WebPopup 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,
WebPopup 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 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 void showModalPopup(java.awt.Component component,
WebPopup 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,
WebPopup 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 notpublic static void showModalPopup(javax.swing.JRootPane rootPane,
WebPopup 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,
WebPopup 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 notpublic static ShadeLayer getShadeLayer(javax.swing.JRootPane rootPane)
rootPane - root pane for the shade layer