开发者

Tree Drag and Drop Functionality

开发者 https://www.devze.com 2022-12-13 08:19 出处:网络
label1 *label2 |*label3 ___label4 ___label5 I want a tree in this structure, having line between the nodes, also, instead of Open and Close Folders, I have added my own graphic there with la
  • label1 | |*label2 |*label3 |___label4 |___label5

I want a tree in this structure, having line between the nodes, also, instead of Open and Close Folders, I have added my own graphic there with label. I did by extending TreeItemRenderer Class. Now, I if iam dragging and dropping a child node ex:label5, and try i drop it above label1 here, it is getting dropped there. i.e.,it is becoming like

label5 ----------> This should not happen.Ch开发者_StackOverflow中文版ild should be restricted from being added label1 above parent. | |_label2 |_*label3 |___label4

I need to restrict the same. Kindly help me regarding the same.


You can implement custom dragging and dropping and apply any logic to this.

See here.

0

精彩评论

暂无评论...
验证码 换一张
取 消