blob: c55229f61dc4684546864e2f5718ed5bf5192117 [file] [log] [blame]
/**
*
* Copyright (c) 2011, 2016 - Loetz GmbH&Co.KG (69115 Heidelberg, Germany)
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Christophe Loetz (Loetz GmbH&Co.KG) - initial implementation
*
*/
package org.eclipse.osbp.xtext.table.common;
import java.util.Locale;
import org.eclipse.osbp.xtext.datamart.common.olap.DerivedPosition;
import org.tepi.filtertable.FilterTable;
public class CellSetFilterTable extends FilterTable {
/**
*
*/
private static final long serialVersionUID = -1518393043555657561L;
@Override
public String getColumnHeader(Object propertyId) {
if (getColumnHeaderMode() == ColumnHeaderMode.HIDDEN) {
return null;
}
DerivedPosition column = ((CellSetIndexedContainer)getContainerDataSource()).getColumnPosition(propertyId);
if (column != null) {
return column.toString(super.getLocale());
}
return propertyId.toString();
}
@Override
public void setLocale(Locale locale) {
super.setLocale(locale);
resetFilters();
}
}