org.gnu.gtk
public class SelectionData extends Boxed
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
{@link org.gnu.gdk.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.
|
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.
Returns: TRUE if this SelectionData holds a list of targets, and a suitable target for text is included, otherwise FALSE.