All Downloads are FREE. Search and download functionalities are using the official Maven repository.

eu.webtoolkit.jwt.PositionScheme Maven / Gradle / Ivy

There is a newer version: 3.2.0
Show newest version
/*
 * Copyright (C) 2009 Emweb bvba, Leuven, Belgium.
 *
 * See the LICENSE file for terms of use.
 */
package eu.webtoolkit.jwt;

import java.util.*;
import java.util.regex.*;
import java.io.*;
import java.lang.ref.*;
import java.util.concurrent.locks.ReentrantLock;
import javax.servlet.http.*;
import javax.servlet.*;
import eu.webtoolkit.jwt.*;
import eu.webtoolkit.jwt.chart.*;
import eu.webtoolkit.jwt.utils.*;
import eu.webtoolkit.jwt.servlet.*;

/**
 * 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. *

* * @see WWidget#setPositionScheme(PositionScheme scheme) */ public enum PositionScheme { /** * Static position scheme. *

* The widget is layed-out with other {@link PositionScheme#Static Static} * and {@link PositionScheme#Relative 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(). */ Static, /** * 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. */ Relative, /** * Absolute position scheme. *

* The widget is positioned at an absolute position with respect to the * nearest ancestor widget that is either: *

    *
  • * a {@link WTableCell}
  • *
  • * or has a position scheme that is {@link PositionScheme#Relative Relative} * or {@link PositionScheme#Absolute Absolute}.
  • *
*/ Absolute, /** * Fixed position scheme. *

* The widget is positioned at fixed position with respect to the * browser's view-pane. */ Fixed; /** * Returns the numerical representation of this enum. */ public int getValue() { return ordinal(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy