> From: [EMAIL PROTECTED] 
> Hi,
>  what do you mean by widget library ?

Hello Jerome,

I'm working on a application which has many fields.
Many pages will have the same kinds of fields.
The most elemential "field" has 3 items:
1) a container for the items
2) a "label" field
3) a "input" or "display" field

It may be either stacked, where the label sits above
the input/display field, or side by side, eg:

  First Name:      Last name:
  +-----------+    +-----------+
  | Otto      |    | Hirr      |
  +-----------+    +-----------+

or

              +-----------+ 
  First Name: | Otto      |
              +-----------+ ...

This can be had by
<div ...>
  <p ...>First name:</p>
  <p ...><input type="text" /></p>
</div>

Appropriate class and style applications on elements will
generate appropriate effect, stacked, inline, and whether to
float, to clear, etc for alignment. For display, just drop out
the <input> and hang value in the second <p>.

>From this, we can then build up conceptually higher level widgets.

Name widget would include, first, last, middle, suffix, title, etc.

Addr widget would include number, street name, pre&post fix, type, appt/suite 
number, city, state, zip.

Driver's licence would include, number, state, kind, etc

Then we can build a higher level widget like 'person'
to include name, address, id info, etc.

Top level page would be just a few higher level widget components,
maybe layed out into a tabbed display, etc.

These are so common, I'm sure someone else has done something
like this...

..Otto



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to