Class AbstractPanelPopupWindow
java.lang.Object
bibliothek.gui.dock.common.action.panel.AbstractPanelPopupWindow
- All Implemented Interfaces:
PanelPopupWindow
- Direct Known Subclasses:
DialogWindow,MenuWindow
Abstract implementation of
Subclasses should call
PanelPopupWindow, handles
the PanelPopupWindowListeners.Subclasses should call
validateBounds(Rectangle, GraphicsConfiguration) before they get visible- Author:
- Benjamin Sigg
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(PanelPopupWindowListener listener) Adds a listener to this window.protected voidInforms all listeners that this window has been closedprotected PanelPopupWindowListener[]Returns an array containing all the listeners of thisAbstractPanelPopupWindow.voidremoveListener(PanelPopupWindowListener listener) Removes a listener from this window.protected RectanglevalidateBounds(Rectangle bounds, GraphicsConfiguration configuration) Should be called before this window is made visible, ensure that the boundaries are valid.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface bibliothek.gui.dock.common.action.panel.PanelPopupWindow
close, isOpen
-
Constructor Details
-
AbstractPanelPopupWindow
public AbstractPanelPopupWindow()
-
-
Method Details
-
addListener
Description copied from interface:PanelPopupWindowAdds a listener to this window.- Specified by:
addListenerin interfacePanelPopupWindow- Parameters:
listener- the new listener
-
removeListener
Description copied from interface:PanelPopupWindowRemoves a listener from this window.- Specified by:
removeListenerin interfacePanelPopupWindow- Parameters:
listener- the listener
-
listeners
Returns an array containing all the listeners of thisAbstractPanelPopupWindow.- Returns:
- all the listeners
-
fireClosed
protected void fireClosed()Informs all listeners that this window has been closed -
validateBounds
Should be called before this window is made visible, ensure that the boundaries are valid.- Parameters:
bounds- the proposed boundariesconfiguration- the screen on which this window is going to be visible, might benull- Returns:
- the actual boundaries, can be
nullto indicate thatboundsis valid
-