org.gnu.gtk

Class SelectionData


public class SelectionData
extends Boxed

Data used in Drag and drop operations

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)
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.
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
targetsIncludText()
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
targetsIncludeImage(boolean writable)
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.

Constructor Details

SelectionData

public SelectionData(Handle handle)

Method Details

getData

public byte[] getData()

getDouble

public double getDouble()

getFormat

public int getFormat()

getInt

public int getInt()

getLength

public int getLength()

getLong

public long getLong()

getPixbuf

public Pixbuf getPixbuf()

getSelection

public Atom getSelection()

getSelectionData

public static SelectionData getSelectionData(Handle handle)

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.

getTarget

public Atom getTarget()

getTargets

public Atom[] getTargets()

getText

public String getText()

getType

public Atom getType()

getUris

public String[] getUris()

setData

public void setData(byte[] data,
                    String type)

setDouble

public void setDouble(double data)

setInt

public void setInt(int data)

setLong

public void setLong(long data)

setPixbuf

public boolean setPixbuf(Pixbuf pixbuf)

setTarget

public void setTarget(Atom target)

setText

public boolean setText(String text)

setUris

public boolean setUris(String[] uris)

targetsIncludText

public boolean targetsIncludText()

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.

targetsIncludeImage

public boolean targetsIncludeImage(boolean writable)

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.

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.