}
});
column.setEditor(ce);
configs.add(column);
final CheckColumnConfig defaultColumn;
final CheckColumnConfig activeColumn;
if (editable) {
defaultColumn = new CheckColumnConfig("default", Messages.get("label.urlmapping.default", "Default"), 70);
defaultColumn.setEditor(new CellEditor(new CheckBox()));
activeColumn = new CheckColumnConfig("active", Messages.get("label.urlmapping.active", "Active"), 55);
activeColumn.setEditor(new CellEditor(new CheckBox()));
} else {
defaultColumn = new CheckColumnConfig("default", Messages.get("label.urlmapping.default", "Default"), 70){
protected String getCheckState(ModelData model, String property, int rowIndex,
int colIndex) {
return "-disabled";
}
};
activeColumn = new CheckColumnConfig("active", Messages.get("label.urlmapping.active", "Active"), 55){
protected String getCheckState(ModelData model, String property, int rowIndex,
int colIndex) {
return "-disabled";
}
};