congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Clipboard
Code IndexAdd Tabnine to your IDE (free)

How to use
Clipboard
in
com.badlogic.gdx.utils

Best Java code snippets using com.badlogic.gdx.utils.Clipboard (Showing top 14 results out of 315)

origin: libgdx/libgdx

/** Copies the contents of this TextField to the {@link Clipboard} implementation set on this TextField. */
public void copy () {
  if (hasSelection && !passwordMode) {
    clipboard.setContents(text.substring(Math.min(cursor, selectionStart), Math.max(cursor, selectionStart)));
  }
}
origin: libgdx/libgdx

switch (keycode) {
case Keys.V:
  paste(clipboard.getContents(), true);
  repeat = true;
  break;
switch (keycode) {
case Keys.INSERT:
  paste(clipboard.getContents(), true);
  break;
case Keys.FORWARD_DEL:
origin: libgdx/libgdx

switch (keycode) {
case Keys.V:
  paste(clipboard.getContents(), true);
  repeat = true;
  break;
switch (keycode) {
case Keys.INSERT:
  paste(clipboard.getContents(), true);
  break;
case Keys.FORWARD_DEL:
origin: libgdx/libgdx

/** Copies the contents of this TextField to the {@link Clipboard} implementation set on this TextField. */
public void copy () {
  if (hasSelection && !passwordMode) {
    clipboard.setContents(text.substring(Math.min(cursor, selectionStart), Math.max(cursor, selectionStart)));
  }
}
origin: kotcrab/vis-ui

  paste(clipboard.getContents(), true);
  repeat = true;
if (keycode == Keys.INSERT && readOnly == false) paste(clipboard.getContents(), true);
if (keycode == Keys.FORWARD_DEL && readOnly == false) cut(true);
selection:
origin: com.badlogicgames.gdx/gdx

/** Copies the contents of this TextField to the {@link Clipboard} implementation set on this TextField. */
public void copy () {
  if (hasSelection && !passwordMode) {
    clipboard.setContents(text.substring(Math.min(cursor, selectionStart), Math.max(cursor, selectionStart)));
  }
}
origin: langurmonkey/gaiasky

  paste(clipboard.getContents(), true);
  repeat = true;
  paste(clipboard.getContents(), true);
if (keycode == Keys.FORWARD_DEL)
  cut(true);
origin: langurmonkey/gaiasky

/** Copies the contents of this TextField to the {@link Clipboard} implementation set on this TextField. */
public void copy() {
  if (hasSelection && !passwordMode) {
    clipboard.setContents(text.substring(Math.min(cursor, selectionStart), Math.max(cursor, selectionStart)));
  }
}
origin: com.badlogicgames.gdx/gdx

switch (keycode) {
case Keys.V:
  paste(clipboard.getContents(), true);
  repeat = true;
  break;
switch (keycode) {
case Keys.INSERT:
  paste(clipboard.getContents(), true);
  break;
case Keys.FORWARD_DEL:
origin: kotcrab/vis-ui

/** Copies the contents of this TextField to the {@link Clipboard} implementation set on this TextField. */
public void copy () {
  if (hasSelection && !passwordMode) {
    int beginIndex = Math.min(cursor, selectionStart);
    int endIndex = Math.max(cursor, selectionStart);
    clipboard.setContents(text.substring(Math.max(0, beginIndex), Math.min(text.length(), endIndex)));
  }
}
origin: crashinvaders/gdx-texture-packer-gui

  @Override
  public void changed(ChangeEvent event, Actor actor) {
    Gdx.app.getClipboard().setContents(log);
  }
});
origin: crashinvaders/gdx-texture-packer-gui

  @LmlAction("copyToClipboard") void copyToClipboard() {
    Gdx.app.getClipboard().setContents(errorMessage);
  }
}
origin: Var3D/var3dframe

  public void touchUp(InputEvent event, float px, float py,
            int pointer, int but) {
    Clipboard clip = Gdx.app.getClipboard();
    clip.setContents(".setPosition(" + (int) actor.getX() + "," + (int) actor.getY() + ")");
  }
});
origin: kotcrab/vis-ui

  @Override
  public void changed (ChangeEvent event, Actor actor) {
    Gdx.app.getClipboard().setContents((detailsLabel.getText().toString()));
    copyButton.setText(Text.COPIED.get());
  }
});
com.badlogic.gdx.utilsClipboard

Javadoc

A very simple clipboard interface for text content.

Most used methods

  • setContents
    Sets the content of the system clipboard.
  • getContents
    gets the current content of the clipboard if it contains text

Popular in Java

  • Updating database using SQL prepared statement
  • onRequestPermissionsResult (Fragment)
  • getContentResolver (Context)
  • compareTo (BigDecimal)
  • Kernel (java.awt.image)
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now