1065 } |
1065 } |
1066 return true; |
1066 return true; |
1067 } |
1067 } |
1068 |
1068 |
1069 /** |
1069 /** |
1070 * Notifies listeners of a change in path. changePaths should contain |
1070 * Notifies listeners of a change in path. changePaths should contain |
1071 * instances of PathPlaceHolder. |
1071 * instances of PathPlaceHolder. |
1072 */ |
1072 * |
1073 protected void notifyPathChange(Vector<PathPlaceHolder> changedPaths, |
1073 * @deprecated As of JDK version 1.7 |
|
1074 */ |
|
1075 @Deprecated |
|
1076 protected void notifyPathChange(Vector changedPaths, |
1074 TreePath oldLeadSelection) { |
1077 TreePath oldLeadSelection) { |
1075 int cPathCount = changedPaths.size(); |
1078 int cPathCount = changedPaths.size(); |
1076 boolean[] newness = new boolean[cPathCount]; |
1079 boolean[] newness = new boolean[cPathCount]; |
1077 TreePath[] paths = new TreePath[cPathCount]; |
1080 TreePath[] paths = new TreePath[cPathCount]; |
1078 PathPlaceHolder placeholder; |
1081 PathPlaceHolder placeholder; |
1079 |
1082 |
1080 for(int counter = 0; counter < cPathCount; counter++) { |
1083 for(int counter = 0; counter < cPathCount; counter++) { |
1081 placeholder = changedPaths.elementAt(counter); |
1084 placeholder = (PathPlaceHolder) changedPaths.elementAt(counter); |
1082 newness[counter] = placeholder.isNew; |
1085 newness[counter] = placeholder.isNew; |
1083 paths[counter] = placeholder.path; |
1086 paths[counter] = placeholder.path; |
1084 } |
1087 } |
1085 |
1088 |
1086 TreeSelectionEvent event = new TreeSelectionEvent |
1089 TreeSelectionEvent event = new TreeSelectionEvent |