blob: f7bc2e9c6a70d444b395d5e8953c04b49f0e26a7 [file] [log] [blame]
/**
* Copyright 2011-2019 Jonathan Nash and others
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Contributors:
* Jonathan Nash - initial implementation
* Compex Systemhaus GmbH - adaptions for OSBP
*/
package org.eclipse.osbp.xtext.table.common.export;
import com.vaadin.data.Container;
import com.vaadin.data.Property;
import com.vaadin.ui.UI;
import java.io.Serializable;
import java.util.List;
/**
* @author thomas
*/
public interface TableHolder extends Serializable {
List<Object> getPropIds();
boolean isHierarchical();
void setHierarchical(final boolean hierarchical);
Short getCellAlignment(Object propId);
boolean isGeneratedColumn(final Object propId) throws IllegalArgumentException;
Class<?> getPropertyTypeForGeneratedColumn(final Object propId) throws IllegalArgumentException;
Property getPropertyForGeneratedColumn(final Object propId, final Object rootItemId) throws
IllegalArgumentException;
// table delegated methods
boolean isColumnCollapsed(Object propertyId);
UI getUI();
String getColumnHeader(Object propertyId);
Container getContainerDataSource();
boolean isExportableFormattedProperty();
String getFormattedPropertyValue(Object rowId, Object colId, Property property);
}