View Javadoc

1   /*
2    *  File: ICCPStrategy.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 de.jaret.util.ui.table.JaretTable;
14  
15  /***
16   * Interface describing the strategies used for Cut, Copy and Paste.
17   * 
18   * @author Peter Kliem
19   * @version $Id: ICCPStrategy.java 179 2007-01-07 17:37:50Z olk $
20   */
21  public interface ICCPStrategy {
22      /***
23       * Do the cut operation.
24       * 
25       * @param table table the operation should be performed on
26       */
27      void cut(JaretTable table);
28  
29      /***
30       * Do the copy operation.
31       * 
32       * @param table table the operation should be performed on
33       */
34      void copy(JaretTable table);
35  
36      /***
37       * Do the paste operation.
38       * 
39       * @param table table the operation should be performed on
40       */
41      void paste(JaretTable table);
42  
43      /***
44       * If there is something to dispose ... most probably the clipboard instance.
45       * 
46       */
47      void dispose();
48  }