org.gnu.gtk
Class SelectionData

java.lang.Object
  extended by org.gnu.glib.Struct
      extended by org.gnu.glib.Boxed
          extended by org.gnu.gtk.SelectionData

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.

public class SelectionData
extends org.gnu.glib.Boxed

Data used in Drag and drop operations


Constructor Summary
SelectionData(org.gnu.glib.Handle handle)
          Deprecated.  
 
Method Summary
 byte[] getData()
          Deprecated.  
 double getDouble()
          Deprecated.  
 int getFormat()
          Deprecated.  
 int getInt()
          Deprecated.  
 int getLength()
          Deprecated.  
 long getLong()
          Deprecated.  
 Pixbuf getPixbuf()
          Deprecated.  
 Atom getSelection()
          Deprecated.  
static SelectionData getSelectionData(org.gnu.glib.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()
          Deprecated.  
 Atom[] getTargets()
          Deprecated.  
 java.lang.String getText()
          Deprecated.  
 Atom getType()
          Deprecated.  
 java.lang.String[] getUris()
          Deprecated.  
 void setData(byte[] data, java.lang.String type)
          Deprecated.  
 void setDouble(double data)
          Deprecated.  
 void setInt(int data)
          Deprecated.  
 void setLong(long data)
          Deprecated.  
 boolean setPixbuf(Pixbuf pixbuf)
          Deprecated.  
 void setTarget(Atom target)
          Deprecated.  
 boolean setText(java.lang.String text)
          Deprecated.  
 boolean setUris(java.lang.String[] uris)
          Deprecated.  
 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.
 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.
 
Methods inherited from class org.gnu.glib.Boxed
equals, getBoxedFromHandle, hashCode
 
Methods inherited from class org.gnu.glib.Struct
getHandle, getNullHandle
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectionData

public SelectionData(org.gnu.glib.Handle handle)
Deprecated. 
Method Detail

getSelectionData

public static SelectionData getSelectionData(org.gnu.glib.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.


setTarget

public void setTarget(Atom target)
Deprecated. 

getSelection

public Atom getSelection()
Deprecated. 

getTarget

public Atom getTarget()
Deprecated. 

getType

public Atom getType()
Deprecated. 

getFormat

public int getFormat()
Deprecated. 

getLength

public int getLength()
Deprecated. 

getData

public byte[] getData()
Deprecated. 

setData

public void setData(byte[] data,
                    java.lang.String type)
Deprecated. 

getText

public java.lang.String getText()
Deprecated. 

setText

public boolean setText(java.lang.String text)
Deprecated. 

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.

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.

getTargets

public Atom[] getTargets()
Deprecated. 

setPixbuf

public boolean setPixbuf(Pixbuf pixbuf)
Deprecated. 

getPixbuf

public Pixbuf getPixbuf()
Deprecated. 

setUris

public boolean setUris(java.lang.String[] uris)
Deprecated. 

getUris

public java.lang.String[] getUris()
Deprecated. 

getInt

public int getInt()
Deprecated. 

getDouble

public double getDouble()
Deprecated. 

getLong

public long getLong()
Deprecated. 

setInt

public void setInt(int data)
Deprecated. 

setLong

public void setLong(long data)
Deprecated. 

setDouble

public void setDouble(double data)
Deprecated.