|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<PositionScheme>
eu.webtoolkit.jwt.PositionScheme
public 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.
WWidget.setPositionScheme(PositionScheme scheme)| Enum Constant Summary | |
|---|---|
Absolute
Absolute position scheme. |
|
Fixed
Fixed position scheme. |
|
Relative
Relative position scheme. |
|
Static
Static position scheme. |
|
| Method Summary | |
|---|---|
int |
getValue()
Returns the numerical representation of this enum. |
static PositionScheme |
valueOf(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. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final PositionScheme Static
The widget is layed-out with other Static
and Relative sibling 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().
public static final PositionScheme Relative
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.
public static final PositionScheme Absolute
The widget is positioned at an absolute position with respect to the nearest ancestor widget that is either:
WTableCellRelative
or Absolute.
public static final PositionScheme Fixed
The widget is positioned at fixed position with respect to the browser's view-pane.
| Method Detail |
|---|
public static PositionScheme[] values()
for (PositionScheme c : PositionScheme.values()) System.out.println(c);
public static PositionScheme valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is nullpublic int getValue()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||