private void updateImageElementFromImageResource(Element imageSpan, ImageResource res, int spacing) { SafeUri url = res.getSafeUri(); int width = res.getWidth(); int height = res.getHeight(); int paddingRight = width + spacing; String style = "url(\"" + url.asString() + "\") no-repeat scroll left center"; imageSpan.getStyle().setProperty("background", style); imageSpan.getStyle().setPropertyPx("width", width); imageSpan.getStyle().setPropertyPx("height", height); imageSpan.getStyle().setPropertyPx("paddingRight", paddingRight); }
@Override protected HasValue<String> createBody(HasErrorMessage hasErrorMessage) { SizedTextArea body = new SizedTextArea(-1); body.getTextArea().getElement().getStyle().setPropertyPx("minHeight", 200); return body; }
endpointProfileRecordPanel.setPreferredHeightPx(200); endpointProfileRecordPanel.setHeight("320px"); endpointProfileRecordPanel.getElement().getStyle().setPropertyPx("maxHeight", 320); endpointProfileRecordPanel.getElement().getStyle().setOverflow(Overflow.AUTO); serverProfileRecordPanel.setPreferredHeightPx(200); serverProfileRecordPanel.setHeight("320px"); serverProfileRecordPanel.getElement().getStyle().setPropertyPx("maxHeight", 320); serverProfileRecordPanel.getElement().getStyle().setOverflow(Overflow.AUTO); filterPanel.getTextArea().getElement().getStyle().setPropertyPx("minHeight", 200); filterPanel.getTextArea().getElement().getStyle().setPropertyPx("maxHeight", 200); filterPanel.getTextArea().setWidth("725px"); filterPanel.getTextArea().getElement().getStyle().setPropertyPx("maxWidth", 725); filterPanel.addInputHandler(new InputEventHandler() { @Override
public HSplitter(Widget target, boolean reverse) { super(target, reverse); getElement().getStyle().setPropertyPx("width", splitterSize); setStyleName("gwt-SplitLayoutPanel-HDragger"); }
public VSplitter(Widget target, boolean reverse) { super(target, reverse); getElement().getStyle().setPropertyPx("height", splitterSize); setStyleName("gwt-SplitLayoutPanel-VDragger"); }
listBox.getElement().getStyle().setPropertyPx("minWidth", 100); HorizontalPanel groupPanel = new HorizontalPanel(); groupPanel.setSpacing(15);
description = new SizedTextArea(1024); description.setWidth("100%"); description.getTextArea().getElement().getStyle().setPropertyPx("minHeight", 100); description.getTextArea().getElement().getStyle().setPropertyPx("maxWidth", 487); Label descriptionLabel = new Label(Utils.constants.description()); detailsTable.setWidget(row, 0, descriptionLabel); .getParentElement() .getStyle() .setPropertyPx("paddingBottom", 10); .getParentElement() .getStyle() .setPropertyPx("paddingTop", 15); detailsTable.getCellFormatter() .setHorizontalAlignment(row, 2, HasHorizontalAlignment.ALIGN_RIGHT); .getParentElement() .getStyle() .setPropertyPx("paddingBottom", 10); .getParentElement() .getStyle() .setPropertyPx("paddingTop", 15); detailsTable.getCellFormatter() .setHorizontalAlignment(row, 2, HasHorizontalAlignment.ALIGN_RIGHT); topicsLabel.getElement().getParentElement().getStyle().setPropertyPx("paddingBottom", 10);
public void adjust(Element img, SafeUri url, int left, int top, int width, int height) { String style = "url(\"" + url.asString() + "\") no-repeat " + (-left + "px ") + (-top + "px"); img.getStyle().setProperty("background", style); img.getStyle().setPropertyPx("width", width); img.getStyle().setPropertyPx("height", height); }
.getParentElement() .getStyle() .setPropertyPx("paddingBottom", 10); detailsTable.setWidget(++row, 0, sdkAefMapsGrid); sdkAefMapsGrid.getElement().getParentElement().getStyle().setPropertyPx("paddingBottom", 10); detailsTable.getFlexCellFormatter().setColSpan(row, 0, 3);
description.getTextArea().getElement().getStyle().setPropertyPx("minHeight", 100); Label descriptionLabel = new Label(Utils.constants.description()); detailsTable.setWidget(5, 0, descriptionLabel); ecfVersionsLabel.getElement().getParentElement().getStyle().setPropertyPx("paddingBottom", 10); addEcfVersionButton.getElement().getParentElement().getStyle().setPropertyPx("paddingTop", 15); detailsTable.getCellFormatter().setHorizontalAlignment( 8, 2, HasHorizontalAlignment.ALIGN_RIGHT);
schemaRecordPanel.getElement().getStyle().setPropertyPx("minWidth", 750); schemaRecordPanel.getRecordWidget().setForceNavigation(true); schemaRecordPanel.setPreferredHeightPx(250);
/** * Sets the popup's position relative to the browser's client area. The * popup's position may be set before calling {@link #show()}. * * @param left the left position, in pixels * @param top the top position, in pixels */ public void setPopupPosition(int left, int top) { // Save the position of the popup leftPosition = left; topPosition = top; // Account for the difference between absolute position and the // body's positioning context. left -= Document.get().getBodyOffsetLeft(); top -= Document.get().getBodyOffsetTop(); // Set the popup's position manually, allowing setPopupPosition() to be // called before show() is called (so a popup can be positioned without it // 'jumping' on the screen). Element elem = getElement(); elem.getStyle().setPropertyPx("left", left); elem.getStyle().setPropertyPx("top", top); }
description.getTextArea().getElement().getStyle().setPropertyPx("minHeight", 100); Label descriptionLabel = new Label(Utils.constants.description()); detailsTable.setWidget(4, 0, descriptionLabel);
description.getTextArea().getElement().getStyle().setPropertyPx("minHeight", 80); Label descriptionLabel = new Label(Utils.constants.description()); detailsTable.setWidget(5, 0, descriptionLabel);
description.getTextArea().getElement().getStyle().setPropertyPx("minHeight", 100); Label descriptionLabel = new Label(Utils.constants.description()); idx++;
description.getTextArea().getElement().getStyle().setPropertyPx("minHeight", 80); Label descriptionLabel = new Label(Utils.constants.description()); detailsTable.setWidget(5, 0, descriptionLabel);
eventMapLabel.getElement().getParentElement().getStyle().setPropertyPx("paddingBottom", 10);
elem.getStyle().setPropertyPx("left", 0); elem.getStyle().setPropertyPx("top", 0);
if (growing) { fixedHeight = container2.getOffsetHeight(); container2.getStyle().setPropertyPx("height", Math.max(1, fixedHeight - 1)); } else { fixedHeight = container1.getOffsetHeight(); container1.getStyle().setPropertyPx("height", Math.max(1, fixedHeight - 1));
description.getTextArea().getElement().getStyle().setPropertyPx("minHeight", 100); Label descriptionLabel = new Label(Utils.constants.description()); descriptionLabel.setWidth("200px");