@Override public Element getElement() { // we need this because of lazy rendering return table.getElement(); }
public void updateTotalWidth(int offset, int width) { for (int i = 0; i < rows.size(); i++) { FooterRow row = rows.get(i); row.setWidth(offset); row.table.getElement().getStyle().setPropertyPx("width", width); } }
public void updateTotalWidth(int offset, int width) { if (offset != -1) table.getElement().getParentElement().getStyle().setPropertyPx("width", ++offset); table.getElement().getStyle().setProperty("width", (++width) + "px"); }
emptyTableWidgetContainer.getElement().setAttribute("align", "center"); loadingIndicatorContainer = new FlexTable(); loadingIndicatorContainer.getElement().setAttribute("align", "center");
@Override protected void onRender(Element target, int index) { table.setCellPadding(0); table.setCellSpacing(0); table.getElement().getStyle().setProperty("tableLayout", "fixed"); table.getElement().setAttribute("role", "presentation"); table.getElement().getFirstChildElement().setAttribute("role", "presentation"); setElement(table.getElement(), target, index); List<HeaderGroupConfig> configs = cm.getHeaderGroups(); rows = 0; for (HeaderGroupConfig config : configs) { rows = Math.max(rows, config.getRow() + 1); } rows++; quickTip = new QuickTip(this); refresh(); }
protected void cleanCells() { NodeList<Element> tds = DomQuery.select("tr.x-grid3-hd-row > td", table.getElement()); for (int i = 0; i < tds.getLength(); i++) { Element td = tds.getItem(i); if (!td.hasChildNodes()) { El.fly(td).removeFromParent(); } } }
public SimpleWidgetTable(List<String> columnNames){ Element thead = DOM.createElement("thead"); Element tr = DOM.createTR(); int columnPercentage = 100/columnNames.size(); Element table = simpleTable.getElement(); DOM.appendChild(thead,tr); for (String columnName: columnNames) { Element th = DOM.createTH(); DOM.appendChild(tr,th); DOM.setInnerText(th,columnName); th.setAttribute("width", columnPercentage + "%"); } DOM.insertChild(table,thead,0); simpleTable.setWidth("100%"); simpleTable.setStyleName("ks-table-plain"); this.initWidget(simpleTable); }
public ColorPicker() { super(true); FlexTable t = new FlexTable(); t.setCellPadding(0); t.setCellSpacing(0); DOM.setStyleAttribute(t.getElement(), "border", "1px solid #cccccc"); int i=0; for (int r=0; i<colors.length; r++) { for (int c=0; c<7 && i<colors.length; c++, i++) { ColorCell cell = new ColorCell(colors[i]); cell.addClickHandler(this); t.setWidget(r, c, cell); } } add(t); setAnimationEnabled(true); setStyleName("hupa-color-picker"); }
_grid.getElement().setAttribute("width", _width + _unit.getType() + ""); //$NON-NLS-1$ //$NON-NLS-2$
Element body = fly(table.getElement()).selectNode("tbody").dom; table.getElement().insertBefore(tbody, body); removeChildren(tbody); DomHelper.insertHtml("afterBegin", tbody, renderHiddenHeaders(getColumnWidths()));
emptyTableWidgetContainer.getElement().setAttribute("align", "center"); loadingIndicatorContainer = new FlexTable(); loadingIndicatorContainer.getElement().setAttribute("align", "center");
emptyTableWidgetContainer.getElement().setAttribute("align", "center"); loadingIndicatorContainer = new FlexTable(); loadingIndicatorContainer.getElement().setAttribute("align", "center");
el().appendChild(table.getElement());
table.getElement().getStyle().setProperty("marginLeft", "60px");