|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WindowProvider
A window provider has somehow access to one or many Window
s and can
provide anyone which needs a window with one.
Method Summary | |
---|---|
void |
addWindowProviderListener(WindowProviderListener listener)
Adds a new listener to this provider. |
boolean |
isShowing()
Tells whether this window represents a window that is visible. |
void |
removeWindowProviderListener(WindowProviderListener listener)
Removes a listener from this provider |
java.awt.Window |
searchWindow()
Tries to find a window. |
Method Detail |
---|
java.awt.Window searchWindow()
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.boolean isShowing()
Window window = sarchWindow();
return window == null ? false : window.isShowing();
void addWindowProviderListener(WindowProviderListener listener)
listener
- the new listenervoid removeWindowProviderListener(WindowProviderListener listener)
listener
- the listener to remove
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |