|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.gui.dock.util.NullWindowProvider
public class NullWindowProvider
A window provider that never returns a window.
Constructor Summary | |
---|---|
NullWindowProvider()
|
Method Summary | |
---|---|
void |
addWindowProviderListener(WindowProviderListener listener)
Adds a new listener to this provider. |
boolean |
isShowing()
Tells whether this WindowProvider represents a window that is visible. |
void |
removeWindowProviderListener(WindowProviderListener listener)
Removes a listener from this provider |
Window |
searchWindow()
Tries to find a window. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NullWindowProvider()
Method Detail |
---|
public void addWindowProviderListener(WindowProviderListener listener)
WindowProvider
addWindowProviderListener
in interface WindowProvider
listener
- the new listenerpublic void removeWindowProviderListener(WindowProviderListener listener)
WindowProvider
removeWindowProviderListener
in interface WindowProvider
listener
- the listener to removepublic 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.
searchWindow
in interface WindowProvider
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.public boolean isShowing()
WindowProvider
WindowProvider
represents a window that is visible. Under
normal circumstances this method would return:Window window = sarchWindow();
return window == null ? false : window.isShowing();
isShowing
in interface WindowProvider
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |