public class Layout extends Object
Modifier and Type | Method and Description |
---|---|
CompletionStage<Void> |
applyPreset(String presetType)
Replaces a Platform window's layout with a preset layout arrangement using the existing Views attached to the window.
|
CompletionStage<LayoutOptions> |
getConfig()
Returns the configuration of the window's layout.
|
CompletionStage<Void> |
replace(LayoutOptions newLayout)
Replaces a Platform window's layout with a new layout.
|
static Layout |
wrap(Identity identity,
DesktopConnection connection)
Returns a Layout object that represents a Window's layout.
|
public static Layout wrap(Identity identity, DesktopConnection connection)
identity
- window identityconnection
- Connection object to the AppDesktop.public CompletionStage<LayoutOptions> getConfig()
public CompletionStage<Void> applyPreset(String presetType)
presetType
- "columns", "grid", "rows", or "tabs".public CompletionStage<Void> replace(LayoutOptions newLayout)
newLayout
- New layout to implement in the target window.Copyright © 2022. All rights reserved.