Interface PositionFunction
-
- All Known Implementing Classes:
PositionFunction.AbsolutePosition,PositionFunction.Translate3DPosition,PositionFunction.TranslatePosition,PositionFunction.WebkitTranslate3DPosition
public interface PositionFunctionA functional interface that can be used for positioning elements in the DOM.- Since:
- 7.4
- Author:
- Vaadin Ltd
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classPositionFunction.AbsolutePositionA position function using "left: x" and "top: y" to position elements in the DOM.static classPositionFunction.Translate3DPositionA position function using "transform: translate3d(x,y,z)" to position elements in the DOM.static classPositionFunction.TranslatePositionA position function using "transform: translate(x,y)" to position elements in the DOM.static classPositionFunction.WebkitTranslate3DPositionA position function using "-webkit-transform: translate3d(x,y,z)" to position elements in the DOM.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidreset(com.google.gwt.dom.client.Element e)Resets any previously applied positioning, clearing the used style attributes.voidset(com.google.gwt.dom.client.Element e, double x, double y)Position an element in an (x,y) coordinate system in the DOM.
-
-
-
Method Detail
-
set
void set(com.google.gwt.dom.client.Element e, double x, double y)Position an element in an (x,y) coordinate system in the DOM.- Parameters:
e- the element to position. Nevernull.x- the x coordinate, in pixelsy- the y coordinate, in pixels
-
reset
void reset(com.google.gwt.dom.client.Element e)
Resets any previously applied positioning, clearing the used style attributes.- Parameters:
e- the element for which to reset the positioning
-
-