Package mgui.interfaces
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 contentClipboard.Item
getContent()
Returns the current content, ornull
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
-
current
-
-
Constructor Details
-
Clipboard
public Clipboard()
-
-
Method Details
-
setContent
Sets the current content object, overwritten any existing one.- Parameters:
obj
-
-
getContent
Returns the current content, ornull
is this clipboard is empty.- Returns:
-
clear
public void clear()Clears the current content
-