Widget toolkit

From Wikipedia, the free encyclopedia

Jump to: navigation, search

A widget toolkit, widget library, or GUI toolkit is a set of generic widgets for use in designing graphical user interfaces. Widgets that are part of a toolkit typically adhere to a unified design specification, including aesthetics and possibly an application framework to lend a sense of overall cohesion both for the program's designer and its users.

A widget toolkit API manages the creation and behavior of a graphical user interface:

  • The graphical user interface is often created as a tree of widgets, some of them supporting interaction with the user (labels, buttons, check box, ...), others being containers that group the other widgets (windows, panels, ...).
  • The content of the widgets tree, and the properties of the widgets, can often be modified at runtime (widgets can be added or removed from the tree).
  • The toolkit handles the user events, as for example when clicking on a button. The action following the detection of the event is not the responsibility of the toolkit, but of the application. For example, if the user selects a file in a file dialog, the file dialog widget behavior and the detection of the user event are managed by the widget toolkit, but the actual action to perform on the file after selection must be performed by the application.

Widget toolkits must have a means to position the widgets in their containers. The simplest way to define their positions is by defining their absolute (on the screen) or relative (to the parent) position in pixels or common distance units, but it is also often possible to lay out the widgets by setting their relative positions without using distance units (see layout manager).

Also, the look and feel of the widgets can be hardcoded in the toolkit, but some widget toolkit APIs decouple the look and feel from the definition of the widgets, allowing the developer to define them at the initialisation of the application or even at runtime (see pluggable look and feel).

Advanced Search
Included Web Search Engines


Safe Search

close

Top Matching Results

Occasionally Search.com will highlight specialized results that are based on the context of your query. Examples of specialized results include specific links to news, images, or video.

Top Matching Results may highlight information from other Search.com pages, content from the CNET Network of sites, or third party content. The listings are based purely on relevance. Search.com does not receive payment for listings in this section but our partners that provide this data may get paid for listing these products.

Sponsored Links

This section contains paid listings which have been purchased by companies that want to have their sites appear for specific search terms and related content. These listings are administered, sorted and maintained by a third party and are not endorsed by Search.com.

Search Results

Search.com sends your search query to several search engines at one time and integrates the results into one list which has been sorted by relevance using Search.com's proprietary algorithm. You can customize the list of search engines included in your metasearch from the preferences.

The search engines that are used in your metasearch may allow companies to pay to have their Web sites included within the results. To view the Paid Inclusion policy for a specific search engine, please visit their Web site. Search.com does not accept payment or share revenue with any search engine partner for listings in this section.