blob: 0266703b135592279047c1dee2d65e8ecc995da0 [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.infogrid.api;
import org.eclipse.osbp.ecview.core.common.model.core.YField;
import org.eclipse.osbp.ecview.extension.grid.CxGridColumn;
import org.eclipse.osbp.infogrid.model.gridsource.CxGridProperty;
/**
* Creates a {@link YField} as an editorfield for the given propertyType.
*
* @NoImplement by clients
* @Scope(singleton)
*/
public interface IECViewGridEditorFieldFactory {
/**
* If CxGrid is editable, we need to return a proper editor field to be used
* in the grid editor. If <code>null</code> is returned, the
* {@link CxGridColumn} will be set to <code>editable=false</code>.
*
* @param prop
* @param propertyType
* @return
*/
YField createEditorField(CxGridProperty prop, Class<?> propertyType);
}