GUI widget

From Wikipedia, the free encyclopedia
Jump to: navigation, search
This article is about reusable components for building user interfaces. For small desktop/web applications, see widget engine. For other uses, see widget (disambiguation).
Various widgets.

In computer programming, a widget (or control) is an element of a graphical user interface (GUI) that displays an information arrangement changeable by the user, such as a window or a text box. The defining characteristic of a widget is to provide a single interaction point for the direct manipulation of a given kind of data. In other words, widgets are basic visual building blocks which, combined in an application, hold all the data processed by the application and the available interactions on this data.
Contents
[hide]

* 1 History and Use
* 2 Etymology
* 3 List of common generic widgets
* 4 See also
* 5 References

[edit] History and Use
Example of enabled and disabled widgets; the panel at the bottom is disabled.

A family of common reusable widgets has evolved for holding general information based on the Palo Alto Research Center Inc. research for the Xerox Alto User Interface. Different implementations of these generic widgets are often packaged together in widget toolkits, which programmers use to build graphical user interfaces (GUIs). Most operating systems include a set of ready-to-tailor widgets that a programmer can incorporate in an application, specifying how it is to behave. Each type of widgets generally is defined as a class by object-oriented programming (OOP). Therefore, many widgets are derived from class inheritance.

In the context of an application, a widget may be enabled or disabled at a given point in time. An enabled widget has the capacity to respond to events, such as keystrokes or mouse actions. A widget that cannot respond to such events is considered disabled. The appearance of disabled widget is typically different from an enabled widget; the disabled widget may be drawn in a lighter color, or may be visually obscured in some way. See the image to the right for an example.

Widgets are sometimes qualified as virtual to distinguish them from their physical counterparts, e.g. virtual buttons that can be clicked with a mouse cursor, vs. physical buttons that can be pressed with a finger.

A related (but different) concept is the desktop widget, a small specialized GUI application that provides some visual information and/or easy access to frequently used functions such as clocks, calendars, news aggregators, calculators and desktop notes. These kinds of widgets are hosted by a widget engine.
[edit] Etymology

“Widget” entered American English around 1920 as a generic term for any useful device, particularly a product manufactured for sale. In computer use it has been borrowed as a shortened form of “window gadget”, and as such was first applied to user interface elements during Project Athena in 1988. The word was chosen because “all other common terms were overloaded with inappropriate connotations” and – since the project’s Intrinsics toolkit associated each widget with a window of the underlying X Window System – because of the common prefix with the word window.[1]
[edit] List of common generic widgets
See also: Graphical user interface elements

* Selection and display of collections
o Button — control which can be clicked upon to perform an action
+ Check box — control which can be clicked upon to select or deselect an option. Multiple check boxes in a group may be selected
+ Radio button — control which can be clicked upon to select an option. Only one radio button in a group may be selected
o Slider — control which can be moved up and down or right and left to select a value
o List box
o Spinner — control which has up and down buttons to scroll through a range of values
o Drop-down list
o Menu — control which can be clicked upon to choose a selection to activate
+ Context menu — a type of menu whose contents depend on the context or state in effect when the menu is invoked
+ Pie menu
o Menu bar
o Toolbar
o Ribbon
o Combo box (text box with attached menu or List box)
o Icon
o Tree view
o Grid view
o Cover flow, also named fliptych.

* Navigation
o Tab
o Scrollbar

* Text input
o Text box (edit field)
o Combo box (text box with attached menu)

* Output
o Label — text used to describe another widget
o Tooltip — informational window which appears when the mouse hovers over another control
o Balloon help
o Status bar
o Progress bar
o Infobar

* Containers
o Window
+ Modal window
+ Dialog box
+ Palette window, also known as “Utility window”
# Inspector window
+ Frame

[edit] See also

* Widget toolkit for the implementations of widget programming interfaces
* Widget engine for mostly unrelated, physically inspired “widgets”
* Graphical user interface elements
* Metawidgets are widgets for controlling the operation of other widgets within a GUI.

About eagle081183

Passionate, Loyal
This entry was posted in C#, Problem solving, Software architecture. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s