@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
ResizeRequest s 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, updateBoundsLocked
calculateDivider, install, prepareDrop, prepareMove, uninstall, validateDivider, validatePutInfo, willMakeFullscreen
public 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 null
public ConflictResolver<RequestDimension> getConflictResolver()
LockedResizeLayoutManager
ResizeRequest
s are merged.getConflictResolver
in class LockedResizeLayoutManager<RequestDimension>
public ResizeRequest getRequest(RequestDimension size, Leaf leaf)
LockedResizeLayoutManager
leaf
such
that it has a valid size again.getRequest
in class LockedResizeLayoutManager<RequestDimension>
size
- the data that was created in LockedResizeLayoutManager.prepareResize(Leaf)
or null
leaf
- the leaf which size is not yet valid.null
public RequestDimension prepareResize(Leaf leaf)
LockedResizeLayoutManager
prepareResize
in class LockedResizeLayoutManager<RequestDimension>
leaf
- some leafLockedResizeLayoutManager.getRequest(Object, Leaf)
,
can be null