Enum PositionScheme
- java.lang.Object
-
- java.lang.Enum<PositionScheme>
-
- eu.webtoolkit.jwt.PositionScheme
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<PositionScheme>
public enum PositionScheme extends java.lang.Enum<PositionScheme>
Enumeration that specifies a layout mechanism for a widget.The layout mechanism determines how the widget positions itself relative to the parent or sibling widgets.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetValue()Returns the numerical representation of this enum.static PositionSchemevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static PositionScheme[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Static
public static final PositionScheme Static
Static position scheme.The widget is layed-out with other
StaticandRelativesibling widgets, one after another.Inline widgets are layed out in horizontal lines (like text), wrapping around at the end of the line to continue on the next line. Block widgets are stacked vertically.
Static widgets may also float to the left or right border, using setFloatSide().
-
Relative
public static final PositionScheme Relative
Relative position scheme.The widget is first layed out according to Static layout rules, but after layout, the widget may be offset relative to where it would be in a static layout, using setOffsets().
Another common use of a Relative position scheme (even with no specified offsets) is to provide a new reference coordinate system for Absolutely positioned widgets.
-
Absolute
public static final PositionScheme Absolute
Absolute position scheme.The widget is positioned at an absolute position with respect to the nearest ancestor widget that is either:
- a
WTableCell - or has a position scheme that is
RelativeorAbsolute.
- a
-
Fixed
public static final PositionScheme Fixed
Fixed position scheme.The widget is positioned at fixed position with respect to the browser's view-pane.
-
-
Method Detail
-
values
public static PositionScheme[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PositionScheme c : PositionScheme.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PositionScheme valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getValue
public int getValue()
Returns the numerical representation of this enum.
-
-