java.lang.Object
com.levigo.jadice.web.client.util.clipboard.Clipboard

public class Clipboard extends Object
An internal clipboard used by the TextSelectionTool and the TextSelectionTouchTool to save the selected text and give other classes (especially commands) access to it.
  • Method Details

    • get

      public static Clipboard get()
      Singleton getter
      Returns:
      the singleton
    • onCopy

      public void onCopy(com.google.gwt.core.client.JavaScriptObject clipboardData)
      Standard implementation for copying elements.
      Parameters:
      clipboardData - the data attached to the event from the listener set in init(JavaScriptObject)
    • onCopyIE

      public void onCopyIE(com.google.gwt.core.client.JavaScriptObject clipboardData)
      Internet Explorer 11 implementation for copying elements.
      Parameters:
      clipboardData - the data attached to the event from the listener set in init(JavaScriptObject)
    • clear

      public void clear()
    • add

      public void add(String value)
    • add

      public void add(String mimetype, String value)
    • get

      public String get(String mimetype)