THIS - Self-referential generic THISpublic static interface FluentLayout.FluentAlignmentHandler<THIS extends FluentLayout.FluentAlignmentHandler<THIS>>
extends com.vaadin.ui.Layout.AlignmentHandler
AlignmentHandler complemented by fluent setters.AlignmentHandler| Modifier and Type | Method and Description |
|---|---|
default THIS |
withComponentAlignment(com.vaadin.ui.Component childComponent,
com.vaadin.ui.Alignment alignment)
Set alignment for one contained component in this layout.
|
default THIS |
withDefaultComponentAlignment(com.vaadin.ui.Alignment defaultComponentAlignment)
Sets the alignment used for new components added to this layout.
|
default THIS withComponentAlignment(com.vaadin.ui.Component childComponent, com.vaadin.ui.Alignment alignment)
layout.setComponentAlignment(myComponent, Alignment.TOP_RIGHT);
childComponent - the component to align within it'THIS layout cell.alignment - the Alignment value to be setLayout.AlignmentHandler.setComponentAlignment(com.vaadin.ui.Component,
com.vaadin.ui.Alignment)default THIS withDefaultComponentAlignment(com.vaadin.ui.Alignment defaultComponentAlignment)
Alignment.TOP_LEFT.defaultComponentAlignment - The new default alignmentLayout.AlignmentHandler.setDefaultComponentAlignment(com.vaadin.ui.Alignment)Copyright © 2017 Jean-Christophe Fortier. All rights reserved.