public abstract class AbstractPanelPopupWindow extends java.lang.Object implements PanelPopupWindow
PanelPopupWindow
, handles
the PanelPopupWindowListener
s.validateBounds(Rectangle, GraphicsConfiguration)
before they get visibleConstructor and Description |
---|
AbstractPanelPopupWindow() |
Modifier and Type | Method and Description |
---|---|
void |
addListener(PanelPopupWindowListener listener)
Adds a listener to this window.
|
protected void |
fireClosed()
Informs all listeners that this window has been closed
|
protected PanelPopupWindowListener[] |
listeners()
Returns an array containing all the listeners of this
AbstractPanelPopupWindow . |
void |
removeListener(PanelPopupWindowListener listener)
Removes a listener from this window.
|
protected java.awt.Rectangle |
validateBounds(java.awt.Rectangle bounds,
java.awt.GraphicsConfiguration configuration)
Should be called before this window is made visible, ensure that the boundaries are valid.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, isOpen
public void addListener(PanelPopupWindowListener listener)
PanelPopupWindow
addListener
in interface PanelPopupWindow
listener
- the new listenerpublic void removeListener(PanelPopupWindowListener listener)
PanelPopupWindow
removeListener
in interface PanelPopupWindow
listener
- the listenerprotected PanelPopupWindowListener[] listeners()
AbstractPanelPopupWindow
.protected void fireClosed()
protected java.awt.Rectangle validateBounds(java.awt.Rectangle bounds, java.awt.GraphicsConfiguration configuration)
bounds
- the proposed boundariesconfiguration
- the screen on which this window is going to be visible, might be null
null
to indicate that bounds
is valid