@FrameworkOnly public class CLockedResizeLayoutManager extends LockedResizeLayoutManager<RequestDimension>
LockedResizeLayoutManager that looks out for
CDockable.isResizeLockedVertically() and CDockable.isResizeLockedHorizontally().| Constructor and Description |
|---|
CLockedResizeLayoutManager()
Creates a new layout manager
|
CLockedResizeLayoutManager(CControl control)
Creates a new layout manager
|
CLockedResizeLayoutManager(SplitLayoutManager delegate)
Creates a new layout manager using
delegate as
delegate for all tasks that have to be carried out. |
| Modifier and Type | Method and Description |
|---|---|
ConflictResolver<RequestDimension> |
getConflictResolver()
Gets the policy that tells how two
ResizeRequests are merged. |
ResizeRequest |
getRequest(RequestDimension size,
Leaf leaf)
Gets the size request that changes the size of
leaf such
that it has a valid size again. |
RequestDimension |
prepareResize(Leaf leaf)
Called before the resize takes place, subclasses might store some
properties.
|
void |
setControl(CControl control)
Sets the control in whose realm this manager should work.
|
asyncToElement, hasTreeChanged, isResize, setConflictResolver, toElement, updateBounds, updateBoundsLockedcalculateDivider, install, prepareDrop, prepareMove, uninstall, validateDivider, validatePutInfo, willMakeFullscreenpublic CLockedResizeLayoutManager()
public CLockedResizeLayoutManager(CControl control)
control - the control in whose realm this manager workspublic CLockedResizeLayoutManager(SplitLayoutManager delegate)
delegate as
delegate for all tasks that have to be carried out.delegate - the delegate used for standard tasks to carry out.public void setControl(CControl control)
control - the control, can be nullpublic ConflictResolver<RequestDimension> getConflictResolver()
LockedResizeLayoutManagerResizeRequests are merged.getConflictResolver in class LockedResizeLayoutManager<RequestDimension>public ResizeRequest getRequest(RequestDimension size, Leaf leaf)
LockedResizeLayoutManagerleaf such
that it has a valid size again.getRequest in class LockedResizeLayoutManager<RequestDimension>size - the data that was created in LockedResizeLayoutManager.prepareResize(Leaf) or nullleaf - the leaf which size is not yet valid.nullpublic RequestDimension prepareResize(Leaf leaf)
LockedResizeLayoutManagerprepareResize in class LockedResizeLayoutManager<RequestDimension>leaf - some leafLockedResizeLayoutManager.getRequest(Object, Leaf),
can be nullCopyright © 2018. All rights reserved.