moveRow

fun moveRow(fromIndex: Int, toIndex: Int, position: RowsDnDSupport.RefinedDropSupport.Position)(source)

Moves the node at row fromIndex near the node at row toIndex as specified by position.

If fromIndex refers to a Template, then the Template can either be moved Position.ABOVE another Template, or Position.BELOW the very last Scheme of the TemplateList.

If fromIndex refers to a non-Template, then the Scheme can either be moved Position.INTO a Template to append it to that Template, or Position.ABOVE or Position.BELOW another non-Template.

Throws

IllegalArgumentException

if canMoveRow returns false for the given arguments