bibliothek.gui.dock.station.screen.window
Class ScreenDockFrame

java.lang.Object
  extended by bibliothek.gui.dock.station.screen.window.DisplayerScreenDockWindow
      extended by bibliothek.gui.dock.station.screen.window.AbstractScreenDockWindow
          extended by bibliothek.gui.dock.station.screen.window.ScreenDockFrame
All Implemented Interfaces:
ScreenDockWindow

public class ScreenDockFrame
extends AbstractScreenDockWindow

An implementation of ScreenDockWindow which uses a JFrame. The dialog can be used without decorations, in that case the resizing system of AbstractScreenDockWindow is used.

Author:
Benjamin Sigg

Nested Class Summary
 
Nested classes/interfaces inherited from class bibliothek.gui.dock.station.screen.window.DisplayerScreenDockWindow
DisplayerScreenDockWindow.Background
 
Constructor Summary
ScreenDockFrame(ScreenDockStation station, WindowConfiguration configuration, boolean undecorated)
          Creates a new dialog.
 
Method Summary
 void destroy()
          Informs this window that it is no longer used by the station and will never be used again.
 JFrame getFrame()
          Gets the frame which represents the window.
 void setPreventFocusStealing(boolean prevent)
          Tells this window that it should try not to steal the focus if possible.
 void toFront()
          Called when this window should become the focus owner and be shown at the most prominent location.
protected  void updateTitleIcon()
          Called when the icon of the title should be updated.
protected  void updateTitleText()
          Called when the text of the title should be updated.
 
Methods inherited from class bibliothek.gui.dock.station.screen.window.AbstractScreenDockWindow
checkWindowBounds, convertPointToScreen, createContent, createTitleMover, getDisplayer, getDisplayerParent, getDockableInsets, getTitleIcon, getTitleText, getWindowBounds, getWindowComponent, init, invalidate, isVisible, setBackground, setController, setCursor, setDockable, setPaintCombining, setPaintRemoval, setTitleIcon, setTitleText, setVisible, setWindowBounds, setWindowBounds, showDisplayer, validate
 
Methods inherited from class bibliothek.gui.dock.station.screen.window.DisplayerScreenDockWindow
addScreenDockWindowListener, contains, discardDisplayer, fireFullscreenChanged, fireShapeChanged, fireVisibilityChanged, getConfiguration, getController, getDockable, getDockableDisplayer, getMinimumWindowSize, getNormalBounds, getOffsetDrop, getOffsetMove, getStation, getTitleCenter, inCombineArea, init, inTitleArea, isFullscreen, isMoveOnTitleGrab, isShowTitle, listeners, removeScreenDockWindowListener, setFullscreen, setFullscreenStrategy, setNormalBounds, setShowTitle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScreenDockFrame

public ScreenDockFrame(ScreenDockStation station,
                       WindowConfiguration configuration,
                       boolean undecorated)
Creates a new dialog. Note that the constructors with an owner window are preferred.

Parameters:
station - the station to which this dialog is responsible
configuration - the configuration to apply during creation of this window
undecorated - whether the dialog should suppress the default decorations
Method Detail

getFrame

public JFrame getFrame()
Gets the frame which represents the window.

Returns:
the window

destroy

public void destroy()
Description copied from interface: ScreenDockWindow
Informs this window that it is no longer used by the station and will never be used again.


toFront

public void toFront()
Description copied from interface: ScreenDockWindow
Called when this window should become the focus owner and be shown at the most prominent location.


updateTitleText

protected void updateTitleText()
Description copied from class: AbstractScreenDockWindow
Called when the text of the title should be updated.

Overrides:
updateTitleText in class AbstractScreenDockWindow
See Also:
AbstractScreenDockWindow.getTitleText()

setPreventFocusStealing

public void setPreventFocusStealing(boolean prevent)
Description copied from interface: ScreenDockWindow
Tells this window that it should try not to steal the focus if possible.

Parameters:
prevent - whether to attempt to prevent focus stealing

updateTitleIcon

protected void updateTitleIcon()
Description copied from class: AbstractScreenDockWindow
Called when the icon of the title should be updated.

Overrides:
updateTitleIcon in class AbstractScreenDockWindow
See Also:
AbstractScreenDockWindow.getTitleIcon()