/** * Explicitly gets the {@link FlexCellFormatter}. The results of * {@link HTMLTable#getCellFormatter()} may also be downcast to a * {@link FlexCellFormatter}. * * @return the FlexTable's cell formatter */ public FlexCellFormatter getFlexCellFormatter() { return (FlexCellFormatter) getCellFormatter(); }
oldPassword.addKeyDownHandler(handler); table.getCellFormatter().setHorizontalAlignment(row, 0, HasHorizontalAlignment.ALIGN_RIGHT); row++; label = new Label(Utils.constants.newPassword()); newPassword.addKeyDownHandler(handler); table.getCellFormatter().setHorizontalAlignment(row, 0, HasHorizontalAlignment.ALIGN_RIGHT); row++; label = new Label(Utils.constants.newPasswordAgain()); newPasswordAgain.addKeyDownHandler(handler); table.getCellFormatter().setHorizontalAlignment(row, 0, HasHorizontalAlignment.ALIGN_RIGHT);
private int addCell(Widget widget, String width, String className) { int cell = grid.getCellCount(0); grid.setWidget(0, cell, widget); grid.getCellFormatter().setWidth(0, cell, width); if (className != null) { grid.getCellFormatter().setStyleName(0, cell, className); } return cell; } }
table.getCellFormatter().setHorizontalAlignment(0, 0, HasHorizontalAlignment.ALIGN_RIGHT);
table.getCellFormatter().setHorizontalAlignment(row, 0, HasHorizontalAlignment.ALIGN_RIGHT);
detailsTable.getFlexCellFormatter().setColSpan(row, 1, 2); description.addInputHandler(this); detailsTable.getCellFormatter().setVerticalAlignment(row, 0, HasVerticalAlignment.ALIGN_TOP); .getStyle() .setPropertyPx("paddingTop", 15); detailsTable.getCellFormatter() .setHorizontalAlignment(row, 2, HasHorizontalAlignment.ALIGN_RIGHT); .getStyle() .setPropertyPx("paddingTop", 15); detailsTable.getCellFormatter() .setHorizontalAlignment(row, 2, HasHorizontalAlignment.ALIGN_RIGHT); detailsTable.setWidget(row, 2, addTopicButton); addTopicButton.getElement().getParentElement().getStyle().setPropertyPx("paddingTop", 15); detailsTable.getCellFormatter() .setHorizontalAlignment(row, 2, HasHorizontalAlignment.ALIGN_RIGHT);
description.addInputHandler(this); detailsTable.getCellFormatter().setVerticalAlignment(5, 0, HasVerticalAlignment.ALIGN_TOP); detailsTable.getCellFormatter().setHorizontalAlignment( 8, 2, HasHorizontalAlignment.ALIGN_RIGHT);
description.addInputHandler(this); detailsTable.getCellFormatter().setVerticalAlignment(4, 0, HasVerticalAlignment.ALIGN_TOP);
description.addInputHandler(this); detailsTable.getCellFormatter().setVerticalAlignment(5, 0, HasVerticalAlignment.ALIGN_TOP);
detailsTable.setWidget(idx, 0, descriptionLabel); detailsTable.setWidget(idx, 1, description); detailsTable.getCellFormatter().setVerticalAlignment(6, 0, HasVerticalAlignment.ALIGN_TOP); description.addInputHandler(this);
detailsTable.setWidget(0, 1, description); detailsTable.getCellFormatter().setVerticalAlignment(0, 0, HasVerticalAlignment.ALIGN_TOP); detailsTable.setWidget(1, 0, bodyLabel); detailsTable.setWidget(1, 1, (Widget) body); detailsTable.getCellFormatter().setVerticalAlignment(1, 0, HasVerticalAlignment.ALIGN_TOP); } else { detailsTable.setWidget(1, 0, (Widget) body); detailsTable.getCellFormatter().setHorizontalAlignment( 2, 0, HasHorizontalAlignment.ALIGN_RIGHT); detailsTable.getFlexCellFormatter().setColSpan(2, 0, 2);
description.addInputHandler(this); detailsTable.getCellFormatter().setVerticalAlignment(5, 0, HasVerticalAlignment.ALIGN_TOP);
/** * Explicitly gets the {@link FlexCellFormatter}. The results of * {@link HTMLTable#getCellFormatter()} may also be downcast to a * {@link FlexCellFormatter}. * * @return the FlexTable's cell formatter */ public FlexCellFormatter getFlexCellFormatter() { return (FlexCellFormatter) getCellFormatter(); }
/** * Explicitly gets the {@link FlexCellFormatter}. The results of * {@link HTMLTable#getCellFormatter()} may also be downcast to a * {@link FlexCellFormatter}. * * @return the FlexTable's cell formatter */ public FlexCellFormatter getFlexCellFormatter() { return (FlexCellFormatter) getCellFormatter(); }
private void removeHeaderSelection() { if (headerSelectedCellIndex >= 0) { header.getCellFormatter().removeStyleName(0, headerSelectedCellIndex, selectionStyle.selectedHeaderCell()); headerSelectedCellIndex = -1; } }
private int addCell(Widget widget, String width, String className) { int cell = grid.getCellCount(0); grid.setWidget(0, cell, widget); grid.getCellFormatter().setWidth(0, cell, width); if (className != null) { grid.getCellFormatter().setStyleName(0, cell, className); } return cell; } }
private int addCell(Widget widget, String width, String className) { int cell = grid.getCellCount(0); grid.setWidget(0, cell, widget); grid.getCellFormatter().setWidth(0, cell, width); if (className != null) { grid.getCellFormatter().setStyleName(0, cell, className); } return cell; } }
/** {@inheritDoc} */ protected int createTab(AdvancedTabPanel panel, FlexTable result, int count, int index, Border border) { HTMLTable.CellFormatter formatter = result.getCellFormatter(); result.setWidget(0, count, (Widget) border); if (panel.getSelected() == index) formatter.setStyleName(0, count++, "selected"); else formatter.setStyleName(0, count++, "unselected"); return count; }
public void updateColumnWidth(int column, int width) { if (!cm.isHidden(column)) { for (int i = 0; i < rows.size(); i++) { FooterRow row = rows.get(i); El.fly(row.table.getCellFormatter().getElement(0, column)).setWidth(width, true); Widget w = row.table.getWidget(0, column); El.fly(w.getElement()).setWidth(width - 2, true); } } }
/** {@inheritDoc} */ protected int createEmpty(FlexTable result, int count, String styleName) { HTMLTable.CellFormatter formatter = result.getCellFormatter(); result.setWidget(count, 0, new Image(ThemeHelper.getInstance().getFullResourceName("advanced/images/single.gif"))); formatter.setStyleName(count++, 0, styleName); return count; } }