简体   繁体   English

多级网格的UI设计模式

[英]UI design pattern for multi level grid

currently I have a requirement to display related items in a multi level grid. 目前我要求在多级网格中显示相关项目。 that is great grandparent -> grandparent-> parent-> child 这是伟大的祖父母 - >祖父母 - >父母 - >孩子

For example: Country-> state->City->Street is the order of display. 例如:Country-> state-> City-> Street是显示顺序。

The proposed solution is to display all these in a multi level grid (4 levels maximum). 建议的解决方案是在多级网格中显示所有这些(最多4个级别)。

Country -> state ->City ->Street 国家 - >州 - >城市 - >街

Since I am not comfortable with this solution with respect to usability aspect, I am looking for a UI design pattern that will break up the display into logical units. 由于我对可用性方面的解决方案不满意,我正在寻找一种将显示分解为逻辑单元的UI设计模式。

thanks 谢谢

When you have data objects from two different levels of the same hierarchy, you can: 当您拥有来自同一层次结构的两个不同级别的数据对象时,您可以:

  • Put each level in a different window (or page, lightbox) and allow navigation between them. 将每个级别放在不同的窗口(或页面,灯箱)中,并允许在它们之间导航。 I call this drill-down . 我称之为深入研究

  • Put each level in a different pane of the same window (or page), where placing focus on an object in the superordinate pane populates the subordinate pane. 将每个级别放在同一窗口(或页面)的不同窗格中,其中将焦点放在上级窗格中的对象上会填充从属窗格。 I call this master-detail (this includes cascading lists and is not to be confused with drill-down above). 我称之为主 - 细节 (这包括级联列表,不要与上面的深入分析混淆)。

  • Put both levels in the same pane, indenting the subordinate objects under each superordinate object, and usually providing controls to hide and show the subordinate objects for each superordinate object. 将两个级别放在同一窗格中,缩进每个上级对象下的下级对象,并通常提供控件来隐藏和显示每个上级对象的下级对象。 I call this a tree . 我称之为

With a hierarchy of multiple levels, you can use any combinations of these. 使用多个级别的层次结构,您可以使用这些级别的任何组合。 Here are some guidelines for deciding how to relate any adjacent levels in the hierarchy. 以下是一些决定如何关联层次结构中任何相邻级别的指南。

Put the levels in a tree if 如果,将等级放在树中

  • The number of levels in the hierarchy varies arbitrarily with each data object (like folders). 层次结构中的级别数随每个数据对象(如文件夹)而任意变化。

  • The user will be regularly comparing the subordinate objects of two or more superordinate objects that are near each other in the sort order (the user can then expand the tree for both superordinate objects to see the suboridinate objects all at once). 用户将定期比较排序顺序中彼此靠近的两个或多个上级对象的下级对象(然后,用户可以为两个上级对象展开树,以一次查看所有子对象)。

Put the levels in a master-detail relationship if: 在以下情况下将级别置于主 - 详细信息关系中:

  • You're showing more than one or two attributes per object (eg, more than just the name), and each level has different attributes. 您为每个对象显示多个或两个属性(例如,不仅仅是名称),并且每个级别具有不同的属性。

  • There is more than one class of subordinate objects for the superordinate objects. 上级对象有多个从属对象类。

  • There are many-to-many relations that you'll be displaying. 您将展示多对多关系。

For details see Hierarchy Visual Design 有关详细信息,请参阅层次结构Visual Design

Put the levels in a drill-down relationship if: 如果出现以下情况,请将级别置于下钻关系中:

  • The amount of information to show for each level is simply too large to fit in a single reasonably sized window. 每个级别显示的信息量太大,无法放入单个合理大小的窗口中。

  • The task dictates that the user may transition from one level to the other but the user doesn't use both levels at the same time (in general, you want to avoid making the user navigate back and forth between windows). 该任务规定用户可以从一个级别转换到另一个级别,但用户不会同时使用这两个级别(通常,您希望避免让用户在窗口之间来回导航)。

  • You're going to need separate windows for different high-level tasks anyway. 无论如何,您将需要单独的窗口来执行不同的高级任务。 This implies you're going to provide a means to directly navigate to the subordinate window without “drilling down” through the superordinate window 这意味着您将提供一种直接导航到下级窗口的方法,而无需通过上级窗口“向下钻取”

Generally drill-down only makes sense if both windows are primary windows (or pages). 通常,只有当两个窗口都是主窗口(或页面)时,向下钻取才有意义。 The subordinate window should not be a dialog box, property window, or lightbox. 从属窗口不应是对话框,属性窗口或灯箱。 If you don't have enough to show in the subordinate window to justify a full-size primary window, then use a master-detail. 如果您没有足够的内容在下级窗口中显示以证明全尺寸主窗口的合理性,那么请使用主 - 详细信息。 Compared to master-detail, a drill-down dialog: 与master-detail相比,下钻对话框:

  • Introduces inconsistency in saving changes. 引入保存更改的不一致性。

  • Creates modes or ambiguity in the z-order (or, in the case of lightboxes, ambiguity on the function of the Back button). 在z顺序中创建模式或模糊(或者,在灯箱的情况下,在Back按钮的功能上模糊)。

  • Lacks a pulldown menu with its basic controls for editing and undoing (in Linux and Windows). 缺少下拉菜单及其用于编辑和撤消的基本控件(在Linux和Windows中)。

  • Does not support window resizing (in Mac and Windows) to provide more flexible viewing of the contents. 不支持窗口大小调整(在Mac和Windows中)以提供更灵活的内容查看。

For more on all the above see http://www.zuschlogin.com/?p=31 . 有关以上所有内容的更多信息,请参阅http://www.zuschlogin.com/?p=31

A common way to break this down might be to do it in 2 or more steps with navigation between them (ie navigation to another page or opening a modal dialog etc.) 打破这种情况的一种常见方法可能是在两个或更多步骤中执行此操作,并在它们之间导航(即导航到另一个页面或打开模态对话框等)

So you could display the first grid/table with 1 or 2 or 3 levels of your hierarchy, and a navigation link to display the remaining levels in a second or subequent lists/tables. 因此,您可以显示第一个具有1或2或3级层次结构的网格/表,以及导航链接以显示第二个或次要列表/表中的剩余级别。

If you're looking for confirmation of some established patterns you could choose from (or combine) these: 如果您正在寻找某些既定模式的确认,您可以选择(或组合)这些模式:

Master/Detail 主/明细

Tree Table 树表

or 要么

Cascading Lists 级联列表

Tree? 树? Like a Windows Explorer view of a file system? 就像文件系统的Windows资源管理器视图一样?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM