Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
GObject
org.gnu.gtk.Clipboard
public class Clipboard
extends GObject
Method Summary | |
void |
|
static Clipboard | |
SelectionData |
|
Display |
|
static Clipboard |
|
Pixbuf |
|
String |
|
boolean | |
boolean | |
void |
|
void | |
void |
|
void |
|
public void clear()
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.
Clear the contents of the clipboard.
public static Clipboard get(Atom atom)
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.
Returns the clipboard object for the given selection. SeegetForDisplay(Display,Atom)
for complete details.
- Parameters:
atom
- aAtom
which identifies the clipboard to use
- Returns:
- the appropriate clipboard object. If no clipboard already exists, a new one will be created. Once a clipboard object has been created, it is persistent for all time and cannot be freed.
public SelectionData getContents(Atom atom)
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.
Requests the contents of the clipboard asSelectionData
- Parameters:
atom
- anAtom
representing the form into which the clipboard owner should convert the selection
- Returns:
- a newly-allocated
SelectionData
object orNULL
if retrieving the given target failed TODO: write the JNI
public Display getDisplay()
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.
Gets theDisplay
associated with clipboard.
- Returns:
- the
Display
associated with clipboard
public static Clipboard getForDisplay(Display display, Atom atom)
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:
display
- the display for which the clipboard is to be retrieved or createdatom
- aAtom
which identifies the clipboard to use
- Returns:
- he appropriate clipboard object. If no clipboard already exists, a new one will be created. Once a clipboard object has been created, it is persistent for all time and cannot be freed.
public String getText()
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.
Requests the contents of the clipboard as text.
public boolean isImageAvailable()
public boolean isTextAvailable()
public void setText(String text)
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.
Set the contents of the clipboard.
public void store()