Package docking.widgets
Class PopupWindow
- java.lang.Object
-
- docking.widgets.PopupWindow
-
public class PopupWindow extends java.lang.Object
A generic window intended to be used as a temporary window to show information. This window is designed to stay open as long as the user mouses over the window. Once the user mouses away, the window will be closed.
-
-
Constructor Summary
Constructors Constructor Description PopupWindow(java.awt.Component sourceComponent, javax.swing.JComponent displayComponent)
PopupWindow(java.awt.Window parentWindow, javax.swing.JComponent displayComponent)
PopupWindow(javax.swing.JComponent displayComponent)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addComponentListener(java.awt.event.ComponentListener listener)
void
dispose()
javax.swing.JComponent
getDisplayComponent()
void
hide()
static void
hideAllWindows()
boolean
isShowing()
void
pack()
void
setCloseWindowDelay(int delayInMillis)
Sets the amount of time that will pass before the popup window is closed after the user moves away from the popup window and out of the neutral zonevoid
setWindowName(java.lang.String name)
void
showOffsetPopup(java.awt.event.MouseEvent e, java.awt.Rectangle keepVisibleSize)
void
showPopup(java.awt.event.MouseEvent e)
-
-
-
Constructor Detail
-
PopupWindow
public PopupWindow(javax.swing.JComponent displayComponent)
-
PopupWindow
public PopupWindow(java.awt.Component sourceComponent, javax.swing.JComponent displayComponent)
-
PopupWindow
public PopupWindow(java.awt.Window parentWindow, javax.swing.JComponent displayComponent)
-
-
Method Detail
-
hideAllWindows
public static void hideAllWindows()
-
getDisplayComponent
public javax.swing.JComponent getDisplayComponent()
-
setWindowName
public void setWindowName(java.lang.String name)
-
addComponentListener
public void addComponentListener(java.awt.event.ComponentListener listener)
-
isShowing
public boolean isShowing()
-
hide
public void hide()
-
dispose
public void dispose()
-
pack
public void pack()
-
setCloseWindowDelay
public void setCloseWindowDelay(int delayInMillis)
Sets the amount of time that will pass before the popup window is closed after the user moves away from the popup window and out of the neutral zone- Parameters:
delayInMillis
- the timer delay
-
showOffsetPopup
public void showOffsetPopup(java.awt.event.MouseEvent e, java.awt.Rectangle keepVisibleSize)
-
showPopup
public void showPopup(java.awt.event.MouseEvent e)
-
-