libgdx API

com.badlogic.gdx.scenes.scene2d.ui.utils
Class Clipboard

java.lang.Object
  extended by com.badlogic.gdx.scenes.scene2d.ui.utils.Clipboard
Direct Known Subclasses:
AndroidClipboard, DesktopClipboard

public abstract class Clipboard
extends java.lang.Object

A very simple clipboard interface for text content.

Author:
mzechner

Constructor Summary
Clipboard()
           
 
Method Summary
abstract  java.lang.String getContents()
          gets the current content of the clipboard if it contains text
static Clipboard getDefaultClipboard()
           
abstract  void setContents(java.lang.String content)
          Sets the content of the system clipboard.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Clipboard

public Clipboard()
Method Detail

getContents

public abstract java.lang.String getContents()
gets the current content of the clipboard if it contains text

Returns:
the clipboard content or null

setContents

public abstract void setContents(java.lang.String content)
Sets the content of the system clipboard.

Parameters:
content - the content

getDefaultClipboard

public static Clipboard getDefaultClipboard()

libgdx API

Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)