use of com.extjs.gxt.ui.client.widget.grid.ColumnConfig in project activityinfo by bedatadriven.
the class DrillDownEditor method buildColumnModel.
private ColumnModel buildColumnModel() {
List<ColumnConfig> config = new ArrayList<>();
config.add(new ColumnConfig("database", I18N.CONSTANTS.database(), 100));
config.add(new ColumnConfig("activity", I18N.CONSTANTS.activity(), 100));
config.add(new ColumnConfig("partner", I18N.CONSTANTS.partner(), 100));
config.add(new ColumnConfig("location", I18N.CONSTANTS.location(), 100));
config.add(new ColumnConfig("date", I18N.CONSTANTS.date(), 100));
config.add(new ColumnConfig("indicator", I18N.CONSTANTS.indicator(), 100));
ColumnConfig valueColumn = new ColumnConfig("value", I18N.CONSTANTS.value(), 100);
valueColumn.setNumberFormat(IndicatorNumberFormat.INSTANCE);
valueColumn.setAlignment(Style.HorizontalAlignment.RIGHT);
config.add(valueColumn);
return new ColumnModel(config);
}
use of com.extjs.gxt.ui.client.widget.grid.ColumnConfig in project activityinfo by bedatadriven.
the class DbPartnerEditor method createColumnModel.
private ColumnModel createColumnModel() {
List<ColumnConfig> columns = new ArrayList<>();
columns.add(new ColumnConfig("name", I18N.CONSTANTS.name(), 150));
columns.add(new ColumnConfig("fullName", I18N.CONSTANTS.description(), 300));
return new ColumnModel(columns);
}
use of com.extjs.gxt.ui.client.widget.grid.ColumnConfig in project activityinfo by bedatadriven.
the class DbProjectGrid method createColumnModel.
protected ColumnModel createColumnModel() {
List<ColumnConfig> columns = new ArrayList<>();
columns.add(new ColumnConfig("name", messages.name(), 150));
columns.add(new ColumnConfig("description", messages.description(), 300));
return new ColumnModel(columns);
}
use of com.extjs.gxt.ui.client.widget.grid.ColumnConfig in project activityinfo by bedatadriven.
the class ColumnModelBuilder method addLockOrLinkColumn.
private void addLockOrLinkColumn(LockedPeriodSet lockSet) {
ColumnConfig lockedOrLinkColumn = new ColumnConfig("x", "", 28);
lockedOrLinkColumn.setRenderer(new LockedOrLinkColumnRenderer(lockSet));
lockedOrLinkColumn.setSortable(false);
lockedOrLinkColumn.setMenuDisabled(true);
columns.add(lockedOrLinkColumn);
}
use of com.extjs.gxt.ui.client.widget.grid.ColumnConfig in project activityinfo by bedatadriven.
the class ColumnModelBuilder method addMapColumn.
public ColumnModelBuilder addMapColumn() {
ColumnConfig mapColumn = new ColumnConfig("x", "", 25);
mapColumn.setRenderer(new MappedColumnRenderer());
columns.add(mapColumn);
return this;
}
Aggregations