@Override
protected void addAncillaryColumns(ColumnPicker<PropertyHolderAdaptor> columnPicker,
SortableHeaderGroup<PropertyHolderAdaptor> sortableHeaderGroup) {
Column<PropertyHolderAdaptor, String> propertyNameColumn = new Column<PropertyHolderAdaptor, String>( new PopupTextEditCell() ) {
@Override
public String getValue(PropertyHolderAdaptor object) {
return object.getName();
}
};
propertyNameColumn.setFieldUpdater( new FieldUpdater<PropertyHolderAdaptor, String>() {
public void update(int index,
PropertyHolderAdaptor object,
String value) {
object.setName( value );
}
} );
columnPicker.addColumn( propertyNameColumn,
new SortableHeader<PropertyHolderAdaptor, String>(
sortableHeaderGroup,
Constants.INSTANCE.Item(),
propertyNameColumn ),
true );
Column<PropertyHolderAdaptor, String> propertyValueColumn = new Column<PropertyHolderAdaptor, String>( new PopupTextEditCell() ) {
@Override
public String getValue(PropertyHolderAdaptor object) {
return object.getValue();
}