com.vaadin.ui.
Interface Layout.AlignmentHandler
All Superinterfaces:
All Known Implementing Classes:
AbstractOrderedLayout, ExpandLayout, FormLayout, GridLayout, HorizontalLayout, OrderedLayout, VerticalLayout
Enclosing interface:
- extends Serializable
public static interface Layout.AlignmentHandler
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
- See Also:
- Constant Field Values
Deprecated. Use of Alignment
class and its constants
Contained component should be aligned horizontally to the left.
ALIGNMENT_RIGHT
@Deprecated
static final int ALIGNMENT_RIGHT
- See Also:
- Constant Field Values
Deprecated. Use of Alignment
class and its constants
Contained component should be aligned horizontally to the right.
ALIGNMENT_TOP
@Deprecated
static final int ALIGNMENT_TOP
- See Also:
- Constant Field Values
Deprecated. Use of Alignment
class and its constants
Contained component should be aligned vertically to the top.
ALIGNMENT_BOTTOM
@Deprecated
static final int ALIGNMENT_BOTTOM
- See Also:
- Constant Field Values
Deprecated. Use of Alignment
class and its constants
Contained component should be aligned vertically to the bottom.
ALIGNMENT_HORIZONTAL_CENTER
@Deprecated
static final int ALIGNMENT_HORIZONTAL_CENTER
- See Also:
- Constant Field Values
Deprecated. Use of Alignment
class and its constants
Contained component should be horizontally aligned to center.
ALIGNMENT_VERTICAL_CENTER
@Deprecated
static final int ALIGNMENT_VERTICAL_CENTER
- See Also:
- Constant Field Values
Deprecated. Use of Alignment
class and its constants
Contained component should be vertically aligned to center.
Method Detail |
---|
setComponentAlignment
@Deprecated
void setComponentAlignment(Component childComponent,
int horizontalAlignment,
int verticalAlignment)
- 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.
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.
setComponentAlignment
void setComponentAlignment(Component childComponent,
Alignment alignment)
- Parameters:
childComponent
- the component to align within it's layout cell.alignment
- the Alignment value to be set
Set alignment for one contained component in this layout. Use
predefined alignments from Alignment class.
Example:
layout.setComponentAlignment(myComponent, Alignment.TOP_RIGHT);
getComponentAlignment
Alignment getComponentAlignment(Component childComponent)
- Parameters:
childComponent
-- Returns:
- the
Alignment
Returns the current Alignment of given component.