List of usage examples for com.google.gwt.user.client.ui UIObject getElement
public Element getElement()
From source file:com.xclinical.mdr.client.util.Styles.java
License:Apache License
public static void setMaxHeight(UIObject obj, int height) { DOM.setStyleAttribute(obj.getElement(), "maxHeight", height + PIXELS); }
From source file:com.xclinical.mdr.client.util.Styles.java
License:Apache License
public static void setBottom(UIObject obj, int bottom) { DOM.setStyleAttribute(obj.getElement(), "bottom", bottom + PIXELS); }
From source file:com.xclinical.mdr.client.util.Styles.java
License:Apache License
public static void setZIndex(UIObject obj, int order) { DOM.setStyleAttribute(obj.getElement(), "zIndex", String.valueOf(order)); }
From source file:com.xclinical.mdr.client.util.Styles.java
License:Apache License
public static void setBackgroundColor(UIObject obj, String color) { DOM.setStyleAttribute(obj.getElement(), "backgroundColor", color); }
From source file:com.xclinical.mdr.client.util.Styles.java
License:Apache License
public static void setTransparency(UIObject obj, float transparency) { DOM.setStyleAttribute(obj.getElement(), "transparency", String.valueOf(transparency)); }
From source file:com.xclinical.mdr.client.util.Styles.java
License:Apache License
public static void setOverflow(UIObject obj, String value) { DOM.setStyleAttribute(obj.getElement(), "overflow", value); }
From source file:edu.caltech.ipac.firefly.ui.GwtUtil.java
public static int getIntComputedStyle(UIObject ui, String cssStyle) { return getIntVal(getComputedStyle(ui.getElement(), cssStyle)); }
From source file:edu.caltech.ipac.firefly.ui.GwtUtil.java
public static String getBackgroundColor(UIObject uiObject) { return getBackgroundColor(uiObject.getElement()); }
From source file:gwt.material.design.addins.client.dnd.MaterialDnd.java
License:Apache License
public void ignoreFrom(UIObject uiObject) { ignoreFrom(uiObject.getElement()); }
From source file:gwt.material.design.client.base.mixin.EnabledMixin.java
License:Apache License
private void setEnabled(UIObject obj, boolean enabled) { if (enabled) { obj.removeStyleName("disabled"); obj.removeStyleName("grey lighten-2"); obj.getElement().removeAttribute(DISABLED); if (uiObject instanceof HasWaves) { if (((HasWaves) uiObject).getWaves() == null) { uiObject.addStyleName(Waves.WAVES_STYLE); Waves.detectAndApply();/*ww w . j a v a 2s .c om*/ } } } else { obj.addStyleName("disabled"); obj.addStyleName("grey lighten-2"); obj.getElement().setAttribute(DISABLED, ""); if (uiObject instanceof HasWaves) { uiObject.removeStyleName(Waves.WAVES_STYLE); } } if (obj instanceof HasWidgets) { for (Widget widget : (HasWidgets) obj) { if (widget instanceof HasEnabled) { setEnabled(widget, enabled); } } } }