MCPcopy
hub / github.com/g3n/engine / updateItems

Method updateItems

gui/tree.go:449–457  ·  view source on GitHub ↗

updateItems updates this node items, removing or inserting them into the tree scroller

()

Source from the content-addressed store, hash-verified

447
448// updateItems updates this node items, removing or inserting them into the tree scroller
449func (n *TreeNode) updateItems() {
450
451 pos := n.tree.ItemPosition(n)
452 if pos < 0 {
453 return
454 }
455 n.removeItems()
456 n.insertItems(pos + 1)
457}

Callers 6

SetExpandedMethod · 0.95
InsertAtMethod · 0.95
InsertNodeAtMethod · 0.95
RemoveMethod · 0.95
onMouseMethod · 0.95
onKeyMethod · 0.80

Calls 3

removeItemsMethod · 0.95
insertItemsMethod · 0.95
ItemPositionMethod · 0.45

Tested by

no test coverage detected