blob: 0de319cac6874f84cae636d8c2245262ceeb3ca8 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2012 Laurent CARON
* 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:
* Laurent CARON (laurent.caron at gmail dot com) - initial API and implementation
*******************************************************************************/
package org.mihalis.opal.propertyTable.editor;
import org.eclipse.swt.custom.ControlEditor;
import org.eclipse.swt.widgets.Item;
import org.mihalis.opal.propertyTable.PTProperty;
import org.mihalis.opal.propertyTable.PTWidget;
/**
* This abstract class represents a Property Table Editor. An editor is a widget
* that allows one to modify a property
*
*/
public abstract class PTEditor {
/**
* Renders an editor.
*
* @param parent the parent PTWidget (a table or a tree table)
* @param item the item on which the editor is displayed
* @param property the property associated to the editor
* @return a control editor
*/
public abstract ControlEditor render(PTWidget parent, Item item, PTProperty property);
}