public class AppletWindowProvider extends ComponentWindowProvider
WindowProvider
designed to work with Applet
s. Clients
should call start()
and stop()
from the methods
Applet.start()
and Applet.stop()
.listeners
Constructor and Description |
---|
AppletWindowProvider(java.awt.Component component)
Creates a new window provider
|
Modifier and Type | Method and Description |
---|---|
boolean |
isShowing()
Tells whether this
WindowProvider represents a window that is visible. |
void |
start()
Informs this provider that the applet started.
|
void |
stop()
Informs this provider that the applet stopped.
|
addWindowProviderListener, getComponent, removeWindowProviderListener, searchWindow, setComponent
fireVisibilityChanged, fireWindowChanged, hasListeners, listeners, updateVisibility
public AppletWindowProvider(java.awt.Component component)
component
- some component of the applet or the applet itself,
can be null
public void start()
public void stop()
public boolean isShowing()
WindowProvider
WindowProvider
represents a window that is visible. Under
normal circumstances this method would return:Window window = searchWindow();
return window == null ? false : window.isShowing();
isShowing
in interface WindowProvider
isShowing
in class AbstractWindowProvider