|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--com.macmillan.nmeyers.XClipboard
Implements some X-specific methods for cut and paste.
The X Window System has several mechanisms to support cut and paste:
| Field Summary | |
protected byte[] |
privateXData
Hold platform-specific data here: X window connection and window ID. |
| Constructor Summary | |
XClipboard()
The class constructor opens a connection to the X server. |
|
| Method Summary | |
protected void |
finalize()
Shut down the X connection at finalization. |
static void |
main(java.lang.String[] argv)
A simple test of the selection mechanisms. |
java.lang.String |
readClipboardSelectionString()
Read the clipboard selection as a string. |
byte[] |
readCutBuffer0()
Read the contents of CutBuffer0. |
java.lang.String |
readPrimarySelectionString()
Read the primary selection as a string. |
java.lang.String |
readSecondarySelectionString()
Read the secondary selection as a string. |
protected java.lang.Object |
readSelection(byte[] dp,
byte[] selection,
byte[] target)
Request and read the current selection. |
| Methods inherited from class java.lang.Object |
clone,
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Field Detail |
protected byte[] privateXData
| Constructor Detail |
public XClipboard()
| Method Detail |
protected void finalize()
public byte[] readCutBuffer0()
protected java.lang.Object readSelection(byte[] dp,
byte[] selection,
byte[] target)
dp - The private X data created by the class constructor.selection - The selection being requested - name of an X
atom. The usual cut/paste buffer is "PRIMARY". Also of interest:
"SECONDARY" and "CLIPBOARD".target - The target type - name of an X atom. "STRING" is
the most common.public java.lang.String readPrimarySelectionString()
public java.lang.String readSecondarySelectionString()
public java.lang.String readClipboardSelectionString()
public static void main(java.lang.String[] argv)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||