|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.gui.dock.util.AbstractWindowProvider bibliothek.gui.dock.util.DirectWindowProvider
public class DirectWindowProvider
A window provider where the window can be set directly.
Field Summary |
---|
Fields inherited from class bibliothek.gui.dock.util.AbstractWindowProvider |
---|
listeners |
Constructor Summary | |
---|---|
DirectWindowProvider()
Creates a new window provider. |
|
DirectWindowProvider(java.awt.Window window)
Creates a new window provider. |
Method Summary | |
---|---|
java.awt.Window |
searchWindow()
Tries to find a window. |
void |
setWindow(java.awt.Window window)
Sets the window which will be provided by this provider. |
Methods inherited from class bibliothek.gui.dock.util.AbstractWindowProvider |
---|
addWindowProviderListener, fireVisibilityChanged, fireWindowChanged, isShowing, listeners, removeWindowProviderListener, updateVisibility |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DirectWindowProvider()
public DirectWindowProvider(java.awt.Window window)
window
- the window which should be provided by this provider,
can be null
Method Detail |
---|
public void setWindow(java.awt.Window window)
window
- the new window, can be null
public java.awt.Window searchWindow()
WindowProvider
Frame
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 WindowProviderListener
s
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |