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

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.InternalDockDialog
All Implemented Interfaces:
ScreenDockWindow

public class InternalDockDialog
extends AbstractScreenDockWindow

A ScreenDockWindow that has a JDesktopPane as parent.

Author:
Benjamin Sigg

Nested Class Summary
 
Nested classes/interfaces inherited from class bibliothek.gui.dock.station.screen.window.DisplayerScreenDockWindow
DisplayerScreenDockWindow.Background
 
Constructor Summary
InternalDockDialog(ScreenDockStation station, WindowConfiguration configuration, JDesktopPane desktop)
          Creates the new dialog
InternalDockDialog(ScreenDockStation station, WindowConfiguration configuration, JDesktopPane desktop, int layer)
          Creates the new dialog
 
Method Summary
protected  void convertPointToScreen(Point point, Component component)
          Converts point which is relative to component to a point on the screen.
 void destroy()
          Informs this window that it is no longer used by the station and will never be used again.
 int getLayer()
          Gets the layer at which this dialog appers in its parent JDesktopPane.
 void setLayer(int layer)
          Sets the layer at which this dialog appears.
 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.
 
Methods inherited from class bibliothek.gui.dock.station.screen.window.AbstractScreenDockWindow
checkWindowBounds, checkWindowBoundsAsync, createContent, createTitleMover, getComponent, getDisplayer, getDisplayerParent, getDockableInsets, getTitleIcon, getTitleText, getWindowBounds, getWindowComponent, init, invalidate, isVisible, setBackground, setController, setCursor, setDockable, setPaintCombining, setPaintRemoval, setShape, setTitleIcon, setTitleText, setVisible, setWindowBounds, setWindowBounds, showDisplayer, updateTitleIcon, updateTitleText, validate
 
Methods inherited from class bibliothek.gui.dock.station.screen.window.DisplayerScreenDockWindow
addScreenDockWindowListener, contains, discardDisplayer, fireFullscreenChanged, fireShapeChanged, fireVisibilityChanged, fireWindowClosing, 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

InternalDockDialog

public InternalDockDialog(ScreenDockStation station,
                          WindowConfiguration configuration,
                          JDesktopPane desktop)
Creates the new dialog

Parameters:
station - the owner of this dialog
configuration - the configuration to apply during creation of this window
desktop - the parent of this dialog

InternalDockDialog

public InternalDockDialog(ScreenDockStation station,
                          WindowConfiguration configuration,
                          JDesktopPane desktop,
                          int layer)
Creates the new dialog

Parameters:
station - the owner of this dialog
configuration - the configuration to apply during creation of this window
desktop - the parent of this dialog
layer - the layer in which to show this dialog, a constant like JLayeredPane.MODAL_LAYER
Method Detail

getLayer

public int getLayer()
Gets the layer at which this dialog appers in its parent JDesktopPane.

Returns:
the layer

setLayer

public void setLayer(int layer)
Sets the layer at which this dialog appears.

Parameters:
layer - the new layer, a constant like JLayeredPane.MODAL_LAYER

convertPointToScreen

protected void convertPointToScreen(Point point,
                                    Component component)
Description copied from class: AbstractScreenDockWindow
Converts point which is relative to component to a point on the screen.

Overrides:
convertPointToScreen in class AbstractScreenDockWindow
Parameters:
point - the point to modify
component - specifies the coordinate system
See Also:
SwingUtilities.convertPointToScreen(Point, Component)

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.

Specified by:
destroy in interface ScreenDockWindow
Overrides:
destroy in class AbstractScreenDockWindow

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.


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