bibliothek.gui.dock.util
Class AppletWindowProvider

java.lang.Object
  extended by bibliothek.gui.dock.util.AbstractWindowProvider
      extended by bibliothek.gui.dock.util.ComponentWindowProvider
          extended by bibliothek.gui.dock.util.AppletWindowProvider
All Implemented Interfaces:
WindowProvider

public class AppletWindowProvider
extends ComponentWindowProvider

A WindowProvider designed to work with Applets. Clients should call start() and stop() from the methods Applet.start() and Applet.stop().

Author:
Benjamin Sigg

Field Summary
 
Fields inherited from class bibliothek.gui.dock.util.AbstractWindowProvider
listeners
 
Constructor Summary
AppletWindowProvider(java.awt.Component component)
          Creates a new window provider
 
Method Summary
 boolean isShowing()
          Tells whether this window represents a window that is visible.
 void start()
          Informs this provider that the applet started.
 void stop()
          Informs this provider that the applet stopped.
 
Methods inherited from class bibliothek.gui.dock.util.ComponentWindowProvider
addWindowProviderListener, getComponent, removeWindowProviderListener, searchWindow, setComponent
 
Methods inherited from class bibliothek.gui.dock.util.AbstractWindowProvider
fireVisibilityChanged, fireWindowChanged, listeners, updateVisibility
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AppletWindowProvider

public AppletWindowProvider(java.awt.Component component)
Creates a new window provider

Parameters:
component - some component of the applet or the applet itself, can be null
Method Detail

start

public void start()
Informs this provider that the applet started.


stop

public void stop()
Informs this provider that the applet stopped.


isShowing

public boolean isShowing()
Description copied from interface: WindowProvider
Tells whether this window represents a window that is visible. Under normal circumstances this method would return:
Window window = sarchWindow();
return window == null ? false : window.isShowing();

This method is explicitly allowed to return any value it likes. The result of this method does not have to correspond with reality.

Specified by:
isShowing in interface WindowProvider
Overrides:
isShowing in class AbstractWindowProvider
Returns:
whether this providers window is visible or not