org.gnu.gtk
public class SelectionData extends Boxed
Deprecated: This class is part of the java-gnome 2.x family of libraries,
which, due to their inefficiency and complexity, are no longer
being maintained and have been abandoned by the java-gnome
project. This class may in the future have an equivalent in
java-gnome 4.0, try looking for
org.gnome.gtk.SelectionData
.
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.
Constructor Summary | |
---|---|
SelectionData(Handle handle) |
Method Summary | |
---|---|
byte[] | getData() |
double | getDouble() |
int | getFormat() |
int | getInt() |
int | getLength() |
long | getLong() |
Pixbuf | getPixbuf() |
Atom | getSelection() |
static SelectionData | getSelectionData(Handle handle)
Internal static factory method to be used by Java-Gnome only. |
Atom | getTarget() |
Atom[] | getTargets() |
String | getText() |
Atom | getType() |
String[] | getUris() |
void | setData(byte[] data, String type) |
void | setDouble(double data) |
void | setInt(int data) |
void | setLong(long data) |
boolean | setPixbuf(Pixbuf pixbuf) |
void | setTarget(Atom target) |
boolean | setText(String text) |
boolean | setUris(String[] uris) |
boolean | targetsIncludeImage(boolean writable)
Given that this SelectionData object holds a list of targets, determines
if any of the targets in targets can be used to provide a
Pixbuf.
|
boolean | targetsIncludText()
Given that this SelectionData object holds a list of targets, determines
if any of the targets in targets can be used to provide 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.
Internal static factory method to be used by Java-Gnome only.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.
Given that this SelectionData object holds a list of targets, determines if any of the targets in targets can be used to provide a Pixbuf.Parameters: writable Whether to accept only targets for which GTK+ knows how to convert a pixbuf into the format.
Returns: TRUE if this SelectionData holds a list of targets, and a suitable target for images is included, otherwise FALSE.
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.
Given that this SelectionData object holds a list of targets, determines if any of the targets in targets can be used to provide text.Returns: TRUE if this SelectionData holds a list of targets, and a suitable target for text is included, otherwise FALSE.