bibliothek.gui.dock.security
Class SecureAbstractScreenDockWindow

java.lang.Object
  extended by bibliothek.gui.dock.station.screen.DisplayerScreenDockWindow
      extended by bibliothek.gui.dock.station.screen.AbstractScreenDockWindow
          extended by bibliothek.gui.dock.security.SecureAbstractScreenDockWindow
All Implemented Interfaces:
ScreenDockWindow
Direct Known Subclasses:
SecureScreenDockDialog

public abstract class SecureAbstractScreenDockWindow
extends AbstractScreenDockWindow

An AbstractScreenDockWindow that uses a GlassedPane in order to catch all MouseEvents and to report them to the SecureMouseFocusObserver. Subclasses should call ensureSecure(boolean) whenever the visibility of the window changes.

Author:
Benjamin Sigg

Constructor Summary
SecureAbstractScreenDockWindow(ScreenDockStation station)
          Creates a new window
 
Method Summary
protected  OverpaintablePanel createContent()
          Creates the component that will be used as content-pane.
protected  void ensureSecure(boolean visible)
          Ensures that this window is connected to the SecureMouseFocusObserver of this secure environment.
protected  Container getDisplayerParent()
          Gets the container on which the displayer is shown.
 
Methods inherited from class bibliothek.gui.dock.station.screen.AbstractScreenDockWindow
checkWindowBounds, getDisplayer, getDockableInsets, getTitleIcon, getTitleText, getWindowBounds, getWindowComponent, init, invalidate, isVisible, setCursor, setDockable, setPaintCombining, setTitleIcon, setTitleText, setVisible, setWindowBounds, showDisplayer, updateTitleIcon, updateTitleText, validate
 
Methods inherited from class bibliothek.gui.dock.station.screen.DisplayerScreenDockWindow
addScreenDockWindowListener, discardDisplayer, fireFullscreenChanged, fireShapeChanged, fireVisibilityChanged, getController, getDockable, getNormalBounds, getOffsetDrop, getOffsetMove, getStation, inCombineArea, isFullscreen, isShowTitle, listeners, removeScreenDockWindowListener, setController, setFullscreen, setFullscreenStrategy, setNormalBounds, setShowTitle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface bibliothek.gui.dock.station.screen.ScreenDockWindow
destroy, toFront
 

Constructor Detail

SecureAbstractScreenDockWindow

public SecureAbstractScreenDockWindow(ScreenDockStation station)
Creates a new window

Parameters:
station - the owner of this window
Method Detail

createContent

protected OverpaintablePanel createContent()
Description copied from class: AbstractScreenDockWindow
Creates the component that will be used as content-pane. This method is invoked by the constructor.

Overrides:
createContent in class AbstractScreenDockWindow
Returns:
the new content pane

getDisplayerParent

protected Container getDisplayerParent()
Description copied from class: AbstractScreenDockWindow
Gets the container on which the displayer is shown.

Overrides:
getDisplayerParent in class AbstractScreenDockWindow
Returns:
the parent of the displayer

ensureSecure

protected void ensureSecure(boolean visible)
Ensures that this window is connected to the SecureMouseFocusObserver of this secure environment.

Parameters:
visible - whether the window is visible or not