/** * Creates column with one or more additional sizes. * <p/> * Additional sizes can be added with {@link #addSize(ColumnSize...)} * * @param firstSize Size of column * @param otherSizes Other sizes of column * @see #addSize(ColumnSize...) */ public Column(final ColumnSize firstSize, final ColumnSize... otherSizes) { setSize(firstSize, otherSizes); }
/** * Creates column with one or more additional sizes. * <p/> * Additional sizes can be added with {@link #addSize(ColumnSize...)} * * @param firstSize Size of column * @param otherSizes Other sizes of column * @see #addSize(ColumnSize...) */ public Column(final ColumnSize firstSize, final ColumnSize... otherSizes) { setSize(firstSize, otherSizes); }
/** * Convenience constructor for UiBinder to create a Column with one or more * sizes. * <p/> * Size needs to be a space-separated String of {@link ColumnSize} enum * names, e.g. "SM_3 LG_3" * * @param size Space-separated String of {@link ColumnSize} * @see ColumnSize */ @UiConstructor public Column(final String size) { setSize(size); }
/** * Convenience constructor for UiBinder to create a Column with one or more * sizes. * <p/> * Size needs to be a space-separated String of {@link ColumnSize} enum * names, e.g. "SM_3 LG_3" * * @param size Space-separated String of {@link ColumnSize} * @see ColumnSize */ @UiConstructor public Column(final String size) { setSize(size); }
public void setRelativeColumnWidth(int columnNum, int widthInGridColumns) { for(int i = 0; i < container.getWidgetCount(); i++) { Row row = (Row) container.getWidget(i); Column column = (Column) row.getWidget(columnNum); column.setSize(COL_PREFIX + widthInGridColumns); } }
public StepWidget(Step step, int indent) { initWidget(WidgetUiBinder.uiBinder.createAndBindUi(this)); column.setSize(determineSize(indent)); column.setOffset(determineOffset(indent)); if (JobExecutionStatus.STARTED.equals(step.getStatus())) { markStarted(); } label.getElement().setInnerSafeHtml(SafeHtmlUtils.fromString(step.getDescription())); jobProgressBar.setType(TaskWidget.getProgressBarType(step.getStatus())); if (JobExecutionStatus.FINISHED.equals(step.getStatus())) { markFinished(step); } else { markInProgress(step); } if (!step.getSteps().isEmpty()) { // Updated values, add the sub tasks step.getSteps().forEach(subStep -> container.add(createStep(subStep, indent + 1)) ); } }