public class WindowDynamicLayoutIntegration extends DynamicLayoutIntegration<GuiOutputManager>
Modifier and Type | Field and Description |
---|---|
private DynamicLayoutConfig |
config
Dynamic layout configuration
|
private OptimalSizeLayout |
optimalLayout
The layout implementation for optimal window size
|
private boolean |
pendingLayout
A flag indicating whether dynamic layout has been requested
|
private GuiWindow |
window
The linked window
|
container
Constructor and Description |
---|
WindowDynamicLayoutIntegration(GuiWindow window)
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.
|
void |
onFrameRealized()
Called by the frame widget when it has been realized.
|
void |
onWindowResized()
Called after the linked window is resized.
|
redrawEnabled, requestDynamicLayout, widgetAdded, widgetRemoved
private OptimalSizeLayout optimalLayout
private DynamicLayoutConfig config
private boolean pendingLayout
private GuiWindow window
public WindowDynamicLayoutIntegration(GuiWindow window)
window
- The window that will be laid out.public void onWindowResized()
public void onFrameRealized()
onFrameRealized
in class DynamicLayoutIntegration<GuiOutputManager>
protected void doDynamicLayout()
doDynamicLayout
in class DynamicLayoutIntegration<GuiOutputManager>