public final class Alignment extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static Alignment |
BOTTOM_CENTER |
static Alignment |
BOTTOM_LEFT |
static Alignment |
BOTTOM_RIGHT |
static Alignment |
MIDDLE_CENTER |
static Alignment |
MIDDLE_LEFT |
static Alignment |
MIDDLE_RIGHT |
static Alignment |
TOP_CENTER |
static Alignment |
TOP_LEFT |
static Alignment |
TOP_RIGHT |
Constructor and Description |
---|
Alignment(int bitMask) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
int |
getBitMask()
Returns a bitmask representation of the alignment value.
|
String |
getHorizontalAlignment()
Returns string representation of horizontal alignment.
|
String |
getVerticalAlignment()
Returns string representation of vertical alignment.
|
int |
hashCode() |
boolean |
isBottom()
Checks if component is aligned to the bottom of the available space.
|
boolean |
isCenter()
Checks if component is aligned center (horizontally) of the available
space.
|
boolean |
isLeft()
Checks if component is aligned to the left of the available space.
|
boolean |
isMiddle()
Checks if component is aligned middle (vertically center) of the
available space.
|
boolean |
isRight()
Checks if component is aligned to the right of the available space.
|
boolean |
isTop()
Checks if component is aligned to the top of the available space.
|
String |
toString() |
public static final Alignment TOP_RIGHT
public static final Alignment TOP_LEFT
public static final Alignment TOP_CENTER
public static final Alignment MIDDLE_RIGHT
public static final Alignment MIDDLE_LEFT
public static final Alignment MIDDLE_CENTER
public static final Alignment BOTTOM_RIGHT
public static final Alignment BOTTOM_LEFT
public static final Alignment BOTTOM_CENTER
public int getBitMask()
public boolean isTop()
public boolean isBottom()
public boolean isLeft()
public boolean isRight()
public boolean isMiddle()
public boolean isCenter()
public String getVerticalAlignment()
public String getHorizontalAlignment()
Copyright © 2019 Vaadin Ltd. All rights reserved.