Baseclass for complex ui-controllers handling data in tables, trees or other structures

Type Parameters

  • T

Hierarchy (view full)

Constructors

Properties

selection: T[] = []

Stores references to selected objects. Override with a reference in outer scope, if selection should also operate outside of table

Methods

  • Clone objects and return an array with references to the clones Standard behaviour: use Object.create to clone the objects

    Parameters

    • _objects: T[]

    Returns Promise<T[]>

  • Refer items to the clipboard for copy & paste

    Parameters

    • _focus: T

      The item has the focus and that will be copied if the selection is empty, otherwise the current selection is referred

    • _operation: ClipOperation

    Returns T[]

  • Refer objects to the clipboard for copy & paste and delete them from this controller

    Parameters

    • _focus: T

      The item that has the focus and that will be cut if the selection is empty, otherwise the whole selection gets referred and deleted

    • _operation: ClipOperation

    Returns Promise<T[]>

  • Remove the objects to be deleted, e.g. the current selection, from the data structure the table refers to and return a list of those objects in order for the according TableItems to be deleted also

    Parameters

    • _expendables: T[]

      The expendable objects

    Returns Promise<T[]>

  • Refer objects to the clipboard for drag & drop

    Parameters

    • _focus: T

      The item that has the focus and that will be dragged if the selection is empty, otherwise the current selection is referred

    Returns void

  • Retrieve objects from the clipboard, process and return them to add to the tree. Standard behaviour: if {@link: dragOver} yields "copy", return an array of clones of the objects in, otherwise the content of the dragDrop-clipboard.

    Parameters

    • _event: DragEvent

    Returns Promise<T[]>

  • Retrieve objects from the clipboard, process and return them to add to the table
    Standard behaviour: if the copyPaste clipboard was filled using copy, return an array of clones, otherwise the content of the clipboard

    Returns Promise<T[]>