/** * Clear the width of the tables in this widget, which causes them to fill the * available width. * * <p> * The table width is not the same as the width of this widget. If the tables * are narrower than this widget, there will be a gap between the table and * the edge of the widget. If the tables are wider than this widget, a * horizontal scrollbar will appear so the user can scroll horizontally. * </p> * * @see #setMinimumTableWidth(double, Unit) * @see #setTableWidth(double, Unit) */ public void clearTableWidth() { tableHeaderContainer.getElement().getStyle().clearWidth(); tableFooterContainer.getElement().getStyle().clearWidth(); tableDataContainer.getStyle().clearWidth(); }
void setColumnWidth(int column, String width) { if (width == null) { ensureTableColElement(column).getStyle().clearWidth(); } else { ensureTableColElement(column).getStyle().setProperty("width", width); } } }
@Override protected void doSetColumnWidth(int column, String width) { if (width == null) { tableData.ensureTableColElement(column).getStyle().clearWidth(); tableHeader.ensureTableColElement(column).getStyle().clearWidth(); tableFooter.ensureTableColElement(column).getStyle().clearWidth(); } else { tableData.ensureTableColElement(column).getStyle().setProperty("width", width); tableHeader.ensureTableColElement(column).getStyle().setProperty("width", width); tableFooter.ensureTableColElement(column).getStyle().setProperty("width", width); } }
@Override protected void doSetColumnWidth(int column, String width) { // This is invoked when column width is set (which will throw an exception if colgroup is not // enabled), and refreshColumnWidth/clearColumnWidth. The latter two are no op if setColumnWidth // is not invoked first. if (colGroupEnabled) { if (width == null) { ensureTableColElement(column).getStyle().clearWidth(); } else { ensureTableColElement(column).getStyle().setProperty("width", width); } } }
@Override protected void onComplete() { contentContainer.getStyle().clearPosition(); contentContainer.getStyle().clearTop(); contentContainer.getStyle().clearWidth(); super.onComplete(); }
public void removeChild(Element container, Element child) { container.removeFromParent(); // We want this code to be resilient to the child having already been // removed from its container (perhaps by widget code). if (child.getParentElement() == container) { child.removeFromParent(); } // Cleanup child styles set by fillParent(). Style style = child.getStyle(); style.clearPosition(); style.clearLeft(); style.clearTop(); style.clearWidth(); style.clearHeight(); } }
public void resetIndicatorsWidth() { if (rightCaption != null) { rightCaption.getStyle().clearWidth(); } }
/** * Enable browser measurement of the table width. */ public void enableBrowserIntelligence() { hTableContainer.getStyle().clearWidth(); }
@Override protected void onComplete() { toolBar.getElement().getStyle().clearLeft(); container.getElement().getStyle().clearWidth(); }
@Override protected void onComplete() { toolBar.getElement().getStyle().clearLeft(); container.getElement().getStyle().clearWidth(); }
@Override protected void onComplete() { toolBar.getElement().getStyle().clearLeft(); container.getElement().getStyle().clearWidth(); }
public CubaSuggestPopup() { Style style = loadingImage.getElement().getStyle(); style.clearWidth(); style.clearHeight(); style.setDisplay(Style.Display.BLOCK); } }
setValue(layer, "width", layer.width, layer.widthUnit, false, true); } else { style.clearWidth();
protected void resetIndicatorsWidth(VGridLayout.Cell[] column) { for (VGridLayout.Cell cell : column) { if (cell != null && isCaptionInlineApplicable(cell)) { cell.slot.getCaption().getElement().getStyle().clearWidth(); ((CubaFieldGroupLayoutComponentSlot) cell.slot).resetIndicatorsWidth(); } } }
void setColumnWidth(int column, String width) { if (width == null) { ensureTableColElement(column).getStyle().clearWidth(); } else { ensureTableColElement(column).getStyle().setProperty("width", width); } } }
@Override protected void doSetColumnWidth(int column, String width) { if (width == null) { tableData.ensureTableColElement(column).getStyle().clearWidth(); tableHeader.ensureTableColElement(column).getStyle().clearWidth(); tableFooter.ensureTableColElement(column).getStyle().clearWidth(); } else { tableData.ensureTableColElement(column).getStyle().setProperty("width", width); tableHeader.ensureTableColElement(column).getStyle().setProperty("width", width); tableFooter.ensureTableColElement(column).getStyle().setProperty("width", width); } }
@Override protected void doSetColumnWidth(int column, String width) { if (width == null) { tableData.ensureTableColElement(column).getStyle().clearWidth(); tableHeader.ensureTableColElement(column).getStyle().clearWidth(); tableFooter.ensureTableColElement(column).getStyle().clearWidth(); } else { tableData.ensureTableColElement(column).getStyle().setProperty("width", width); tableHeader.ensureTableColElement(column).getStyle().setProperty("width", width); tableFooter.ensureTableColElement(column).getStyle().setProperty("width", width); } }
@Override protected void onComplete() { contentContainer.getStyle().clearPosition(); contentContainer.getStyle().clearTop(); contentContainer.getStyle().clearWidth(); super.onComplete(); }
private <X> X doWithClone(Function<Element, X> callback) { Element clon = DOM.clone(control.getElement(), true); clon.getStyle().setPosition(Position.ABSOLUTE); clon.getStyle().clearPadding(); clon.getStyle().clearWidth(); clon.getStyle().clearHeight(); Document.get().getBody().appendChild(clon); X returnValue = callback.apply(clon); clon.removeFromParent(); return returnValue; } }
private void clearElementStyle() { Element e = this.getElement(); Style style = e.getStyle(); style.clearPosition(); style.clearTop(); style.clearBottom(); style.clearWidth(); style.clearHeight(); style.clearZIndex(); e.getParentElement().getStyle().clearPaddingTop(); } }