|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbibliothek.gui.dock.util.AbstractWindowProvider
bibliothek.gui.dock.util.ComponentWindowProvider
public class ComponentWindowProvider
A window provider which just returns the ancestor window of some Component
| Field Summary |
|---|
| Fields inherited from class bibliothek.gui.dock.util.AbstractWindowProvider |
|---|
listeners |
| Constructor Summary | |
|---|---|
ComponentWindowProvider(Component component)
Creates a new provider |
|
| Method Summary | |
|---|---|
void |
addWindowProviderListener(WindowProviderListener listener)
Adds a new listener to this provider. |
Component |
getComponent()
Gets the Component whose ancestor window is provided. |
void |
removeWindowProviderListener(WindowProviderListener listener)
Removes a listener from this provider |
Window |
searchWindow()
Tries to find a window. |
void |
setComponent(Component component)
Sets the component whose ancestor window will be provided. |
| Methods inherited from class bibliothek.gui.dock.util.AbstractWindowProvider |
|---|
fireVisibilityChanged, fireWindowChanged, hasListeners, isShowing, listeners, updateVisibility |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ComponentWindowProvider(Component component)
component - the component whose ancestor will be provided, null
is valid| Method Detail |
|---|
public void addWindowProviderListener(WindowProviderListener listener)
WindowProvider
addWindowProviderListener in interface WindowProvideraddWindowProviderListener in class AbstractWindowProviderlistener - the new listenerpublic void removeWindowProviderListener(WindowProviderListener listener)
WindowProvider
removeWindowProviderListener in interface WindowProviderremoveWindowProviderListener in class AbstractWindowProviderlistener - the listener to removepublic Component getComponent()
Component whose ancestor window is provided.
nullpublic void setComponent(Component component)
component - the component or 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||