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 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.ClipboardSaver
      Saves the items from fromIndex (inclusive) to toIndex (exclusive) to the given clipboard.
      Specified by:
      saveToClipboard in interface ListArea.ClipboardSaver<E>
      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
    • getClipboardString

      protected String getClipboardString(ListArea.Appearance<E> appearance, E obj)
    • getClipboardObj

      protected Object getClipboardObj(ListArea.Appearance<E> appearance, E obj)