B0749SL7NW EBOK by Unknown

B0749SL7NW EBOK by Unknown

Author:Unknown
Language: eng
Format: azw3
Publisher: UNKNOWN
Published: 0101-01-01T00:00:00+00:00


49

Figure 3.2 The architecture of a typical client/server application Tier 1, the client tier, comprises the UI; tier 2, the server tier, comprises the business objects of the application; tier 3, the persistent data tier, comprises data storage components such as data files and database tables. In the case of the themed application, the third tier comprises a data file that stores an array of members of the Media Store. In a typical client/server application, the UI interacts with the server-side objects which, in turn, interact with the data tier. In other words, the UI interacts with the server-tier; the UI does not access the data tier directly.

The double-headed arrow (in the figure) that implies that the client and server tiers are connected is, in the case of a standalone application, an indication that the client and server tiers are deployed in the same address space. In the case of a networked application, the connection between the client and server tiers will either be an intranet or the Internet.

Now that we have placed user interfaces in the context of a client/server architecture, the next section moves on to find out how a UI is constructed.

3.3 The Construction of User Interfaces

In broad terms, there are two principal stages in the construction of a UI.

1. Organising UI components;

2. Activating UI components. Stage 1 involves organising the layout and relative positions of UI components such as buttons, text fields and so on; stage 2 involves activating those components that are designed to call methods implemented in server-side classes in response to the user ‘operating’ the component.

3.3.1 Organising User Interface Components: Some Examples

The principal task associated with graphical user interface (GUI) design involves making decisions about organising UI components (also known as controls) into what are known as containers. • A container is an object that can contain components and other containers;

• a component is an object that is (usually) visible when the GUI is displayed;

• a layout manager is an object that is used to organise the position of components in their container.

The aim of the examples that follow is to illustrate a structured approach to GUI design. At the end of the set of examples, we will be in a good position to make a number of points about classes used to organise and contain components.

Example One

Figure 3.3 shown a simple GUI; its code is shown on the next page. The reader should read the comments in the code in order to get an initial understanding about how the GUI is created.

CHINA. Less than a decade ago,

type 2 diabetes was very rare

in China. Today more than 90

million people have the disease

or its precursor.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Popular ebooks
IMAGINES: Celebrity Encounters Starring You by Anna Todd & Leigh Ansell & Rachel Aukes & Doeneseya Bates & Scarlett Drake & A. Evansley & Kevin Fanning & Ariana Godoy & Debra Goelz & Bella Higgin & Blair Holden & Kora Huddles & Annelie Lange & E. Latimer & Bryony Leah & Jordan Lynde & Laiza Millan & Peyton Novak & C.M. Peters & Michelle Jo & Dmitri Ragano & Elizabeth A. Seibert & Rebecca Sky & Karim Soliman & Kate J. Squires & Steffanie Tan & Kassandra Tate & Katarina E. Tonks & Marcella Uva & Tango Walker & Bel Watson & Jen Wilde & Ashley Winters(433723)
The Cross and the Curse (The Bernicia Chronicles Book 2) by Harffy Matthew(93094)
Icehenge by Kim Stanley Robinson(57142)
Sita - Warrior of Mithila (Book 2 of the Ram Chandra Series) by Amish(55328)
Crystal Cove by Lisa Kleypas(39342)
The Conquerors (The Winning of America Series Book 3) by Eckert Allan W(39239)
The Crystal Crypt by Dick Philip K(37073)
In Control (The City Series) by Crystal Serowka(36367)
The Crystal Egg by Wells H.G(35716)
The Wolf Sea (The Oathsworn Series, Book 2) by Low Robert(35385)
We Ride Upon Sticks by Quan Barry(34755)
Crowbone (The Oathsworn Series, Book 5) by Low Robert(33793)
The Book of Dreams (Saxon Series) by Severin Tim(33539)
Cecilia; Or, Memoirs of an Heiress — Volume 1 by Fanny Burney(32727)
Cecilia; Or, Memoirs of an Heiress — Volume 2 by Fanny Burney(32093)
Cecilia; Or, Memoirs of an Heiress — Volume 3 by Fanny Burney(32069)
Evelina by Fanny Burney(27012)
Fanny Burney by Claire Harman(26737)
Evelina, Or, the History of a Young Lady's Entrance into the World by Fanny Burney(26371)
Beautiful Disaster by McGuire Jamie(25466)