| /* |
| * Copyright (C) 2005 David Orme <djo@coconut-palm-software.com> |
| * |
| * 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: |
| * David Orme - Initial API and implementation |
| */ |
| package org.eclipse.jface.examples.databinding.compositetable; |
| |
| /** |
| * Interface IInsertHandler. An interface for objects that can handle requests to insert a new |
| * object into a collection being edited by a CompositeTable. |
| * |
| * @author djo |
| */ |
| public interface IInsertHandler { |
| /** |
| * Method insert. Requests that the receiver insert object(s) making up a new row at |
| * the specified position. The receiver returns the actual position where the insert |
| * occured (that doesn't have to be the same as the requested position). |
| * |
| * @param positionHint The user's current position in the user interface relative to the |
| * beginning of the collection (0-based). |
| * |
| * @return the actual position of the new object. |
| */ |
| public int insert(int positionHint); |
| } |