DnDNode.java
上传用户:hltofo
上传日期:2021-08-24
资源大小:21k
文件大小:1k
- package net.antonioshome.swing.treewrapper.example;
- import javax.swing.tree.TreeNode;
- public class DnDNode {
- private TreeNode draggedNode;
- private TreeNode dropNode;
- private boolean dropAllowed;
- public TreeNode getDraggedNode() {
- return draggedNode;
- }
- public void setDraggedNode(TreeNode draggedNode) {
- this.draggedNode = draggedNode;
- }
- public TreeNode getDropNode() {
- return dropNode;
- }
- public void setDropNode(TreeNode dropNode) {
- this.dropNode = dropNode;
- }
- public boolean isDropAllowed() {
- return dropAllowed;
- }
- public void setDropAllowed(boolean dropAllowed) {
- this.dropAllowed = dropAllowed;
- }
- }