Package org.luwrain.controls
Class ListUtils.DefaultClipboardSaver<E>
java.lang.Object
org.luwrain.controls.ListUtils.DefaultClipboardSaver<E>
- All Implemented Interfaces:
ListArea.ClipboardSaver<E>
- Direct Known Subclasses:
ListUtils.FunctionalClipboardSaver
- Enclosing class:
ListUtils
public static class ListUtils.DefaultClipboardSaver<E>
extends Object
implements ListArea.ClipboardSaver<E>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ObjectgetClipboardObj(ListArea.Appearance<E> appearance, E obj) protected StringgetClipboardString(ListArea.Appearance<E> appearance, E obj) booleansaveToClipboard(ListArea<E> listArea, ListArea.Model<E> model, ListArea.Appearance<E> appearance, int fromIndex, int toIndex, Clipboard clipboard) Saves the items fromfromIndex(inclusive) totoIndex(exclusive) to the given clipboard.
-
Constructor Details
-
DefaultClipboardSaver
public DefaultClipboardSaver()
-
-
Method Details
-
saveToClipboard
public boolean saveToClipboard(ListArea<E> listArea, ListArea.Model<E> model, ListArea.Appearance<E> appearance, int fromIndex, int toIndex, Clipboard clipboard) Description copied from interface:ListArea.ClipboardSaverSaves the items fromfromIndex(inclusive) totoIndex(exclusive) to the given clipboard.- Specified by:
saveToClipboardin interfaceListArea.ClipboardSaver<E>- Parameters:
listArea- the list area requesting the savemodel- the model providing the items (may differ from the area's model in subclasses)appearance- the appearance used for text conversionfromIndex- the starting index (inclusive)toIndex- the ending index (exclusive)clipboard- the clipboard to write to- Returns:
trueif the save succeeded,falseotherwise
-
getClipboardString
-
getClipboardObj
-