GroupLayout

Methods
11
Fields
None

Getting one

GroupLayout.new(…)

Methods

MethodReturnsDescription
createParallelGroup(alignment: string?, resizable: boolean?)anyA new parallel group: alignment is a GroupLayout.Alignment (LEADING by default; a BASELINE group lines its children up on their bas…
createSequentialGroup()anyA new sequential group.
setHorizontalGroup(any)()The horizontal axis's group.
setVerticalGroup(any)()The vertical axis's group.
setHonorsVisibility(honors: boolean)()true (the default): an invisible component takes no space. false: it keeps its place and size, so hiding it moves nothing. It applies t…
getHonorsVisibility()booleanWhat setHonorsVisibility last set: true until then.
setAutoCreateGaps(on: boolean)()true: the preferred gap between components that are siblings in a sequential group, unless an explicit gap sits between them. A hidden co…
getAutoCreateGaps()booleanWhat setAutoCreateGaps last set: false until then.
setAutoCreateContainerGaps(on: boolean)()true: the preferred gap between the container's edges and the components next to them. false (the default): none.
getAutoCreateContainerGaps()booleanWhat setAutoCreateContainerGaps last set: false until then.
new(host: any)GroupLayoutGroupLayout.new(host).

Returned by

MethodReturnsDescription
GroupLayoutClass.newGroupLayoutGroupLayout.new(host).

Method details

createParallelGroup

createParallelGroup: (GroupLayout, alignment: string?, resizable: boolean?) -> any

A new parallel group: alignment is a GroupLayout.Alignment (LEADING by default; a BASELINE group lines its children up on their baselines and belongs on the vertical axis, setHorizontalGroup refuses it), resizable is true by default.

setHonorsVisibility

setHonorsVisibility: (GroupLayout, honors: boolean) -> ()

true (the default): an invisible component takes no space. false: it keeps its place and size, so hiding it moves nothing. It applies to the whole layout, not per component.

setAutoCreateGaps

setAutoCreateGaps: (GroupLayout, on: boolean) -> ()

true: the preferred gap between components that are siblings in a sequential group, unless an explicit gap sits between them. A hidden component gives its gaps up. false (the default): no gap but the ones added.

setAutoCreateContainerGaps

setAutoCreateContainerGaps: (GroupLayout, on: boolean) -> ()

true: the preferred gap between the container's edges and the components next to them. false (the default): none.