Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Sorting method and device for elements in directory tree

A sorting method and directory tree technology, applied in the computer field, can solve the problem that the directory tree cannot be sorted by the elements of the directory tree.

Pending Publication Date: 2020-04-07
BEIJING GRIDSUM TECH CO LTD
View PDF6 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Embodiments of the present invention provide a method and device for sorting elements in a directory tree, to at least solve the technical problem in the prior art that the draggable function of the directory tree cannot realize the sorting of elements in the directory tree

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Sorting method and device for elements in directory tree
  • Sorting method and device for elements in directory tree
  • Sorting method and device for elements in directory tree

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0026] According to an embodiment of the present invention, an embodiment of a method for sorting elements in a directory tree is provided. It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions , and, although a logical order is shown in the flowcharts, in some cases the steps shown or described may be performed in an order different from that shown or described herein.

[0027] figure 1 is a flow chart of a method for sorting elements in a directory tree according to an embodiment of the present invention, such as figure 1 As shown, the method includes the following steps:

[0028] Step S102, when the first target element in the directory tree is detected to be dragged, determine the second target element in the directory tree that needs to be sorted with the first target element through collision detection, and trigger a drag event;

[0029] Step S104, by...

Embodiment 2

[0069] According to an embodiment of the present invention, an embodiment of an apparatus for implementing the method for sorting elements in the above directory tree is also provided, Figure 5 is a schematic structural diagram of a device for sorting elements in a directory tree according to an embodiment of the present invention, as shown in Figure 5 As shown, the sorting device for elements in the above-mentioned directory tree includes: a processing module 50, an acquisition module 52 and a sorting module 54, wherein:

[0070] The processing module 50 is configured to determine the second target element in the directory tree that needs to be sorted with the first target element through collision detection when dragging the first target element in the directory tree is detected, and trigger dragging Event; acquisition module 52, configured to acquire the first coordinate data of the above-mentioned first target element and the second coordinate data of the above-mentioned...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method and a device for sorting elements in a directory tree. The method comprises the steps that when it is detected that a first target element in a directory tree is dragged, a second target element, needing to be sorted with the first target element, in the directory tree is determined through collision detection, and a dragging event is triggered; triggering the dragging event to obtain first coordinate data of the first target element and second coordinate data of the second target element in the dragging process; and determining whether to sort the first targetelement and the second target element based on the first coordinate data and the second coordinate data. The technical problem that elements in the directory tree cannot be sorted through the draggable function of the directory tree in the prior art is solved.

Description

technical field [0001] The invention relates to the technical field of computers, in particular to a method and device for sorting elements in a directory tree. Background technique [0002] The directory tree is mainly used for the classification and hierarchy of file visualization, and plays an irreplaceable role in the visual management of files. The initial visual directory tree is mainly used in operating systems such as windows. Later, with the gradual development of the web, The requirements of the web for directory tree management files are becoming more and more diverse. [0003] The functions that can be realized by the directory tree include simple adding, deleting, modifying and checking, and also include the drag-and-drop function. However, due to the mutual exclusion of classification and sorting, the general directory tree drag-and-drop function can only realize the directory classification of the directory tree, but The sorting of elements in the directory t...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F16/13G06F16/16
CPCY02D10/00
Inventor 陈宽
Owner BEIJING GRIDSUM TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products