|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gnu.glib.Struct
org.gnu.glib.GObject
org.gnu.gtk.Clipboard
org.gnome.gtk.Clipboard
.
You should be aware that there is a considerably different API
in the new library: the architecture is completely different
and most notably internals are no longer exposed to public view.
public class 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
Method Summary | |
---|---|
void |
clear()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
static Clipboard |
get(Atom atom)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
SelectionData |
getContents(Atom atom)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
Display |
getDisplay()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
static Clipboard |
getForDisplay(Display display,
Atom atom)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
Pixbuf |
getImage()
Deprecated. |
java.lang.String |
getText()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
boolean |
isImageAvailable()
Deprecated. |
boolean |
isTextAvailable()
Deprecated. |
void |
setCanStore(TargetEntry[] targets)
Deprecated. |
void |
setImage(Pixbuf pixbuf)
Deprecated. |
void |
setText(java.lang.String text)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
void |
store()
Deprecated. |
Methods inherited from class org.gnu.glib.GObject |
---|
addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addListener, collect, freezeNotify, getBooleanProperty, getData, getDoubleProperty, getEventListenerClass, getEventType, getFloatProperty, getGObjectFromHandle, getIntProperty, getJavaObjectProperty, getLongProperty, getProperty, getStringProperty, hasProperty, notify, removeEventHandler, removeListener, setBooleanProperty, setData, setDoubleProperty, setFloatProperty, setIntProperty, setJavaObjectProperty, setLongProperty, setProperty, setStringProperty, thawNotify |
Methods inherited from class org.gnu.glib.Struct |
---|
equals, getHandle, getNullHandle, hashCode |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |