public class DynamicLayoutIntegration<O extends OutputManager<?>> extends java.lang.Object implements ContainerStateListener<O>
Modifier and Type | Field and Description |
---|---|
protected Container<O> |
container
The linked container
|
private DynamicLayout<O> |
layout
The layout implementation
|
private boolean |
pendingDynamicLayout
A flag indicating whether dynamic layout has been requested
|
Constructor and Description |
---|
DynamicLayoutIntegration(Container<O> container)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
doDynamicLayout()
Performs the actual layout with the help of the contained layout implementations, recursively down the
widget tree.
|
private DynamicLayoutIntegration |
getParentLayout(DynamicLayoutIntegration relativeTo)
Returns the parent dynamic layout integration.
|
private DynamicLayoutIntegration |
getRootLayout()
Returns the root dynamic layout integration.
|
void |
onFrameRealized()
Called by the frame widget when it has been realized.
|
void |
redrawEnabled(Widget<O> widget)
Invoked by widget container when DISABLE-REDRAW is assigned FALSE on a widget in the container.
|
protected void |
requestDynamicLayout()
The method is called to request dynamic layout.
|
private void |
triggerDynamicLayout()
Triggers dynamic layout when the linked container is the top container that was requested dynamic
layout.
|
void |
widgetAdded(Widget<O> widget)
Invoked by widget container when new widget is added to it.
|
void |
widgetRemoved(Widget<O> widget)
Invoked by widget container when a widget is removed from it.
|
protected Container<O extends OutputManager<?>> container
private DynamicLayout<O extends OutputManager<?>> layout
private boolean pendingDynamicLayout
public void onFrameRealized()
public void widgetAdded(Widget<O> widget)
widgetAdded
in interface ContainerStateListener<O extends OutputManager<?>>
widget
- The added widget.public void widgetRemoved(Widget<O> widget)
widgetRemoved
in interface ContainerStateListener<O extends OutputManager<?>>
widget
- The removed widget.public void redrawEnabled(Widget<O> widget)
redrawEnabled
in interface ContainerStateListener<O extends OutputManager<?>>
widget
- The subjected widget.protected void requestDynamicLayout()
protected void doDynamicLayout()
private void triggerDynamicLayout()
private DynamicLayoutIntegration getParentLayout(DynamicLayoutIntegration relativeTo)
relativeTo
- Where the search should start.null
private DynamicLayoutIntegration getRootLayout()