Java Code Examples for com.google.gwt.dom.client.Element#setPropertyString()

The following examples show how to use com.google.gwt.dom.client.Element#setPropertyString() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CellPanel.java    From consulo with Apache License 2.0 3 votes vote down vote up
/**
 * Sets the height of the cell associated with the given widget, related to
 * the panel as a whole.
 *
 * @param w the widget whose cell height is to be set
 * @param height the cell's height, in CSS units
 */
public void setCellHeight(Widget w, String height) {
  Element td = getWidgetTd(w);
  if (td != null) {
    td.setPropertyString("height", height);
  }
}
 
Example 2
Source File: CellPanel.java    From consulo with Apache License 2.0 3 votes vote down vote up
/**
 * Sets the width of the cell associated with the given widget, related to the
 * panel as a whole.
 *
 * @param w the widget whose cell width is to be set
 * @param width the cell's width, in CSS units
 */
public void setCellWidth(Widget w, String width) {
  Element td = getWidgetTd(w);
  if (td != null) {
    td.setPropertyString("width", width);
  }
}