org.gudy.azureus2.ui.swt.shells
Class ShellDocker

java.lang.Object
  extended by org.gudy.azureus2.ui.swt.shells.ShellDocker

public class ShellDocker
extends java.lang.Object

A utility class that helps in docking a given Shell to a given Control

Author:
khai

Constructor Summary
ShellDocker(org.eclipse.swt.widgets.Control anchorControl, org.eclipse.swt.widgets.Shell dockedShell)
           
 
Method Summary
 DockPosition getAnchorControlPosition()
           
 boolean isDocked()
           
 boolean isMoveWithShell()
           
 boolean isResizeWithShell()
           
 void openShell()
          Opens the shell
 void openShell(boolean isDocked)
          Opens the shell as docked
 void openShell(boolean isDocked, boolean isAnimated)
          Opens the shell as docked and animated
 void setAnchorControlPosition(DockPosition anchorControlPosition)
           
 void setDocked(boolean isDocked)
           
 void setMoveWithShell(boolean moveWithShell)
           
 void setResizeWithShell(boolean resizeWithShell)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShellDocker

public ShellDocker(org.eclipse.swt.widgets.Control anchorControl,
                   org.eclipse.swt.widgets.Shell dockedShell)
Method Detail

openShell

public void openShell()
Opens the shell


openShell

public void openShell(boolean isDocked)
Opens the shell as docked

Parameters:
isDocked -

openShell

public void openShell(boolean isDocked,
                      boolean isAnimated)
Opens the shell as docked and animated

Parameters:
isDocked -
isAnimated -

isDocked

public boolean isDocked()

setDocked

public void setDocked(boolean isDocked)

isMoveWithShell

public boolean isMoveWithShell()

setMoveWithShell

public void setMoveWithShell(boolean moveWithShell)

isResizeWithShell

public boolean isResizeWithShell()

setResizeWithShell

public void setResizeWithShell(boolean resizeWithShell)

getAnchorControlPosition

public DockPosition getAnchorControlPosition()

setAnchorControlPosition

public void setAnchorControlPosition(DockPosition anchorControlPosition)