Search in sources :

Example 1 with ColumnConfig

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);
}
Also used : ColumnConfig(com.extjs.gxt.ui.client.widget.grid.ColumnConfig) ArrayList(java.util.ArrayList) ColumnModel(com.extjs.gxt.ui.client.widget.grid.ColumnModel)

Example 2 with ColumnConfig

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);
}
Also used : ColumnConfig(com.extjs.gxt.ui.client.widget.grid.ColumnConfig) ArrayList(java.util.ArrayList) ColumnModel(com.extjs.gxt.ui.client.widget.grid.ColumnModel)

Example 3 with ColumnConfig

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);
}
Also used : ColumnConfig(com.extjs.gxt.ui.client.widget.grid.ColumnConfig) ArrayList(java.util.ArrayList) ColumnModel(com.extjs.gxt.ui.client.widget.grid.ColumnModel)

Example 4 with ColumnConfig

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);
}
Also used : ColumnConfig(com.extjs.gxt.ui.client.widget.grid.ColumnConfig)

Example 5 with ColumnConfig

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;
}
Also used : ColumnConfig(com.extjs.gxt.ui.client.widget.grid.ColumnConfig)

Aggregations

ColumnConfig (com.extjs.gxt.ui.client.widget.grid.ColumnConfig)15 ColumnModel (com.extjs.gxt.ui.client.widget.grid.ColumnModel)5 ArrayList (java.util.ArrayList)5 NumberField (com.extjs.gxt.ui.client.widget.form.NumberField)2 CellEditor (com.extjs.gxt.ui.client.widget.grid.CellEditor)2 GridEvent (com.extjs.gxt.ui.client.event.GridEvent)1 EditorGrid (com.extjs.gxt.ui.client.widget.grid.EditorGrid)1 VBoxLayoutData (com.extjs.gxt.ui.client.widget.layout.VBoxLayoutData)1 EditColorColumn (org.activityinfo.ui.client.page.common.columns.EditColorColumn)1 ReadTextColumn (org.activityinfo.ui.client.page.common.columns.ReadTextColumn)1