bibliothek.gui.dock.station.screen
Class ScreenDockWindowHandle

java.lang.Object
  extended by bibliothek.gui.dock.station.screen.ScreenDockWindowHandle
All Implemented Interfaces:
PlaceholderListItem<Dockable>

public class ScreenDockWindowHandle
extends java.lang.Object
implements PlaceholderListItem<Dockable>

Represents a ScreenDockWindow in a PlaceholderList.

Author:
Benjamin Sigg

Constructor Summary
ScreenDockWindowHandle(Dockable dockable, ScreenDockWindow window)
          Creates a new handle.
 
Method Summary
 Dockable asDockable()
          Gets the Dockable that is associated with this item.
 java.awt.Rectangle getBounds()
          Gets the current normal bounds of the window represented by this handle.
 ScreenDockWindow getWindow()
          Gets the window which is represented by this handle.
 void setDockable(Dockable dockable)
          Sets the item that is shown by this window.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScreenDockWindowHandle

public ScreenDockWindowHandle(Dockable dockable,
                              ScreenDockWindow window)
Creates a new handle.

Parameters:
dockable - the element shown by window
window - the window which is represented by this handle, not null
Method Detail

asDockable

public Dockable asDockable()
Description copied from interface: PlaceholderListItem
Gets the Dockable that is associated with this item.

Specified by:
asDockable in interface PlaceholderListItem<Dockable>
Returns:
the dockable, not null

setDockable

public void setDockable(Dockable dockable)
Sets the item that is shown by this window.

Parameters:
dockable - the element to show, can be null

getWindow

public ScreenDockWindow getWindow()
Gets the window which is represented by this handle.

Returns:
the window

getBounds

public java.awt.Rectangle getBounds()
Gets the current normal bounds of the window represented by this handle.

Returns:
the boundaries, not null