bibliothek.gui.dock.station.screen
Class ScreenDockDialog

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

public class ScreenDockDialog
extends AbstractScreenDockWindow

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

Author:
Benjamin Sigg

Constructor Summary
ScreenDockDialog(ScreenDockStation station, boolean undecorated)
          Creates a new dialog.
ScreenDockDialog(ScreenDockStation station, Dialog dialog, boolean undecorated)
          Creates a new dialog.
ScreenDockDialog(ScreenDockStation station, Frame frame, 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.
 JDialog getDialog()
          Gets the dialog which represents the window.
 void toFront()
          Called when this window should become the focus owner and be shown at the most prominent location.
protected  void updateTitleText()
          Called when the text of the title should be updated.
 
Methods inherited from class bibliothek.gui.dock.station.screen.AbstractScreenDockWindow
checkWindowBounds, createContent, getDisplayer, getDisplayerParent, getDockableInsets, getTitleIcon, getTitleText, getWindowBounds, getWindowComponent, init, invalidate, isVisible, setCursor, setDockable, setPaintCombining, setTitleIcon, setTitleText, setVisible, setWindowBounds, showDisplayer, updateTitleIcon, 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
 

Constructor Detail

ScreenDockDialog

public ScreenDockDialog(ScreenDockStation station,
                        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
undecorated - whether the dialog should suppress the default decorations

ScreenDockDialog

public ScreenDockDialog(ScreenDockStation station,
                        Frame frame,
                        boolean undecorated)
Creates a new dialog.

Parameters:
station - the station to which this dialog is responsible
frame - the owner of the dialog
undecorated - whether the dialog should suppress the default decorations

ScreenDockDialog

public ScreenDockDialog(ScreenDockStation station,
                        Dialog dialog,
                        boolean undecorated)
Creates a new dialog.

Parameters:
station - the station to which this dialog is responsible
dialog - the owner of this dialog
undecorated - whether the dialog should suppress the default decorations
Method Detail

getDialog

public JDialog getDialog()
Gets the dialog 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()