List of usage examples for com.google.gwt.user.client.ui UIObject getElement
public Element getElement()
From source file:com.totsp.gwittir.client.fx.rebind.OpacitySetterIE6.java
License:Open Source License
/** * Gets the current opacity value.//from w w w . java 2s.c o m * @param opacity the new opacity value between 0.0 and 1.0 * @param o UIObject to inspect. */ public void setOpacity(UIObject o, Double opacity) { String filter = DOM.getStyleAttribute(o.getElement(), FILTER_STYLE_NAME); if (filter == null) { filter = ""; } if (opacity != null) { filter = parseOrReplace(filter, "" + Math.round(opacity.doubleValue() * 100d)); DOM.setStyleAttribute(o.getElement(), FILTER_STYLE_NAME, filter); } else { filter = parseOrReplace(filter, "100"); DOM.setStyleAttribute(o.getElement(), FILTER_STYLE_NAME, filter); } }
From source file:com.totsp.gwittir.client.fx.ui.SoftScrollArea.java
License:Open Source License
public void ensureVisible(UIObject uiobject) { int scroll = this.ensureVisiblePosition(widget.getElement(), uiobject.getElement()); int horiz = this.ensureVisibleHortizontalPosition(widget.getElement(), uiobject.getElement()); this.setScrollPosition(scroll); this.setHorizontalScrollPosition(horiz); }
From source file:com.totsp.gwittir.client.fx.ui.SoftScrollArea.java
License:Open Source License
public void ensureVisibleAnimated(UIObject uiobject) { int scroll = this.ensureVisiblePosition(widget.getElement(), uiobject.getElement()); int horiz = this.ensureVisibleHortizontalPosition(widget.getElement(), uiobject.getElement()); this.animateToScrollPosition(scroll); this.animateToHorizontalScrollPosition(horiz); }
From source file:com.tractionsoftware.gwt.user.client.util.Geometry.java
License:Apache License
/** * Sets the position of a UIObject/* w w w .ja v a2s.co m*/ */ public static final void setPosition(UIObject o, Rect pos) { Style style = o.getElement().getStyle(); style.setPropertyPx("left", pos.x); style.setPropertyPx("top", pos.y); }
From source file:com.workingflows.js.jquery.client.api.JQuery.java
License:Apache License
@JsOverlay public static JQueryElement $(Object plainObject, UIObject context) { return $(plainObject, context.getElement()); }
From source file:com.workingflows.js.jquery.client.api.JQuery.java
License:Apache License
@JsOverlay public static JQueryElement $(String selector, UIObject context) { return $(selector, context.getElement()); }
From source file:com.workingflows.js.jquery.client.api.JQuery.java
License:Apache License
@JsOverlay public static JQueryElement $(JQueryElement element, UIObject context) { return $(element, context.getElement()); }
From source file:com.workingflows.js.jquery.client.api.JQuery.java
License:Apache License
@JsOverlay public static JQueryElement $(Element element, UIObject context) { return $(element, context.getElement()); }
From source file:com.workingflows.js.jquery.client.api.JQuery.java
License:Apache License
@JsOverlay public static JQueryElement $(Node element, UIObject context) { return $(element, context.getElement()); }
From source file:com.workingflows.js.jquery.client.api.JQuery.java
License:Apache License
@JsOverlay @SuppressWarnings("unchecked") public static <T extends UIObject> JQueryElement<T> $(T uiObject, UIObject context) { return $(uiObject.getElement(), context.getElement()); }