0
|
1 |
/*
|
|
2 |
* Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
* All rights reserved.
|
|
4 |
* This component and the accompanying materials are made available
|
|
5 |
* under the terms of "Eclipse Public License v1.0"
|
|
6 |
* which accompanies this distribution, and is available
|
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
8 |
*
|
|
9 |
* Initial Contributors:
|
|
10 |
* Nokia Corporation - initial contribution.
|
|
11 |
*
|
|
12 |
* Contributors:
|
|
13 |
*
|
|
14 |
* Description:
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
package com.nokia.s60tools.ui;
|
|
20 |
|
|
21 |
import java.util.List;
|
|
22 |
|
|
23 |
/**
|
|
24 |
* Defines common interface used by copy handler
|
|
25 |
* clients. Clients can have a set of possible
|
|
26 |
* copy handler implementations, and this
|
|
27 |
* interface helps to select correct implementation
|
|
28 |
* for the object type at hand.
|
|
29 |
*
|
|
30 |
* Copy handlers are implemented by subclassing
|
|
31 |
* <code>AbstractTextClipboardCopyHandler</code> class .
|
|
32 |
*
|
|
33 |
* There should be only one copy handler defined per object
|
|
34 |
* type.
|
|
35 |
*
|
|
36 |
* @see com.nokia.s60tools.ui.AbstractTextClipboardCopyHandler
|
|
37 |
*/
|
|
38 |
public interface ICopyActionHandler {
|
|
39 |
|
|
40 |
/**
|
|
41 |
* This methods tests if the given object type is supported,
|
|
42 |
* and copies object data to the clipboard if the object
|
|
43 |
* type was supported.
|
|
44 |
* @param objectsToCopyList List of objects to perform copy for.
|
|
45 |
* @return Returns <code>true</code> if the object type was
|
|
46 |
* recognized and copy was performed, otherwise returns
|
|
47 |
* <code>false</code>.
|
|
48 |
*/
|
|
49 |
public boolean acceptAndCopy(List<Object> objectsToCopyList);
|
|
50 |
}
|