List of usage examples for com.google.gwt.user.client.ui UIObject getElement
public Element getElement()
From source file:com.ephesoft.gxt.core.client.util.WidgetUtil.java
License:Open Source License
@SuppressWarnings("deprecation") public static void setID(UIObject widget, String widgetID) { if (null != widget && !StringUtil.isNullOrEmpty(widgetID)) { Element element = widget.getElement(); if (null != element) { element.setId(widgetID);//w w w . ja va2 s .co m } } }
From source file:com.github.gwt.user.client.ui.DateTimeBox.java
License:Apache License
private void initPopup(UIObject autoHidePartner) { this.popup = new PopupPanel(true); popup.addAutoHidePartner(autoHidePartner.getElement()); popup.setStyleName(resources.style().popup()); dateTimePicker = initPicker();//from w w w . ja v a2 s . c om popup.setWidget(dateTimePicker); @SuppressWarnings("deprecation") Element popupContent = DOM.getParent(dateTimePicker.getElement()); popupContent.setAttribute("style", "height: 100%;"); popup.addCloseHandler(new CloseHandler<PopupPanel>() { @Override public void onClose(CloseEvent<PopupPanel> event) { delegateEvent(dateTimePicker, event); } }); }
From source file:com.googlecode.gchart.client.GChart.java
License:Apache License
private static void setBackgroundColor(UIObject uio, String cssColor) { DOM.setStyleAttribute(uio.getElement(), "backgroundColor", cssColor); }
From source file:com.googlecode.gchart.client.GChart.java
License:Apache License
private static void setBorderColor(UIObject uio, String cssColor) { DOM.setStyleAttribute(uio.getElement(), "borderColor", cssColor); }
From source file:com.googlecode.gchart.client.GChart.java
License:Apache License
private static void setBorderStyle(UIObject uio, String cssBorderStyle) { DOM.setStyleAttribute(uio.getElement(), "borderStyle", cssBorderStyle); }
From source file:com.googlecode.gchart.client.GChart.java
License:Apache License
private static void setBorderWidth(UIObject uio, String cssBorderWidth) { DOM.setStyleAttribute(uio.getElement(), "borderWidth", cssBorderWidth); }
From source file:com.googlecode.gchart.client.GChart.java
License:Apache License
private static void setFontFamily(UIObject uio, String cssFontFamily) { DOM.setStyleAttribute(uio.getElement(), "fontFamily", cssFontFamily); }
From source file:com.googlecode.gchart.client.GChart.java
License:Apache License
private static void setFontSize(UIObject uio, int fontSize) { DOM.setIntStyleAttribute(uio.getElement(), "fontSize", fontSize); }
From source file:com.googlecode.gchart.client.GChart.java
License:Apache License
private static void setFontStyle(UIObject uio, String fontStyle) { DOM.setStyleAttribute(uio.getElement(), "fontStyle", fontStyle); }
From source file:com.googlecode.gchart.client.GChart.java
License:Apache License
private static void setFontWeight(UIObject uio, String fontWeight) { DOM.setStyleAttribute(uio.getElement(), "fontWeight", fontWeight); }