Abstract
Used by the tree to indicate the drop position while dragging
Stores references to selected objects. Override with a reference in outer scope, if selection should also operate outside of table
Override to enable tree items to be sortable by the user via drag-and-drop. Default is true.
Abstract
addRefer items to the clipboard for copy & paste
The item has the focus and that will be copied if the selection is empty, otherwise the current selection is referred
Abstract
createCreate an HTMLElement for the tree item representing the object. e.g. an HTMLInputElement
Refer objects to the clipboard for copy & paste and delete them from this controller
The item that has the focus and that will be cut if the selection is empty, otherwise the whole selection gets referred and deleted
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
The expendable objects
Return allowed dragDrop-effect
Standard behaviour: check the ctrlKey for "copy" and shiftKey for "link", otherwise return "move"
Refer objects to the clipboard for drag & drop
The item that has the focus and that will be dragged if the selection is empty, otherwise the current selection is referred
Override if some objects should not be draggable
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.
Abstract
getRetrieve a space separated string of attributes to add to the list item representing the object for further styling
Abstract
getAbstract
hasReturn true if the object has children that must be shown when unfolding the tree item
Abstract
setProcess the proposed new value. The id of the html element on which the change occured is passed
Subclass this to create a broker between your data and a Tree to display and manipulate it. The Tree doesn't know how your data is structured and how to handle it, the controller implements the methods needed