T
- clipboard item typepublic interface ContentClipboard<T>
Modifier and Type | Method and Description |
---|---|
boolean |
canCopy(List<T> source)
Check whether given objects can be copied into the clipboard.
|
default boolean |
canPasteInto() |
boolean |
canPasteInto(T destination)
Check whether objects in the clipboard can be pasted under given object.
|
void |
copy(List<T> source)
Save the information about provided objects to be saved to the clipboard.
|
default void |
cut(List<T> source)
Save the information about provided objects to be saved to the clipboard.
|
default Stream<T> |
getContents()
Allows to inspect the current contents of the clipboard
|
default boolean |
isEmpty()
Verifies whether there is nothing stored in the clipboard
at the moment.
|
List<T> |
paste(T destination)
Paste objects into the clipboard under the provided object.
|
default List<T> |
pasteToRoot() |
default void cut(List<T> source)
default boolean isEmpty()
void copy(List<T> source)
List<T> paste(T destination)
boolean canCopy(List<T> source)
boolean canPasteInto(T destination)
default boolean canPasteInto()
Copyright © 2020 Magnolia International Ltd.. All rights reserved.