org.gnu.gtk
Class SelectionData
Boxed
org.gnu.gtk.SelectionData
public class SelectionData
extends Boxed
Data used in Drag and drop operations
SelectionData
public SelectionData(Handle handle)
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)
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()
Given that this SelectionData object holds a list of targets, determines
if any of the targets in targets can be used to provide text.
- 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)
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
.
writable
- Whether to accept only targets for which GTK+ knows how to
convert a pixbuf into the format.
- TRUE if this SelectionData holds a list of targets, and a
suitable target for images is included, otherwise FALSE.