loginTable.setWidget(2, 0, forgotPasswordLabel); loginTable.getFlexCellFormatter().setWidth(0, 0, "130px"); loginTable.getFlexCellFormatter() .setHorizontalAlignment(0, 0, HasHorizontalAlignment.ALIGN_RIGHT);
3, HasVerticalAlignment.ALIGN_TOP ); layout.getFlexCellFormatter().setWidth( currentLayoutRow, 3, "100%" );
3, HasVerticalAlignment.ALIGN_TOP ); layout.getFlexCellFormatter().setWidth( currentLayoutRow, 3, "100%" );
3, HasVerticalAlignment.ALIGN_TOP); layout.getFlexCellFormatter().setWidth(currentLayoutRow, 3, "100%");
3, HasVerticalAlignment.ALIGN_TOP); layout.getFlexCellFormatter().setWidth(currentLayoutRow, 3, "100%");
3, HasVerticalAlignment.ALIGN_TOP); layout.getFlexCellFormatter().setWidth(currentLayoutRow, 3, "100%");
3, HasVerticalAlignment.ALIGN_TOP); layout.getFlexCellFormatter().setWidth(currentLayoutRow, 3, "100%");
HasVerticalAlignment.ALIGN_BOTTOM ); formatter.setWidth( 0, 0, "1px" );
/*************************************** * Sets the size of the cell in which the last component has been added to * this layout. * * @param rContainer The container to set the component cell size of * @param sWidth The width of the component's cell or NULL for none * @param sHeight The height of the component's cell or NULL for none */ public void setCellSize(Container rContainer, String sWidth, String sHeight) { FlexTable rTable = (FlexTable) rContainer.getWidget(); CellAddress rCell = getCell(rTable, false); if (sWidth != null) { rTable.getFlexCellFormatter() .setWidth(rCell.nRow, rCell.nCol, sWidth); } if (sHeight != null) { rTable.getFlexCellFormatter() .setHeight(rCell.nRow, rCell.nCol, sHeight); } }
/** * Getter for property 'layout'. * * @return Value for property 'layout'. */ protected FlexTable getLayout() { if (layout == null) { layout = new FlexTable(); layout.setCellPadding(0); layout.setCellSpacing(0); layout.getFlexCellFormatter().setWidth(0, 0, "100%"); } return layout; }