| /** |
| * |
| * 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.infogrid.api; |
| |
| import org.eclipse.osbp.infogrid.model.gridsource.CxGridSource; |
| |
| import org.eclipse.osbp.ecview.extension.grid.CxGrid; |
| |
| /** |
| * Creates a CxGrid based on a given CxGridSource |
| * |
| * @NoImplement by clients |
| * @Scope(singleton) |
| */ |
| public interface IECViewGridFactory { |
| |
| /** |
| * The ID to access the grid editpart by IViewContext. |
| */ |
| public static final String GRID_ID = "org.eclipse.osbp.gridsource.grid"; |
| |
| /** |
| * The ID of the gridsource put to the grids properties. |
| */ |
| public static final String GRIDSOURCE_ID = "GRIDSOURCE_ID"; |
| |
| /** |
| * Returns a proper built grid for the given source and input type. The |
| * inputType is used to configure the filter statements for the connection |
| * between input type and root type.<br> |
| * |
| * @param inputType |
| * The input type to prepare a proper filter. |
| * @param gridSource |
| * |
| * @return |
| */ |
| CxGrid createGrid(Class<?> inputType, CxGridSource gridSource); |
| |
| } |