Class ShellDocker
java.lang.Object
com.biglybt.ui.swt.shells.ShellDocker
A utility class that helps in docking a given
Shell to a given Control-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.eclipse.swt.widgets.Controlprivate DockPositionprivate org.eclipse.swt.widgets.Shellprivate org.eclipse.swt.widgets.Listenerprivate booleanprivate org.eclipse.swt.widgets.Shellprivate booleanprivate boolean -
Constructor Summary
ConstructorsConstructorDescriptionShellDocker(org.eclipse.swt.widgets.Control anchorControl, org.eclipse.swt.widgets.Shell dockedShell) -
Method Summary
Modifier and TypeMethodDescriptionprivate booleanisAlive()booleanisDocked()booleanbooleanvoidOpens the shellvoidopenShell(boolean isDocked) Opens the shell as dockedvoidopenShell(boolean isDocked, boolean isAnimated) Opens the shell as docked and animatedprivate voidvoidsetAnchorControlPosition(DockPosition anchorControlPosition) voidsetDocked(boolean isDocked) voidsetMoveWithShell(boolean moveWithShell) voidsetResizeWithShell(boolean resizeWithShell)
-
Field Details
-
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
-
-
Constructor Details
-
ShellDocker
public ShellDocker(org.eclipse.swt.widgets.Control anchorControl, org.eclipse.swt.widgets.Shell dockedShell)
-
-
Method Details
-
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
-
setAnchorControlPosition
-