0
|
1 // Copyright (C) 2010, 2011, 2012, 2013 GlavSoft LLC.
|
|
2 // All rights reserved.
|
|
3 //
|
|
4 //-------------------------------------------------------------------------
|
|
5 // This file is part of the TightVNC software. Please visit our Web site:
|
|
6 //
|
|
7 // http://www.tightvnc.com/
|
|
8 //
|
|
9 // This program is free software; you can redistribute it and/or modify
|
|
10 // it under the terms of the GNU General Public License as published by
|
|
11 // the Free Software Foundation; either version 2 of the License, or
|
|
12 // (at your option) any later version.
|
|
13 //
|
|
14 // This program is distributed in the hope that it will be useful,
|
|
15 // but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
16 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
17 // GNU General Public License for more details.
|
|
18 //
|
|
19 // You should have received a copy of the GNU General Public License along
|
|
20 // with this program; if not, write to the Free Software Foundation, Inc.,
|
|
21 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
22 //-------------------------------------------------------------------------
|
|
23 //
|
|
24
|
|
25 package com.glavsoft.rfb;
|
|
26
|
|
27 /**
|
|
28 * Interface for handling clipboard texts
|
|
29 */
|
|
30 public interface ClipboardController extends IChangeSettingsListener {
|
|
31 void updateSystemClipboard(byte[] bytes);
|
|
32
|
|
33 /**
|
|
34 * Get text clipboard contens when needed send to remote, or null vise versa
|
|
35 * Implement this method such a way in swing context, because swing's clipboard
|
|
36 * update listener invoked only on DataFlavor changes not content changes.
|
|
37 * Implement as returned null on systems where clipboard listeners work correctly.
|
|
38 *
|
|
39 * @return clipboad string contents if it is changed from last method call
|
|
40 * or null when clipboard contains non text object or clipboard contents didn't changed
|
|
41 */
|
|
42 String getRenewedClipboardText();
|
|
43
|
|
44 /**
|
|
45 * Returns clipboard text content previously retrieved frim system clipboard by
|
|
46 * updateSavedClippoardContent()
|
|
47 *
|
|
48 * @return clipboard text content
|
|
49 */
|
|
50 String getClipboardText();
|
|
51
|
|
52 /**
|
|
53 * Enable/disable clipboard transfer
|
|
54 *
|
|
55 * @param enable
|
|
56 */
|
|
57 void setEnabled(boolean enable);
|
|
58
|
|
59 }
|