com.vaadin.ui
Interface Layout.AlignmentHandler

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
AbstractOrderedLayout, FormLayout, GridLayout, HorizontalLayout, VerticalLayout
Enclosing interface:
Layout

public static interface Layout.AlignmentHandler
extends java.io.Serializable

AlignmentHandler is most commonly an advanced Layout that can align its components.


Method Summary
 Alignment getComponentAlignment(Component childComponent)
          Returns the current Alignment of given component.
 void setComponentAlignment(Component childComponent, Alignment alignment)
          Set alignment for one contained component in this layout.
 

Method Detail

setComponentAlignment

void setComponentAlignment(Component childComponent,
                           Alignment alignment)
Set alignment for one contained component in this layout. Use predefined alignments from Alignment class. Example: layout.setComponentAlignment(myComponent, Alignment.TOP_RIGHT);

Parameters:
childComponent - the component to align within it's layout cell.
alignment - the Alignment value to be set

getComponentAlignment

Alignment getComponentAlignment(Component childComponent)
Returns the current Alignment of given component.

Parameters:
childComponent -
Returns:
the Alignment


Copyright © 2000-2011 Vaadin Ltd. All Rights Reserved.