Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
Boxed
org.gnu.gtk.SelectionData
public class SelectionData
extends Boxed
Constructor Summary | |
|
Method Summary | |
byte[] |
|
double | |
int | |
int |
|
int | |
long |
|
Pixbuf | |
Atom | |
static SelectionData |
|
Atom | |
Atom[] | |
String |
|
Atom |
|
String[] |
|
void |
|
void |
|
void |
|
void |
|
boolean | |
void | |
boolean |
|
boolean |
|
boolean |
|
boolean |
|
public byte[] getData()
public double getDouble()
public int getFormat()
public int getInt()
public int getLength()
public long getLong()
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.
public String getText()
public String[] getUris()
public void setData(byte[] data, String type)
public void setDouble(double data)
public void setInt(int data)
public void setLong(long data)
public boolean setText(String text)
public boolean setUris(String[] uris)
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.
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 aPixbuf
.
- 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.