01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17: /**
18: * @author Mikhail Danilov
19: * @version $Revision$
20: */package org.apache.harmony.awt.datatransfer;
21:
22: import java.awt.datatransfer.Clipboard;
23:
24: /**
25: * Base class for platrorm-specific clipboards.
26: */
27: public abstract class NativeClipboard extends Clipboard {
28:
29: protected static final int OPS_TIMEOUT = 10000; // ms
30:
31: /**
32: * Creates native clipboard object.
33: * @param name - clipboard name.
34: */
35: public NativeClipboard(String name) {
36: super (name);
37: }
38:
39: /**
40: * Called when AWT is shutting down.
41: * Necessary for Windows like native platforms where native clipboard
42: * viewers' list supported on application level.
43: */
44: public void onShutdown() {
45: }
46:
47: /**
48: * Called when AWT is restarted after automatic shutdown.
49: * Necessary for Windows like native platforms where native clipboard
50: * viewers' list supported on application level.
51: */
52: public void onRestart() {
53: }
54:
55: }
|