|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.alee.managers.popup.PopupManager
public final class PopupManager
This manager allows you to add your own popups within the window/applet root pane bounds.
PopupLayer
,
WebPopup
,
WebButtonPopup
,
WebNotificationPopup
Constructor Summary | |
---|---|
PopupManager()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PopupManager()
Method Detail |
---|
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 style
public 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 layer
public static PopupLayer getPopupLayer(javax.swing.JRootPane rootPane)
rootPane
- root pane for popup layer
public 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |