public static interface Layout.AlignmentHandler extends Serializable
Layout that can
align its components.| Modifier and Type | Method and Description |
|---|---|
Alignment |
getComponentAlignment(Component childComponent)
Returns the current Alignment of given component.
|
Alignment |
getDefaultComponentAlignment()
Returns the alignment used for new components added to this layout
|
void |
setComponentAlignment(Component childComponent,
Alignment alignment)
Set alignment for one contained component in this layout.
|
void |
setDefaultComponentAlignment(Alignment defaultComponentAlignment)
Sets the alignment used for new components added to this layout.
|
void setComponentAlignment(Component childComponent, Alignment alignment)
layout.setComponentAlignment(myComponent, Alignment.TOP_RIGHT);
childComponent - the component to align within it's layout cell.alignment - the Alignment value to be setAlignment getComponentAlignment(Component childComponent)
childComponent - Alignmentvoid setDefaultComponentAlignment(Alignment defaultComponentAlignment)
Alignment.TOP_LEFT.defaultComponentAlignment - The new default alignmentAlignment getDefaultComponentAlignment()
Copyright © 2017 Vaadin Ltd. All rights reserved.