protected void exportDone(JComponent source, Transferable data, int action) { if (timelineDrag != null) { timelineDrag.exportDone(JSimpleDaysTimeline.this, data); } super.exportDone(source, data, action); }
/** * move selected paths when export of drag is done * @param source the component that was the source of the data * @param data the data that was transferred or possibly null if the action is NONE. * @param action the actual action that was performed */ @Override protected void exportDone(JComponent source, Transferable data, int action) { if (source instanceof JXTreeTable) { JXTreeTable treeTable = (JXTreeTable) source; ContextTreeModel model = (ContextTreeModel) treeTable.getTreeTableModel(); TreePath currentPath = treeTable.getPathForRow(treeTable.getSelectedRow()); if (currentPath != null) { addNodes(currentPath, model, data); } else { insertNodes(treeTable, model, data); } } super.exportDone(source, data, action); }
super.exportDone(source, data, action);