Recherche Images Maps Play YouTube Actualités Gmail Drive Plus »
Connexion
Les utilisateurs de lecteurs d'écran peuvent cliquer sur ce lien pour activer le mode d'accessibilité. Celui-ci propose les mêmes fonctionnalités principales, mais il est optimisé pour votre lecteur d'écran.

Brevets

  1. Recherche avancée dans les brevets
Numéro de publicationCN102117333 A
Type de publicationDemande
Numéro de demandeCN 201110059496
Date de publication6 juil. 2011
Date de dépôt11 mars 2011
Date de priorité11 mars 2011
Autre référence de publicationCN102117333B
Numéro de publication201110059496.6, CN 102117333 A, CN 102117333A, CN 201110059496, CN-A-102117333, CN102117333 A, CN102117333A, CN201110059496, CN201110059496.6
Inventeurs林金枝, 薄晓军, 郑博文
Déposant北京神舟航天软件技术有限公司
Exporter la citationBiBTeX, EndNote, RefMan
Liens externes:  SIPO, Espacenet
Method for browsing tree-like structural data at multiple views
CN 102117333 A
Résumé
The invention discloses a method for browsing tree-like structural data at multiple views, which comprises the following steps: (1) constructing a main tree of the tree-like structural data by using a tree control and placing a main view corresponding to the main tree into a tress browser; (2) constructing a sub view corresponding a sub tress according to the selected sub tree and placing the subview in the tress browser; (3) switching among the views according to a switch command of a user; and (4) remembering the current browsing state when the tress browser is closed, and restoring the remembered browsing state when the tress browser is reopened. By using the method, the user can be allowed to view the complete tree-like structural data and independently view the cared tree-like branches, and in addition, the user can easily switch among various views and the states of the same data in different views are completely consistent. The user is free from the gradual expansion to find the cared tress nodes or views after opening the structure tress, and the tree browser can be automatically restored to the lastly-closed state, so that the work efficiency of the user is greatly improved.
Revendications(6)  Langue du texte original : Chinois
1. 一种多视图浏览树形结构数据的方法,其特征在于包括步骤:1)使用树控件构造树形结构数据的主树,将对应该主树的主视图放入树浏览器内;2)根据用户选择的子树构造对应该子树的子视图,将该子视图放入树浏览器内;3)根据用户的切换命令在视图之间进行切换。 A multi-view browsing data tree method comprising the steps of: 1) the use of the main tree control tree data structure, the main view should be the main tree will be placed in the tree browser; 2 ) according to user-selected sub-tree structure should subtree to view the applet into the tree browser; 3) the user to switch command to switch between views.
2.如权利要求1所述的多视图浏览树形结构数据的方法,其特征在于: 所述构建子视图步骤2、的详细步骤是:.2. 1)用户选择子树;.2. 2)构造一个包括用户所选的树节点及其下级节点的子树;.2. 3)隐去当前显示的视图,将对应该子树的子视图放入树浏览器内。 2. The multi-view browsing method of claim tree structure data, wherein: the detailed steps of the building sub-view Step 2 is: .2 1) the user to select the sub-tree; .2 2. ) structure includes user-selected tree node and a lower node subtree; .2 3) faded view of the currently displayed will be subtree view into the tree browser.
3.如权利要求1所述的多视图浏览树形结构数据的方法,其特征在于: 所述切换视图步骤幻的详细步骤是:.3. 1)将当前视图中子树的状态同步至主视图的主树上,使主视图中对应树节点及其分支的状态与当前视图中子树的状态一致;.3. 2)构建子视图,加载用户所选的目标树节点及其下级节点数据,如果目标树节点确定的子视图已经存在,则本步骤省略;.3. 3)从主视图的主树上恢复目标视图子树的状态; 3.4)隐藏当前视图并显示目标视图。 3. The multi-view browsing method of claim tree structure data, wherein: said switching step detailed step view is magic: .3 1) the state of the current view of the neutron tree synchronized to the master main tree view, the main view corresponding tree node and its branches in line with the current view of the state of the neutron state of the tree; .3 2) build child views, selected by the user to load the target tree node and a lower node data If the target tree node determines the child view already exists, omit this step; .3 3) Restore from the main tree view, a front view of the target subtree state; 3.4) hides the current view and display the target view.
4.如权利要求1至3之一所述的多视图浏览树形结构数据的方法,其特征在于:当用户的操作命令是向上时,则隐去当前显示的视图,转而显示当前视图中根节点的父节点所确定的子视图;当操作命令是返回主视图时,则隐去当前显示的视图,转而显示主视图。 The 1 to 3, wherein the multi-view claim browse tree structure of the data, characterized in that: when the user's operation command is up, then faded view currently displayed, instead of the current view root the parent node of the determined child views; when the operation command is a return to the main view, then faded view of the current display and instead display the main view.
5.如权利要求1所述的多视图浏览树形结构数据的方法,其特征在于:进一步包括记忆和恢复步骤4):当关闭树浏览器时,记忆当前浏览状态,再次打开树浏览器时,恢复记忆的浏览状态。 When closing the tree browser, memory current browser, open the browser tree again: 5. The multi-view browsing method of claim data in a tree structure, characterized by: further including memory and restore Step 4) and restore the memory of the browser status.
6.如权利要求5所述多视图浏览树形结构数据的方法,其特征在于: 所述的记忆和恢复步骤4)的详细步骤是:.3. 1)用户发出关闭树浏览器命令; 3. 2)记录当前视图的根节点; 3. 3)将当前视图的树状态同步至主视图树上; 3. 4)记录主视图树的状态;.3. 5)关闭树浏览器,至此视图已被记忆,下面是恢复步骤; 3. 6)再次打开树浏览器;.3. 7)加载主视图树,从记录里恢复主视图树的状态;.3. 8)打开子视图,加载记录里的根节点,根据主视图树的状态恢复子视图树的状态。 6. 5 of the multi-view browse tree structure data as claimed in claim, characterized in that: the memory 4) of the detailed procedure and recovery steps are: .3 1) The user sends a command to close the tree browser; 3 2) record the current root node view; 3.3) the current state of the tree view are synchronized to the main view of the tree; 3.4) recording the status of the main view of the tree; .3 5) Close the tree browser, thus view Memory has been following the restoration steps; 3.6) Open the tree browser again; .3 7) loads the main tree view, a front view of the recovery from the record in the state tree; .3 8) Open applet loaded record in the root node, restore the state of a child view tree front view according to the state tree.
Description  Langue du texte original : Chinois

多视图浏览树形结构数据的方法 Browse tree structure data multi-view method

技术领域 Technical Field

[0001] 本发明提供一种高效的树形结构数据的浏览方法,使用本发明来浏览树型结构数据的时候既可以像传统树控件浏览完整树形结构数据,也可以单独浏览树形结构数据的分支,即使树形结构数据节点很多,层次很深,也能够保持浏览的高效性。 [0001] The present invention provides an efficient method of browsing the tree data, using the present invention to browse the tree when the data can either browse the complete tree control as the traditional tree-structured data, you can also browse the tree structure data alone branch, even if a lot of data node tree structure, a deep level, it is possible to maintain the high efficiency of browsing.

背景技术 Background

[0002] 术语解释: [0002] Explanation of terms:

[0003] 树:指计算机中用来表示数据的一种数据结构,有时也特指用来展示树形结构数据的界面控件。 [0003] Tree: refers to the computer of a data structure used to represent data, and sometimes refers specifically to demonstrate the interface controls tree structure data.

[0004] 主树:完整的树形结构数据。 [0004] The main tree: the complete tree structure data.

[0005] 子树:主树上非根树节点及其下级节点代表的树形结构数据。 [0005] The sub-tree: the main tree, a non-root tree node and its subordinate node represents a tree structure data.

[0006] 主视图:展示主树的视图。 [0006] The main view: show the main tree view.

[0007] 子视图:展示子树的视图。 [0007] subviews: Show subtree view.

[0008] 多视图:浏览树形结构数据时,既可以浏览主树,也可以单独浏览子树,即树形结构数据可以有多个视图,主视图用来查看树的全貌,子视图用来详细查看子树分支。 [0008] Multi view: Browse tree structure data, either browse the main tree, you can also browse a separate sub-tree, the tree can have multiple views of data, the main view is used to view the whole picture of the tree, the child view to Detailed view sub-tree branch.

[0009] 目前,树形结构数据都是在一个窗口内使用一个树控件来浏览,用户在一个树控件内浏览整个树形结构数据,例如windows资源管理器左侧的目录夹树。 [0009] Currently, the tree structure data is used within a window a tree control to navigate the user to browse the entire tree structure data in a tree control, such as directory windows explorer folder tree on the left side. 为了便于浏览, 有的软件可以在新窗口中多次打开同一树形结构数据。 For easier navigation, and some software can open the same tree structure data multiple times in a new window.

[0010] 由于现有树形结构数据浏览方法都是使用一个树控件来展示完整树形结构数据, 因此,当树节点较多,特别是层次较深时,在有限的窗口内浏览数据,用户可能需要来回滚动以查看其关心的树节点,其效率很低,浏览体验很差。 [0010] As the existing tree structure data browsing method is to use a tree control to display the full tree structure of the data, so when the tree node more, especially at deeper levels, in a limited window browsing data, the user may need to scroll back and forth to see their interest in tree nodes, its efficiency is very low, the browsing experience is very poor.

发明内容 DISCLOSURE

[0011] 为了解决上述问题,本发明提出了一种使用多视图的方法,该方法让用户既可以查看完整的树形结构数据,又可以单独查看其关心的树形结构分支,用户可以轻易地在各个视图间切换,相同数据在不同视图中的状态完全一致。 [0011] In order to solve the above problems, the present invention provides a method of using a multi-view, which allows users not only to view the full tree structure data, they can see the individual interest of its tree branch, users can easily Switching between the various views, exactly the same data in different views of the state.

[0012] 本发明采用的技术方案如下: [0012] The aspect of the present invention is used as follows:

[0013] 一种多视图浏览树形结构数据的方法,包括步骤: [0013] A multi-view browse tree structure data, comprising the steps of:

[0014] 1)使用树控件构造树形结构数据的主树,将对应该主树的主视图放入树浏览器内; [0014] 1) Use the tree control tree data structure of the main tree, it will be the main tree of the main view into the tree browser;

[0015] 2)根据用户选择的子树构造对应该子树的子视图,将该子视图放入树浏览器内; [0015] 2) according to user-selected sub-tree structure should subtree to view the applet into the tree browser;

[0016] 3)根据用户的切换命令在视图之间进行切换。 [0016] 3) a handover command based on the user switch between views.

[0017] 进一步地: [0017] Further:

[0018] 所述构建子视图步骤2)的详细步骤是: [0018] 2) The detailed steps of the building applet steps are:

[0019] 2.1)用户选择子树; [0019] 2.1) user selects the subtree;

[0020] 2. 2)构造一个包括用户所选的树节点及其下级节点的子树; [0020] 2.2), including sub-tree structure of a node and its subordinate node selected by the user;

3[0021] 2. 3)隐去当前显示的视图,将对应该子树的子视图放入树浏览器内。 3 [0021] 2.3) faded view of the currently displayed will be subtree view into the tree browser.

[0022] 所述切换视图步骤3)的详细步骤是: Detailed steps [0022] The switch views in step 3) are:

[0023] 3. 1)将当前视图中子树的状态同步至主视图的主树上,使主视图中对应树节点及其分支的状态与当前视图中子树的状态一致; [0023] 3.1) the state of the current view of the neutron to the main tree tree synchronization main view, the main view corresponding tree nodes and their branches consistent with the state's current view state neutron tree;

[0024] 3. 2)构建子视图,加载用户所选的目标树节点及其下级节点数据,如果目标树节点确定的子视图已经存在,则本步骤省略; [0024] 3.2) Build applet loading target tree node and a lower node data selected by the user, if the target tree node determines the child view already exists, omit this step;

[0025] 3. 3)从主视图的主树上恢复目标视图子树的状态; [0025] 3.3) Recovery in the main tree view, a front view of the target subtree state;

[0026] 3.4)隐藏当前视图并显示目标视图。 [0026] 3.4) hides the current view and display the target view.

[0027] 当用户的操作命令是向上时,则隐去当前显示的视图,转而显示当前视图中根节点的父节点所确定的子视图; [0027] When the user's operation command is up, then faded view currently displayed, instead of the current view in the root of the parent node to determine the child views;

[0028] 当操作命令是返回主视图时,则隐去当前显示的视图,转而显示主视图。 [0028] When the operation command is a return to the main view, then faded view of the current display changes to show the main view.

[0029] 进一步包括记忆和恢复步骤4):当关闭树浏览器时,记忆当前浏览状态,再次打开树浏览器时,恢复记忆的浏览状态。 [0029] further comprises a memory and restore Step 4): When closing the tree browser, view the status of the current memory, when you open the browser again the tree to restore view the status of memory.

[0030] 所述的记忆和恢复步骤4)的详细步骤是: [0030] The memory and restore Step 4) detailed steps are:

[0031] 3. 1)用户发出关闭树浏览器命令; [0031] 3.1) close the tree browser user issues a command;

[0032] 3. 2)记录当前视图的根节点; [0032] 3.2) recorded the root of the current view;

[0033] 3. 3)将当前视图的树状态同步至主视图树上; [0033] 3.3) the current state of the tree view are synchronized to the main view of the tree;

[0034] 3. 4)记录主视图树的状态; [0034] 3.4) recording the main view of the state of the tree;

[0035] 3. 5)关闭树浏览器,至此视图已被记忆,下面是恢复步骤; [0035] 3.5) Close tree browser, bringing the view has been memory, the following step is to restore;

[0036] 3.6)再次打开树浏览器; [0036] 3.6) to open the browser again tree;

[0037] 3. 7)加载主视图树,从记录里恢复主视图树的状态; [0037] 3.7) to load the main view of the tree, to recover from the record in the main view of the state of the tree;

[0038] 3. 8)打开子视图,加载记录里的根节点,根据主视图树的状态恢复子视图树的状态。 [0038] 3.8) to open the applet loaded record in the root node, restore the state of a child view tree according to the state of a front view of the tree.

[0039] 本发明具有以下优点: [0039] The present invention has the following advantages:

[0040] 如果树型结构数据比较大,用户又往往只关心一个或某几个小分支,采用此种多视图方式浏览,用户既能够单独浏览某个树分支,又能够随时查看完整的树,这样就不会由于树太大而分散用户的注意力,同时,在视图间导航时,又能够保持树状态的一致性,过渡平滑,既增加浏览效率,又提高浏览体验。 [0040] If the tree data structure is relatively large, the user is often only interested in one or a few small branches, the use of such multi-view mode browser, users can either browse a tree branch alone, but also to keep track of the complete tree, Since the tree is too large so as not to distract them while, at the same time, when navigating between views, but also to maintain a consistent state tree, the transition smooth, both to increase browsing efficiency, but also improves the browsing experience. 用户打开结构树后无需逐级展开找到其关注的树节点或视图,树浏览器会自动恢复至上次关闭时的状态,极大提高了用户的工作效率。 Users do not need to open the tree to find the tree node or drilldown view of its concerns, the tree browser will automatically return to the state last closed, which greatly improves the efficiency of the user.

附图说明 Brief Description

[0041] 图1为本发明展现的多视图之间的切换示意图。 [0041] FIG. 1 shows a schematic diagram of the present invention to switch between multiple views. 具体实施方式 DETAILED DESCRIPTION

[0042] 本发明使用多视图加记忆来浏览树形结构数据,包括步骤: [0042] The present invention is a multi-view add memory to browse the tree structure data, comprising the steps of:

[0043] 1)使用树控件构造树形结构数据的主树,将对应该主树的主视图放入树浏览器内; [0043] 1) Use the tree control tree data structure of the main tree, it will be the main tree of the main view into the tree browser;

[0044] 2)根据用户选择的子树构造对应该子树的子视图,将该子视图放入树浏览器内; [0044] 2) according to user-selected sub-tree structure should subtree to view the applet into the tree browser;

[0045] 3)根据用户的切换命令在视图之间进行切换。 [0045] 3) the user to switch commands to switch between views. [0046] 所述构建子视图步骤2)的详细步骤是: [0046] 2) The detailed steps of the building applet steps are:

[0047] 2. 1)用户选择子树; [0047] 2.1) user selects the sub-tree;

[0048] 2. 2)构造一个包括用户所选的树节点及其下级节点的子树; [0048] 2.2), including sub-tree structure of a node and its subordinate node selected by the user;

[0049] 2. 3)隐去当前显示的视图,将对应该子树的子视图放入树浏览器内。 [0049] 2.3) faded view of the currently displayed will be subtree view into the tree browser.

[0050] 所述切换视图步骤3)的详细步骤是: Detailed steps [0050] The switch views in step 3) are:

[0051] 3. 1)将当前视图中子树的状态同步至主视图的主树上,使主视图中对应树节点及其分支的状态与当前视图中子树的状态一致; [0051] 3.1) the state of the current view of the neutron to the main tree tree synchronization main view, the main view corresponding tree nodes and their branches consistent with the state's current view state neutron tree;

[0052] 3. 2)构建子视图,加载用户所选的目标树节点及其下级节点数据,如果目标树节点确定的子视图已经存在,则本步骤省略; [0052] 3.2) Build applet loading target tree node and a lower node data selected by the user, if the target tree node determines the child view already exists, omit this step;

[0053] 3. 3)从主视图的主树上恢复目标视图子树的状态; [0053] 3.3) Recovery in the main tree view, a front view of the target subtree state;

[0054] 3.4)隐藏当前视图并显示目标视图。 [0054] 3.4) hides the current view and display the target view.

[0055] 当用户的操作命令是向上时,则隐去当前显示的视图,转而显示当前视图中根节点的父节点所确定的子视图;当操作命令是返回主视图时,则隐去当前显示的视图,转而显示主视图。 [0055] When the user's operation command is up, then faded view currently displayed, instead of the current view in the root of the parent node to determine the child views; when the command is return to the main view, then faded currently displayed The view changes to show the main view.

[0056] 本发明进一步包括记忆和恢复步骤4):当关闭树浏览器时,记忆当前浏览状态, 再次打开树浏览器时,恢复记忆的浏览状态。 [0056] The present invention further comprises a memory and restore Step 4): When closing the tree browser, view the status of the current memory, when you open the browser again the tree to restore view the status of memory. 其详细步骤是: Detailed steps are:

[0057] 3. 1)用户发出关闭树浏览器命令; [0057] 3.1) close the tree browser user issues a command;

[0058] 3. 2)记录当前视图的根节点; [0058] 3.2) recorded the root of the current view;

[0059] 3. 3)将当前视图的树状态同步至主视图树上; [0059] 3.3) the current state of the tree view are synchronized to the main view of the tree;

[0060] 3. 4)记录主视图树的状态; [0060] 3.4) recording the main view of the state of the tree;

[0061] 3. 5)关闭树浏览器,至此视图已被记忆,下面是恢复步骤; [0061] 3.5) Close tree browser, bringing the view has been memory, the following step is to restore;

[0062] 3. 6)再次打开树浏览器; [0062] 3.6) to open the browser again tree;

[0063] 3. 7)加载主视图树,从记录里恢复主视图树的状态; [0063] 3.7) to load the main view of the tree, to recover from the record in the main view of the state of the tree;

[0064] 3. 8)打开子视图,加载记录里的根节点,根据主视图树的状态恢复子视图树的状态。 [0064] 3.8) to open the applet loaded record in the root node, restore the state of a child view tree according to the state of a front view of the tree.

[0065] 下面详细说明 [0065] The following detailed description

[0066] 一、多视图浏览 [0066] First, the multi-view browsing

[0067] 一个完整的树形结构数据有许许多多的视图,树形结构上的每个树节点都能唯一确定一个视图,如图1所示,10所代表的是由树节点A确定的完整树形结构视图,即为主视图;20所代表的是由树节点F确定的子视图,该视图展示树节点F、G和H ;30所代表的是由树节点C确定的子视图,该子视图展示树节点C及其下级节点。 [0067] A complete tree structure data have many views, each tree node on the tree can be assigned a unique view, as shown in FIG. 10 is determined as represented by the tree node A 1 of complete tree view, namely the main view; 20 is represented by a tree node F determines the child view that shows a tree node F, G and H; 30 is represented by a tree node C determine child views, The applet shows the tree node C and a lower node. 当然其它节点如B、D等也确定了自己的视图。 Of course, other nodes such as B, D, also to determine their own views.

[0068] 在本发明中,所有视图都在同一个窗口的同一个位置展示,且每次只能展示一个视图,当一个视图可见时,其它视图都处于隐藏状态,每个视图都有一个树控件与之对应, 负责展示该视图中的数据。 [0068] In the present invention, all views are in the same position of a window with a display, and you can only show one view, when a view is visible, all other views are hidden, each view has a tree control corresponding charge display data in this view.

[0069] 由于背后存在多个视图,窗口每次又只显示一个视图,因此,必须提供多个命令, 使用户能够在多个视图间自由切换,本发明提供如下3个视图切换命令:“进入”、“向上”和“返回主视图”。 [0069] Due to the presence of multiple views behind the window every time they show only one view, therefore, must provide multiple commands, allowing users to switch between multiple views, the present invention provides the following three views handover command: "Enter "," Up "and" return to the main view. "

[0070] “进入”命令用来显示当前视图选中节点所确定的子视图,以图1来说明,用户在10所示的视图中选中11所示的F树节点,执行12 “进入”命令,窗口就显示20所示的视图,20所示的视图中21所指示的F树节点及其分支的状态与10所示的视图中11所指示的F节点及其分支的状态完全一致。 [0070] "enter" command to display the current view of the selected nodes as determined by the child views to FIG. 1 will be described, the user selects a tree node F 11 10 shown in the view, the implementation of 12 "enter" command, F window is displayed exactly the same tree node and its branches status view 20 view 20 instructions in 21 and 10 in view of the state of 11 F indicated node and its branches. 同样,用户在30所示的视图中选中31所示的F树节点, 执行33 “进入”命令,窗口就显示20所示的视图,20所示的视图中21所指示的F树节点及其分支的状态与30所示的视图中31所指示的F节点及其分支的状态完全一致。 Similarly, the user select the view 30 shown in FIG. 31 F tree node, perform 33 "enter" command, as shown in the view window 20 is displayed, F node tree view 21 in Figure 20 and indicated 30 state branches and the view shown in a state 31 F node indicated its branches exactly.

[0071] “向上”命令用来显示当前视图根节点的父节点所确定的子视图,可以用来扩大显示范围,以图1来说明,用户在20所示的视图中执行23 “向上”命令,窗口就显示30所示的视图,该视图中32所示C树节点及其分支的状态与10所示的主视图中C树节点及其分支的状态完全一致。 [0071] "up" command to display the current view of the root node of the parent node determined applet can be used to expand the display range will be described in FIG. 1, the user performs 23 "up" command in the view of Fig. 20 , the window displays the view 30 shown, exactly this view C tree node and its state branches of Fig. 32 in front view 10 C tree branch nodes and their status.

[0072] “返回主视图”命令用来显示主视图,不管当前显示的是哪个子视图,用户都可以使用该命令显示主视图,查看完整树形结构数据,以图1来说明,如果当前显示的是20所示的视图,执行22所示的“返回主视图”命令即可显示主视图,如果当前显示的是30所示的视图,执行;34所示的“返回主视图”命令也可显示主视图。 [0072] "return to the main view" command is used to display the main view, regardless of the current shows which sub-view, the user can use this command to display the main view, to view the complete tree structure data will be described in FIG. 1, if the current display 20 is a view shown in Figure 22 to perform the "return to the main view" command to display the main view, if the currently displayed view Figure 30, the Executive; "return to the main view" command can also be shown in 34 show a front view.

[0073] 视图切换步骤如下: [0073] switch the view as follows:

[0074] 步骤1 :用户发出视图切换命令; [0074] Step 1: The user issues a command to switch the view;

[0075] 步骤2 :将当前视图中子树的状态(包括展开和选中状态等)同步至主视图的主树上,使主视图中对应树节点及其分支的状态与当前视图中子树的状态一致; [0075] Step 2: The current state of view subtrees (including expansion and checked, etc.) to synchronize to the main tree of the main view, the main view of the state of the corresponding node tree and its branches to the current view of subtrees the same state;

[0076] 步骤3 :新建子视图,加载目标树节点及其下级节点数据,如果目标树节点确定的子视图已经存在,则本步骤省略; [0076] Step 3: Create a new applet to load the target tree node and a lower node data, to determine if the target tree node child view already exists, omit this step;

[0077] 步骤4 :从主视图的主树上恢复目标视图子树的状态; [0077] Step 4: Restore from the main tree view, a front view of the target subtree state;

[0078] 步骤5 :隐藏当前视图并显示目标视图。 [0078] Step 5: hide the current view and display the target view.

[0079] 本方法的优点如下:如果树型结构数据比较大,用户又往往只关心一个或某几个小分支,采用此种多视图方式浏览,用户既能够单独浏览某个树分支,又能够随时查看完整的树,这样就不会由于树太大而分散用户的注意力,同时,在视图间导航时,又能够保持树状态的一致性,过渡平滑,既增加浏览效率,又提高浏览体验。 [0079] advantages of this method are as follows: If the tree data structure is relatively large, the user is often only interested in one or a few small branches, the use of such multi-view mode browser, users can either browse a tree branch alone, but also to View the complete tree at any time, so it will not because the tree is too big and distracting, while navigating between views, but also to maintain a consistent state tree, the transition smooth, both to increase browsing efficiency, and improve the browsing experience .

[0080] 下面再对步骤2中出现的“同步”的概念进行解释并说明实现同步的做法: [0080] Here again "Sync" concept appears in step 2 to be explained and synchronized approach:

[0081] 状态同步:以图1的例子来解释,当浏览器显示子视图20时,用户可以单击F节点左边的“_”符号使G和H隐藏起来,这时子视图20将只显示F节点(用来显示子视图的树控件都拥有该功能),而处于后台隐藏状态的主视图10上,G和H节点却处于显示状态。 [0081] state synchronization: In the example in Figure 1 to explain, when the browser displays 20:00 applet, the user can click on the left F node "_" symbol to make G and H hidden, then the child view will only show 20 F node (to display a tree view control's children have this feature), while in the background a front view of the hidden 10, G and H node is at a display. 因此,必须使主视图10上的F处于非展开状态,G和H节点隐藏,这样才能保证两个视图中相同节点的状态一致。 Therefore, we must make the main view on the F 10 in a non-expanded state, G and H hidden nodes, so as to guarantee the status of the two views in the same node of the same.

[0082] 实现同步的做法: [0082] synchronized approach:

[0083] 首先记录子视图20各节点的状态: [0083] The first recorded child view the status of each node 20:

[0084] F是否展开(否)是否选中(否) [0084] F is expanded (NO) is selected (NO)

[0085] G是否展开(否)是否选中(否) [0085] G is expanded (NO) is selected (NO)

[0086] H是否展开(否)是否选中(否) [0086] H is expanded (NO) is selected (NO)

[0087] 然后设置主视图上对应节点的状态: [0087] and then set the corresponding node on the main view of the state:

[0088] F收起F不选中 [0088] F F Unchecked Collapse

[0089] G收起G不选中[0090] H收起H不选中 [0089] G G Collapse uncheck [0090] H H uncheck Collapse

[0091] 二、记忆与恢复浏览状态 [0091] Second, the memory and restore the view state

[0092] 采用本方法,树浏览器可以迅速恢复至上次关闭时的浏览状态,使用户避免每次打开树浏览器时都要逐级展开至其关注的树节点或打开相应的视图。 [0092] According to the present method, the tree browser to view the status can be restored quickly when last closed, allowing users to avoid the tree every time you open your browser to be progressively expanded to a tree node to its attention or to open the corresponding view.

[0093] 记忆与恢复步骤如下: [0093] memory and recovery steps are as follows:

[0094] 步骤1 :用户发出关闭树浏览器命令; [0094] Step 1: The user sends a command to close the tree browser;

[0095] 步骤2 :记录当前视图根节点; [0095] Step 2: Record the current view of the root;

[0096] 步骤3 :将当前视图的树状态同步至主视图树上; [0096] Step 3: A tree view of the current state of synchronization to the main view of the tree;

[0097] 步骤4 :记录主视图树的状态; [0097] Step 4: Record a front view of the state of the tree;

[0098] 步骤5 :树浏览器关闭,至此视图已被记忆,下面是恢复步骤; [0098] Step 5: Tree browser is closed, bringing the view has been memory, the following step is to restore;

[0099] 步骤6 :再次打开树浏览器; [0099] Step 6: Open the tree browser again;

[0100] 步骤7 :加载主视图树,从记录里恢复主视图树的状态; [0100] Step 7: Load the main view of the tree, to recover from the record in the main view of the state of the tree;

[0101] 步骤8 :打开子视图,加载记录里的根节点,根据主视图树的状态恢复子视图树的状态。 [0101] Step 8: Open the applet to load record in the root node, restore the state of a child view tree according to the state of a front view of the tree.

[0102] 每次打开浏览时,各个树节点的展开和选中状态完全与上回关闭时一致,即自动记忆树的状态。 [0102] When you open the browser, expand and check the status of each node in the tree on the back each time exactly closed and that the automatic memory state of the tree.

Citations de brevets
Brevet cité Date de dépôt Date de publication Déposant Titre
CN1614927A *18 nov. 200411 mai 2005北京锐安科技有限公司Method for realizing tree-shaped structure in B/S structure
CN101470727A *24 déc. 20071 juil. 2009新奥特(北京)视频技术有限公司Method and system for editing and processing tree-form data
US7343378 *29 mars 200411 mars 2008Microsoft CorporationGeneration of meaningful names in flattened hierarchical structures
Citations hors brevets
Référence
1 *《TreeSize Free 2.7》 20110201 TreeSize TreeSize Free 2.7 http://www.geardownload.com/system/treesize-free-download.html 全文 1,2 ,
Référencé par
Brevet citant Date de dépôt Date de publication Déposant Titre
US95823689 mars 201428 févr. 2017Tencent Technology (Shenzhen) Company LimitedMethod and apparatus for text input protection
WO2014153970A1 *26 nov. 20132 oct. 2014Tencent Technology (Shenzhen) Company LimitedMethod and apparatus for text input protection
Classifications
Classification internationaleG06F17/30
Événements juridiques
DateCodeÉvénementDescription
6 juil. 2011C06Publication
24 août 2011C10Request of examination as to substance
14 nov. 2012CORBibliographic change or correction in the description
Free format text: CORRECT: INVENTOR; FROM: LIN JINZHI BAO XIAOJUN ZHENG BOWEN TO: LIN JINZHI BAO XIAOJUN ZHENG BOWEN WEN XIAOLONG
14 nov. 2012C53Change or modification
2 janv. 2013C14Granted