java.lang.Object
de.grogra.pf.ui.autocomplete.impl.PopupWindowDecorator
A hook allowing hosting applications to decorate JWindows created by the
AutoComplete library. For example, you could use the
JGoodies library to add drop shadows
to the windows.
- Version:
- 1.0
- Author:
- Robert Futrell
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
Callback called whenever an appropriate JWindow is created by the AutoComplete library.static PopupWindowDecorator
get()
Returns the singleton instance of this class.static void
set
(PopupWindowDecorator decorator) Sets the singleton instance of this class.
-
Constructor Details
-
PopupWindowDecorator
public PopupWindowDecorator()
-
-
Method Details
-
decorate
Callback called whenever an appropriate JWindow is created by the AutoComplete library. Implementations can decorate the window however they see fit.- Parameters:
window
- The newly-created window.
-
get
Returns the singleton instance of this class. This should only be called on the EDT.- Returns:
- The singleton instance of this class, or
null
for none. - See Also:
-
set
Sets the singleton instance of this class. This should only be called on the EDT.- Parameters:
decorator
- The new instance of this class. This may benull
.- See Also:
-