|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gnu.glib.Boxed
org.gnu.gtk.Clipboard
The Clipboard object represents a clipboard of data shared between different processes or between different widgets in the same process.
TODO: This requires gdk.Selections
TODO: callback functions
Field Summary |
Fields inherited from class org.gnu.glib.Boxed |
handle |
Constructor Summary | |
protected |
Clipboard(Handle handle)
|
Method Summary | |
void |
clear()
Clear the contents of the clipboard. |
static Clipboard |
get(Atom atom)
Returns the clipboard object for the given selection. |
SelectionData |
getContents(Atom atom)
Requests the contents of the clipboard as SelectionData |
Display |
getDisplay()
Gets the Display associated with clipboard. |
static Clipboard |
getForDisplay(Display display,
Atom atom)
|
Pixbuf |
getImage()
|
java.lang.String |
getText()
Requests the contents of the clipboard as text. |
protected static void |
gtk_clipboard_clear(Handle clipboard)
|
protected static Handle |
gtk_clipboard_get_display(Handle clipboard)
|
protected static Handle |
gtk_clipboard_get_owner(Handle clipboard)
|
protected static Handle |
gtk_clipboard_get(Handle selection)
|
protected static void |
gtk_clipboard_set_can_store(Handle clipboard,
Handle[] targets)
|
protected static void |
gtk_clipboard_set_image(Handle clipboard,
Handle pixbuf)
|
protected static void |
gtk_clipboard_set_text(Handle clipboard,
java.lang.String text,
int len)
|
protected static void |
gtk_clipboard_store(Handle clipboard)
|
protected static Handle |
gtk_clipboard_wait_for_image(Handle clipboard)
|
protected static java.lang.String |
gtk_clipboard_wait_for_text(Handle clipboard)
|
protected static boolean |
gtk_clipboard_wait_is_image_available(Handle clipboard)
|
protected static boolean |
gtk_clipboard_wait_is_target_available(Handle clipboard,
Handle target)
|
protected static boolean |
gtk_clipboard_wait_is_text_available(Handle clipboard)
|
boolean |
isImageAvailable()
|
boolean |
isTextAvailable()
|
void |
setCanStore(TargetEntry[] targets)
|
void |
setImage(Pixbuf pixbuf)
|
void |
setText(java.lang.String text)
Set the contents of the clipboard. |
void |
store()
|
Methods inherited from class org.gnu.glib.Boxed |
equals, getHandle, hashCode, setHandle |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected Clipboard(Handle handle)
Method Detail |
public void clear()
public static Clipboard get(Atom atom)
getForDisplay(Display, Atom)
for complete details.
atom
- a Atom
which identifies the clipboard to use
public static Clipboard getForDisplay(Display display, Atom atom)
display
- the display for which the clipboard is to be retrieved or createdatom
- a Atom
which identifies the clipboard to use
public Display getDisplay()
Display
associated with clipboard.
Display
associated with clipboardpublic SelectionData getContents(Atom atom)
SelectionData
atom
- an Atom
representing the form into which the
clipboard owner should convert the selection
SelectionData
object or NULL
if retrieving the given target failed
TODO: write the JNIpublic boolean isTextAvailable()
public boolean isImageAvailable()
public void setText(java.lang.String text)
public java.lang.String getText()
public void setImage(Pixbuf pixbuf)
public Pixbuf getImage()
public void setCanStore(TargetEntry[] targets)
public void store()
protected static final Handle gtk_clipboard_get(Handle selection)
protected static final Handle gtk_clipboard_get_display(Handle clipboard)
protected static final Handle gtk_clipboard_get_owner(Handle clipboard)
protected static final void gtk_clipboard_clear(Handle clipboard)
protected static final void gtk_clipboard_set_text(Handle clipboard, java.lang.String text, int len)
protected static final void gtk_clipboard_set_image(Handle clipboard, Handle pixbuf)
protected static final java.lang.String gtk_clipboard_wait_for_text(Handle clipboard)
protected static final Handle gtk_clipboard_wait_for_image(Handle clipboard)
protected static final boolean gtk_clipboard_wait_is_text_available(Handle clipboard)
protected static final boolean gtk_clipboard_wait_is_image_available(Handle clipboard)
protected static final boolean gtk_clipboard_wait_is_target_available(Handle clipboard, Handle target)
protected static final void gtk_clipboard_set_can_store(Handle clipboard, Handle[] targets)
protected static final void gtk_clipboard_store(Handle clipboard)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |