/** * Sets the object's size. This size does not include decorations such as * border, margin, and padding. * * @param width the object's new width, in absolute CSS units (e.g. "10px", * "1em", but not "50%") * @param height the object's new height, in absolute CSS units (e.g. "10px", * "1em", but not "50%") */ @Override public void setSize(String width, String height) { super.setSize(width, height); }
appHeader.setSize("100%", "60px");
/** * Sets the object's size. This size does not include decorations such as * border, margin, and padding. * * @param width the object's new width, in absolute CSS units (e.g. "10px", * "1em", but not "50%") * @param height the object's new height, in absolute CSS units (e.g. "10px", * "1em", but not "50%") */ @Override public void setSize(String width, String height) { super.setSize(width, height); }
/** * Sets the object's size. This size does not include decorations such as * border, margin, and padding. * * @param width the object's new width, in absolute CSS units (e.g. "10px", * "1em", but not "50%") * @param height the object's new height, in absolute CSS units (e.g. "10px", * "1em", but not "50%") */ @Override public void setSize(String width, String height) { super.setSize(width, height); }
public void setSize(int width, int height) { int realHeight = height - 20; int realWidth = width - 20; if (realHeight > 0 && realWidth > 0) { widget.setSize("" + realWidth + "px", "" + realHeight + "px"); super.setSize("" + width + "px", "" + height + "px"); } }
public void setSize(String width, String height) { button.setSize(width, height); container.setSize(width, height); wrapper.setSize(width, height); } }
public void onAttach() { if (width != 0 && height != 0) { container.setSize(width + "px", height + "px"); } else { resize(); } wrapper.setSize(width + "px", height + "px"); }
private void resize() { panel.setSize( Window.getClientWidth() + "px", Window.getClientHeight() + "px" ); }
wrapper.setSize(width + "px", height + "px");
SimplePanel chartPanel = new SimplePanel(); chartPanel.getElement().setId("chartDiv"); chartPanel.setSize("500px", "500px"); Button button = new Button("Click Me"); button.addClickHandler(new ClickHandler() {
zoomStep.setSize(ZOOMBUTTON_SIZE + "px", (ZOOMSTEP_HEIGHT + 1) + "px"); zoomStep.setStyleName(resource.css().zoomStepControlStep()); zoomStep.addDomHandler(new ClickHandler() {
zoomStep.setSize(ZOOMBUTTON_SIZE + "px", (ZOOMSTEP_HEIGHT + 1) + "px"); zoomStep.setStyleName(resource.css().zoomStepControlStep()); zoomStep.addDomHandler(new ClickHandler() {