Package com.biglybt.ui.swt.shells
Class ShellDocker
- java.lang.Object
-
- com.biglybt.ui.swt.shells.ShellDocker
-
public class ShellDocker extends java.lang.Object
A utility class that helps in docking a givenShell
to a givenControl
-
-
Field Summary
Fields Modifier and Type Field Description private org.eclipse.swt.widgets.Control
anchorControl
private DockPosition
anchorControlPosition
private org.eclipse.swt.widgets.Shell
dockedShell
private org.eclipse.swt.widgets.Listener
dockingEnabler
private boolean
isDocked
private org.eclipse.swt.widgets.Shell
mainShell
private boolean
moveWithShell
private boolean
resizeWithShell
-
Constructor Summary
Constructors Constructor Description ShellDocker(org.eclipse.swt.widgets.Control anchorControl, org.eclipse.swt.widgets.Shell dockedShell)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DockPosition
getAnchorControlPosition()
private boolean
isAlive()
boolean
isDocked()
boolean
isMoveWithShell()
boolean
isResizeWithShell()
void
openShell()
Opens the shellvoid
openShell(boolean isDocked)
Opens the shell as dockedvoid
openShell(boolean isDocked, boolean isAnimated)
Opens the shell as docked and animatedprivate void
performDocking()
void
setAnchorControlPosition(DockPosition anchorControlPosition)
void
setDocked(boolean isDocked)
void
setMoveWithShell(boolean moveWithShell)
void
setResizeWithShell(boolean resizeWithShell)
-
-
-
Field Detail
-
anchorControlPosition
private DockPosition anchorControlPosition
-
isDocked
private boolean isDocked
-
moveWithShell
private boolean moveWithShell
-
resizeWithShell
private boolean resizeWithShell
-
dockingEnabler
private org.eclipse.swt.widgets.Listener dockingEnabler
-
anchorControl
private org.eclipse.swt.widgets.Control anchorControl
-
dockedShell
private org.eclipse.swt.widgets.Shell dockedShell
-
mainShell
private org.eclipse.swt.widgets.Shell mainShell
-
-
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)
-
performDocking
private void performDocking()
-
isAlive
private boolean isAlive()
-
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)
-
-