Java Code Examples for com.google.gwt.user.client.ui.Widget.setHeight()

The following are Jave code examples for showing how to use setHeight() of the com.google.gwt.user.client.ui.Widget class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: unitimes   File: AriaTabBar.java   View Source Code Vote up 5 votes
public void setRestWidget(Widget rest) {
	HorizontalPanel panel = (HorizontalPanel)getWidget();
	rest.addStyleName("gwt-TabBarRest");
	rest.setHeight("100%");
	panel.remove(panel.getWidgetCount() - 1);
	panel.add(rest);
	panel.setCellWidth(rest, "100%");
	setStyleName(rest.getElement().getParentElement(), "gwt-TabBarRest-wrapper");
}
 
Example 2
Project: empiria.player   File: Preloader.java   View Source Code Vote up 4 votes
public void setPreloaderSize(int width, int height) {
    Widget containerWidget = asWidget();
    containerWidget.setWidth(width + "px");
    containerWidget.setHeight(height + "px");
}