View Javadoc

1   /*
2    *  File: IFillDragStrategy.java 
3    *  Copyright (c) 2004-2007  Peter Kliem (Peter.Kliem@jaret.de)
4    *  A commercial license is available, see http://www.jaret.de.
5    *
6    * All rights reserved. This program and the accompanying materials
7    * are made available under the terms of the Common Public License v1.0
8    * which accompanies this distribution, and is available at
9    * http://www.eclipse.org/legal/cpl-v10.html
10   */
11  package de.jaret.util.ui.table.strategies;
12  
13  import java.util.List;
14  
15  import de.jaret.util.ui.table.JaretTable;
16  import de.jaret.util.ui.table.model.IJaretTableCell;
17  
18  /***
19   * Interface describing a stragey used when cells should be filled after a fill drag.
20   * 
21   * @author Peter Kliem
22   * @version $Id: IFillDragStrategy.java 175 2007-01-05 00:01:18Z olk $
23   */
24  public interface IFillDragStrategy {
25      /***
26       * Do a fill operation fro the first cell to the other cells.
27       * 
28       * @param table table requesting the operation
29       * @param firstCell originating cell
30       * @param cells cells to be filled
31       */
32      void doFill(JaretTable table, IJaretTableCell firstCell, List<IJaretTableCell> cells);
33  }