Package com.biglybt.ui.swt.shells
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.Control
private DockPosition
private org.eclipse.swt.widgets.Shell
private org.eclipse.swt.widgets.Listener
private boolean
private org.eclipse.swt.widgets.Shell
private boolean
private boolean
-
Constructor Summary
ConstructorsConstructorDescriptionShellDocker
(org.eclipse.swt.widgets.Control anchorControl, org.eclipse.swt.widgets.Shell dockedShell) -
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
isAlive()
boolean
isDocked()
boolean
boolean
void
Opens the shellvoid
openShell
(boolean isDocked) Opens the shell as dockedvoid
openShell
(boolean isDocked, boolean isAnimated) Opens the shell as docked and animatedprivate void
void
setAnchorControlPosition
(DockPosition anchorControlPosition) void
setDocked
(boolean isDocked) void
setMoveWithShell
(boolean moveWithShell) void
setResizeWithShell
(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
-