MCPcopy Create free account
hub / github.com/HumbleUI/JWM / ClipboardFormat

Class ClipboardFormat

shared/java/ClipboardFormat.java:7–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5import org.jetbrains.annotations.*;
6
7@Data
8public class ClipboardFormat {
9 /**
10 * <p>Represents a plain string.</p>
11 * <p>Uses system built-in format and encoding for proper text transfer.</p>
12 * <p>On Windows uses utf-16 for unicode text encoding.</p>
13 * <p>On Linux/macOS uses utf-8 for unicode text encoding.</p>
14 */
15 public static ClipboardFormat TEXT = Clipboard._registerPredefinedFormat("text/plain");
16
17 /**
18 * <p>Represents a rich text formatted string.</p>
19 * <p>Uses system built-in format (if present) and encoding for proper text transfer.</p>
20 */
21 public static ClipboardFormat RTF = Clipboard._registerPredefinedFormat("text/rtf");
22
23 /**
24 * <p>Represents an HTML formatted string.</p>
25 * <p>Uses system built-in format (if present) and encoding for proper text transfer.</p>
26 */
27 public static ClipboardFormat HTML = Clipboard._registerPredefinedFormat("text/html");
28
29 /**
30 * <p>Represents URL, encoded as string.</p>
31 * <p>Uses system built-in format (if present) and encoding for proper text transfer.</p>
32 */
33 public static ClipboardFormat URL = Clipboard._registerPredefinedFormat("text/url");
34
35 /**
36 * <p>Note: not supported yet.</p>
37 */
38 public static ClipboardFormat WIN_BITMAP = Clipboard._registerPredefinedFormat("win/bitmap");
39
40 /**
41 * <p>Note: not supported yet.</p>
42 */
43 public static ClipboardFormat WIN_TIFF = Clipboard._registerPredefinedFormat("win/tiff");
44
45 /**
46 * <p>Note: not supported yet.</p>
47 */
48 public static ClipboardFormat MAC_PNG = Clipboard._registerPredefinedFormat("mac/png");
49
50 /**
51 * <p>Note: not supported yet.</p>
52 */
53 public static ClipboardFormat MAC_PDF = Clipboard._registerPredefinedFormat("mac/pdf");
54
55 /**
56 * <p>Note: not supported yet.</p>
57 */
58 public static ClipboardFormat MAC_COLOR = Clipboard._registerPredefinedFormat("mac/color");
59
60 @ApiStatus.Internal public final String _formatId;
61}

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected