use of org.gwtbootstrap3.client.ui.Column in project ovirt-engine by oVirt.
the class AbstractFormPanel method addFormDetailView.
/**
* Adds new detail view (column) to the form panel.
*/
public void addFormDetailView(int numOfRows, int numOfColumns) {
container.clear();
for (int i = 0; i < numOfRows; i++) {
Row row = createRow(numOfColumns);
container.add(row);
}
}
use of org.gwtbootstrap3.client.ui.Column in project ovirt-engine by oVirt.
the class AbstractFormPanel method setRelativeColumnWidth.
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);
}
}
use of org.gwtbootstrap3.client.ui.Column in project kie-wb-common by kiegroup.
the class ProjectClassListViewImpl method addRemoveRowColumn.
private void addRemoveRowColumn() {
Column<ClassRow, String> column = new Column<ClassRow, String>(new ButtonCell(IconType.TRASH, ButtonType.DANGER, ButtonSize.SMALL)) {
@Override
public String getValue(ClassRow classRow) {
return Constants.INSTANCE.project_class_list_action_delete();
}
};
column.setFieldUpdater(new FieldUpdater<ClassRow, String>() {
@Override
public void update(int index, ClassRow classRow, String value) {
if (!readOnly) {
onRemoveClass(classRow);
}
}
});
dataGrid.addColumn(column, Constants.INSTANCE.project_class_list_action_column());
dataGrid.setColumnWidth(column, 10, Style.Unit.PCT);
}
use of org.gwtbootstrap3.client.ui.Column in project kie-wb-common by kiegroup.
the class DatabaseSchemaExplorerViewImpl method addOpenColumn.
private void addOpenColumn() {
Column<DatabaseSchemaRow, String> column = new Column<DatabaseSchemaRow, String>(new ButtonCell(ButtonType.DEFAULT, ButtonSize.SMALL)) {
@Override
public String getValue(DatabaseSchemaRow row) {
return translationService.getTranslation(DataSourceManagementConstants.DatabaseSchemaExplorerViewImpl_schemaOpenAction);
}
};
column.setFieldUpdater(new FieldUpdater<DatabaseSchemaRow, String>() {
@Override
public void update(int index, DatabaseSchemaRow row, String value) {
onOpen(row);
}
});
dataGrid.addColumn(column, translationService.getTranslation(DataSourceManagementConstants.DatabaseSchemaExplorerViewImpl_actionColumn));
dataGrid.setColumnWidth(column, 10, Style.Unit.PCT);
}
use of org.gwtbootstrap3.client.ui.Column in project kie-wb-common by kiegroup.
the class ImportsEditorViewImpl method init.
@Override
public void init(Presenter presenter) {
this.presenter = presenter;
container.setFluid(true);
container.add(row);
row.add(column);
setTitle(StunnerFormsClientFieldsConstants.CONSTANTS.Imports());
column.add(defaultImportsEditorWidget.getWidget());
column.add(wsdlImportsEditorWidget.getWidget());
final Row btnRow = new Row();
btnRow.getElement().getStyle().setMarginTop(10, Style.Unit.PX);
final Column btnColumn = new Column(ColumnSize.MD_12);
btnRow.add(btnColumn);
btnOk = new Button(StunnerFormsClientFieldsConstants.CONSTANTS.Ok());
btnOk.getElement().getStyle().setMarginLeft(5, Style.Unit.PX);
btnOk.setType(ButtonType.PRIMARY);
btnOk.setPull(Pull.RIGHT);
btnOk.addClickHandler(clickEvent -> {
presenter.ok();
defaultImportsEditorWidget.addDataTypes(presenter.getImports());
});
btnColumn.add(btnOk);
btnCancel = new Button(StunnerFormsClientFieldsConstants.CONSTANTS.Cancel());
btnCancel.setPull(Pull.RIGHT);
btnCancel.addClickHandler(clickEvent -> presenter.cancel());
btnColumn.add(btnCancel);
container.add(btnRow);
setBody(container);
}
Aggregations