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

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

public class ScreenDockWindowHandle
extends Object
implements PlaceholderListItem<Dockable>

Represents a ScreenDockWindow in a PlaceholderList.

Author:
Benjamin Sigg

Constructor Summary
ScreenDockWindowHandle(Dockable dockable, ScreenDockWindow window, WindowConfiguration configuration)
          Creates a new handle.
 
Method Summary
 Dockable asDockable()
          Gets the Dockable that is associated with this item.
 Rectangle getBounds()
          Gets the current normal bounds of the window represented by this handle.
 WindowConfiguration getConfiguration()
          Gets the configuration which was used to set up the window.
 ScreenDockWindow getWindow()
          Gets the window which is represented by this handle.
 void setDockable(Dockable dockable)
          Sets the item that is shown by this window.
 void setWindow(ScreenDockWindow window, WindowConfiguration configuration)
          Sets the window which is represented by this handle.
 
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,
                              WindowConfiguration configuration)
Creates a new handle.

Parameters:
dockable - the element shown by window
window - the window which is represented by this handle, not null
configuration - the configuration which was used to create window, 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

getConfiguration

public WindowConfiguration getConfiguration()
Gets the configuration which was used to set up the window.

Returns:
the configuration, not null

setWindow

public void setWindow(ScreenDockWindow window,
                      WindowConfiguration configuration)
Sets the window which is represented by this handle.

Parameters:
window - the new window, not null
configuration - the configuration that was used to set up window

getBounds

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

Returns:
the boundaries, not null