com.vaadin.ui.


Interface Layout.AlignmentHandler

All Superinterfaces:

Serializable

All Known Implementing Classes:

AbstractOrderedLayout, ExpandLayout, FormLayout, GridLayout, HorizontalLayout, OrderedLayout, VerticalLayout

Enclosing interface:

Layout

public static interface Layout.AlignmentHandler
extends Serializable

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

Field Summary
static int ALIGNMENT_BOTTOM
          Deprecated. Use of Alignment class and its constants
static int ALIGNMENT_HORIZONTAL_CENTER
          Deprecated. Use of Alignment class and its constants
static int ALIGNMENT_LEFT
          Deprecated. Use of Alignment class and its constants
static int ALIGNMENT_RIGHT
          Deprecated. Use of Alignment class and its constants
static int ALIGNMENT_TOP
          Deprecated. Use of Alignment class and its constants
static int ALIGNMENT_VERTICAL_CENTER
          Deprecated. Use of Alignment class and its constants
 
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.
 void setComponentAlignment(Component childComponent, int horizontalAlignment, int verticalAlignment)
          Deprecated. Use setComponentAlignment(Component, Alignment) instead
 

Field Detail

ALIGNMENT_LEFT

@Deprecated
static final int ALIGNMENT_LEFT

Deprecated. Use of Alignment class and its constants

Contained component should be aligned horizontally to the left.

See Also:
Constant Field Values

ALIGNMENT_RIGHT

@Deprecated
static final int ALIGNMENT_RIGHT

Deprecated. Use of Alignment class and its constants

Contained component should be aligned horizontally to the right.

See Also:
Constant Field Values

ALIGNMENT_TOP

@Deprecated
static final int ALIGNMENT_TOP

Deprecated. Use of Alignment class and its constants

Contained component should be aligned vertically to the top.

See Also:
Constant Field Values

ALIGNMENT_BOTTOM

@Deprecated
static final int ALIGNMENT_BOTTOM

Deprecated. Use of Alignment class and its constants

Contained component should be aligned vertically to the bottom.

See Also:
Constant Field Values

ALIGNMENT_HORIZONTAL_CENTER

@Deprecated
static final int ALIGNMENT_HORIZONTAL_CENTER

Deprecated. Use of Alignment class and its constants

Contained component should be horizontally aligned to center.

See Also:
Constant Field Values

ALIGNMENT_VERTICAL_CENTER

@Deprecated
static final int ALIGNMENT_VERTICAL_CENTER

Deprecated. Use of Alignment class and its constants

Contained component should be vertically aligned to center.

See Also:
Constant Field Values

Method Detail

setComponentAlignment

@Deprecated
void setComponentAlignment(Component childComponent,
                                      int horizontalAlignment,
                                      int verticalAlignment)

Deprecated. Use setComponentAlignment(Component, Alignment) instead

Set alignment for one contained component in this layout. Alignment is calculated as a bit mask of the two passed values.

Parameters:
childComponent - the component to align within it's layout cell.
horizontalAlignment - the horizontal alignment for the child component (left, center, right). Use ALIGNMENT constants.
verticalAlignment - the vertical alignment for the child component (top, center, bottom). Use ALIGNMENT constants.

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