Interface ListArea.ClipboardSaver<E>

Type Parameters:
E - the type of items in the list
All Known Implementing Classes:
ListUtils.DefaultClipboardSaver, ListUtils.FunctionalClipboardSaver
Enclosing class:
ListArea<E>

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 Type
    Method
    Description
    boolean
    saveToClipboard(ListArea<E> listArea, ListArea.Model<E> model, ListArea.Appearance<E> appearance, int fromIndex, int toIndex, Clipboard clipboard)
    Saves the items from fromIndex (inclusive) to toIndex (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 from fromIndex (inclusive) to toIndex (exclusive) to the given clipboard.
      Parameters:
      listArea - the list area requesting the save
      model - the model providing the items (may differ from the area's model in subclasses)
      appearance - the appearance used for text conversion
      fromIndex - the starting index (inclusive)
      toIndex - the ending index (exclusive)
      clipboard - the clipboard to write to
      Returns:
      true if the save succeeded, false otherwise