Package org.luwrain.controls
Interface ListArea.ClipboardSaver<E>
- Type Parameters:
E- the type of items in the list
- All Known Implementing Classes:
ListUtils.DefaultClipboardSaver,ListUtils.FunctionalClipboardSaver
public static interface ListArea.ClipboardSaver<E>
Responsible for saving a range of items to the clipboard. This allows
custom formatting of the clipboard content.
-
Method Summary
Modifier and TypeMethodDescriptionbooleansaveToClipboard(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.
-
Method Details
-
saveToClipboard
boolean saveToClipboard(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.- 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
-