public class DirectWindowProvider extends AbstractWindowProvider
listeners| Constructor and Description |
|---|
DirectWindowProvider()
Creates a new window provider.
|
DirectWindowProvider(Window window)
Creates a new window provider.
|
| Modifier and Type | Method and Description |
|---|---|
Window |
searchWindow()
Tries to find a window.
|
void |
setWindow(Window window)
Sets the window which will be provided by this provider.
|
addWindowProviderListener, fireVisibilityChanged, fireWindowChanged, hasListeners, isShowing, listeners, removeWindowProviderListener, updateVisibilitypublic DirectWindowProvider()
public DirectWindowProvider(Window window)
window - the window which should be provided by this provider,
can be nullpublic void setWindow(Window window)
window - the new window, can be nullpublic Window searchWindow()
WindowProviderFrame
or a Dialog, and a plain Window only as last resort.
If possible the main-frame or another important window that will not
be closed soon should be returned. Visible windows are preferred over
non visible ones. This method is not guaranteed to have success,
null is a valid result. This method is not required
to return always the same window, however the WindowProviderListeners
should be informed when the result changes.Frame which won't be closed in
the near future, any window which does not fulfill the requirements
or null if no window is available at all.Copyright © 2017 Docking Frames. All rights reserved.