|Java TM Look and Feel Design Guidelines: Advanced Topics > Part I: General Topics > 4: Behavior > Filtering and Searching a Set of Objects||
When working with a large set of objects, users sometimes want to view only objects with particular properties. For example, a user of an email application might want to see only message headers representing unread messages. Searching and filtering are application features that let a user specify which objects a window should display, based on the user's criteria. A user's criteria are called a filter (in filtering) or a query (in searching).
If the data displayed in a window is the result of a filter or query, indicate that fact above the data. If possible, indicate which filter or query was used to obtain the data.
If users will use certain filters or queries repeatedly, provide quick access to those filters or queries through visible controls. Filters and queries accessible in this way are called simple filters and simple queries.
To enable users to choose simple filters, you can place menu items on the View menu or in a combo box, as in Figure 40.Figure 40 Simple Filters
In Figure 40, the combo box includes the following items:
For references on task analysis, see "Related Books" on page 4 .
Provide simple filters or simple queries if users need to refer to subsets of information repeatedly.
Users sometimes need to stop a search or filter operation before it is complete--typically, because the operation is taking too long. Users should be able stop a search or filter operation at any time by clicking a command button that, typically, is labeled
Stop Search, or
Indicate a stopped search or filter by placing a message outside the results but near where they are described--for example, in the title area of a table. Figure 42 shows a stopped search indicated by a message ("Stopped by User") displayed above the results. (For more information, see "Letting Users Stop Commands in Progress" on page 111 .)
Figure 42 Stopped Search (Indicated by Text Above the Results)
|Java Look and Feel Design Guidelines: Advanced Topics.
Copyright 2001. Sun Microsystems, Inc. All Rights Reserved.