1. Field of the Invention
The present invention generally relates to a graphical user interface for a computer system, and particularly to a directory tree interface and a method and system for dynamically presenting a directory tree.
2. Description of Related Art
A graphical user interface (GUI) is commonly provided for interactions between a user and a computer. The GUI presents information about hardware devices and software applications of the computer to the user. A common GUI is a directory tree structure. A directory tree allows a programmer or the user to organize the software applications, which have a related subject matter or a common theme. By representing the software applications or the hardware devices as nodes or members in the directory tree, a hierarchical configuration can be used to show logical groupings and relationships between the logical groupings of the software applications or the hardware devices.
While the directory tree structure is useful and quite prevalent within the software applications (i.e., operating systems) of today computers, when the directory tree structure is large, it can become unwieldy for the user to manipulate and understand the directory tree structure. For example, in the process of organizing the directory tree, one of the common operations performed by the user is to drag and drop a node representing a software application from a source address in the directory tree, into a destination address. If the directories and/or subdirectories become large, the directory tree becomes too long. Therefore, the process of organizing a large directory tree is time consuming.
Currently, most directory trees allow a given subdirectory to be hidden from view. This operation tends to be an “all or nothing” (i.e. as in either to display it all or not to display any) choice of views. Where the destination address is in a large subdirectory. The majority of items within the destination subdirectory may be irrelevant to a current task. This takes up valuable display space and necessitates additional manipulation by the user to scroll through irrelevant subdirectory.
Therefore, what is needed is a system and method for dynamically presenting the directory tree, which can drag one node from a source address to a destination address for obtaining a rearranged directory tree conveniently.
A system for dynamically presenting a directory tree is provided. The system comprising a database configured for storing a default directory tree with a plurality of node, contents of each node, and logical regulations among the nodes; a content reading unit configured for reading the contents of each node, and for putting the contents into each node of the default directory tree; a node recording unit configured for dragging a node from a source address to a destination address; a determining unit configured for determining whether logical relations between the dragged node and the other nodes accord with the logical regulations; and wherein the content reading unit further configured for generating a rearranged directory tree if the logical relation between the dragged node and the other nodes accord with the logical regulations, and for putting the contents into corresponding nodes of the rearranged directory tree.
Another embodiment of a method for dynamically presenting a directory tree is provided. The method comprises the steps of: providing a database for storing a default directory tree with a plurality of node, contents of each node, and logical regulations among the nodes; reading the contents of each node, and putting the contents into each node of the default directory tree; dragging a node from a source address to a destination address; determining whether logical relations between the dragged node and the other nodes accord with the logical regulations; generating a rearranged directory tree if the logical relation between the dragged node and the other nodes accord with the logical regulations, and for putting the contents into corresponding nodes of the rearranged directory tree.
Other objects, advantages and novel features of the embodiments will be drawn from the following detailed description together with the attached drawings.
The content reading unit 10 is configured for reading the contents of each node, and for putting the contents into each node of the default directory tree in the database 3.
The node recording unit 11 is configured for dragging a node from a source address to a destination address in the default directory 30. For example, in the default directory tree 30, the node recording unit 11 drags a node named “2006” to a destination node named “Motorola”.
The determining unit 12 is configured for determining whether the logical relations between the dragged node and other nodes in the default directory tree 30 accord with the logical regulations. That is, the determining unit 12 determines whether the logical relations between the dragged node named “2006” and the other nodes (i.e., “Motorola”, “IBM”, etc) accord with the logical regulations.
The content reading unit 10 is further configured for generating a rearranged directory tree if the logical relations between the dragged node and other nodes in the default directory tree 30 accord with the logical regulations in the database 3, and putting contents into each node of the rearranged directory tree 32 if the logical relations between the dragged node and other nodes in the default directory tree 30 accord with the logical regulations in the database 3. In
It should be emphasized that the above-described embodiments of the present invention, particularly, any “preferred” embodiments, are merely possible examples of implementations, merely set forth for a clear understanding of the principles of the invention. Many variations and modifications may be made to the above-described embodiment(s) of the invention without departing substantially from the spirit and principles of the invention. All such modifications and variations are intended to be included herein within the scope of this disclosure and the present invention and protected by the following claims.
Number | Date | Country | Kind |
---|---|---|---|
200710200100.9 | Jan 2007 | CN | national |