Class Clipboard

java.lang.Object
mgui.interfaces.Clipboard

public class Clipboard
extends java.lang.Object
Acts as a clipboard for the current InterfaceSession.
Author:
lpzatr
  • Nested Class Summary

    Nested Classes
    Modifier and Type Class Description
    static class  Clipboard.Item  
  • Field Summary

    Fields
    Modifier and Type Field Description
    protected Clipboard.Item current  
  • Constructor Summary

    Constructors
    Constructor Description
    Clipboard()  
  • Method Summary

    Modifier and Type Method Description
    void clear()
    Clears the current content
    Clipboard.Item getContent()
    Returns the current content, or null is this clipboard is empty.
    void setContent​(Clipboard.Item content)
    Sets the current content object, overwritten any existing one.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • Clipboard

      public Clipboard()
  • Method Details

    • setContent

      public void setContent​(Clipboard.Item content)
      Sets the current content object, overwritten any existing one.
      Parameters:
      obj -
    • getContent

      public Clipboard.Item getContent()
      Returns the current content, or null is this clipboard is empty.
      Returns:
    • clear

      public void clear()
      Clears the current content