Textbox

From UG

(Difference between revisions)
Jump to: navigation, search
(Template for spec)
(Template)
 
(18 intermediate revisions not shown)
Line 1: Line 1:
-
[[Category:UI]]
+
[[Category:Widgets]]
== Intro ==
== Intro ==
-
Easily most used UI control.
+
Frequently used UI control.
Used to enter text on forms.
Used to enter text on forms.
-
== Major Attributes ==
+
== Major Functional Attributes ==
 +
=== datatype/format ===
-
=== type/format ===
+
See [[Datatypes]].
-
Type as in "data type".
+
=== validation ===
-
This encompasses "constraints". Normally system validates these.
+
see [[Validation]]
-
Possible values - see [[Datatypes]].
+
=== readonly ===
-
In ZK there are seperate widgets for some datatypes: "intbox", "decimalbox", etc.
+
Values: Y, N.
-
This could/should be defined often "before" the UI - this is a property of class of corresponding object.
+
=== default ===
-
=== validation ===
+
Values:  
-
 
+
* blank
-
This relates to how / when we validate type/format.
+
* constant
-
 
+
* value that comes from DB or memory
-
Possible values:
+
-
 
+
-
* stopOnMax - system will not let user enter more than X chars, it will simply silently stop as if we hit the wall
+
-
* zk validation - typical "real-time" ZK validation - on focus Off bar will appear with "x"
+
-
* on Submit - validate only after user clicked "Submit button". Standard Error pop-up will appear.
+
 +
== Look and Feel attributes ==
=== width ===
=== width ===
Line 39: Line 36:
Most of the times it is defined in number of chars (ZK '''cols''' attribute). But it could be also defined in pixels (ZK '''width''' attribute).
Most of the times it is defined in number of chars (ZK '''cols''' attribute). But it could be also defined in pixels (ZK '''width''' attribute).
-
This is actually almost only style / layout issue.
+
This is actually almost only style / layout issue, could be defined in Style section. So in this case link should be provided instead of repeating definition.
-
=== readonly ===
 
-
Values: Y, N.
 
-
=== default ===
+
== Template ==
-
 
+
-
Values:
+
-
* blank
+
-
* constant
+
-
* value that comes from DB or memory
+
-
=== Template for spec ===
+
:: ''default:''  blank, from DB, etc
 +
:: ''datatype/format/Biz Obj:'' [[Datatypes#TBD]] or link to ''Business Object'' wiki
-
{| {{table}} border="1"
+
:: ''required:''       N, Y
-
| '''Attribute:''' || '''Value:'''
+
:: ''validation type:'' [[Validation#zk_standard]], [[Validation#on submit]], [[Validation#ststus line]]
-
|-
+
:: ''readonly:''       N, Y
-
| type/format: || tbd
+
-
|-
+
-
| validation:   || tbd
+
-
|-
+
-
| width:        || tbd
+
-
|-
+
-
| read-only:    || tbd
+
-
|-
+
-
| default:      || tbd
+
-
|-
+
-
|}
+
-
== Links ==
+
== See also ==
* http://en.wikipedia.org/wiki/Text_box
* http://en.wikipedia.org/wiki/Text_box

Current revision as of 20:41, 22 February 2010


Contents

[edit] Intro

Frequently used UI control.

Used to enter text on forms.

[edit] Major Functional Attributes

[edit] datatype/format

See Datatypes.

[edit] validation

see Validation

[edit] readonly

Values: Y, N.

[edit] default

Values:

  • blank
  • constant
  • value that comes from DB or memory

[edit] Look and Feel attributes

[edit] width

Defines how wide is a textbox on the screen.

Most of the times it is defined in number of chars (ZK cols attribute). But it could be also defined in pixels (ZK width attribute).

This is actually almost only style / layout issue, could be defined in Style section. So in this case link should be provided instead of repeating definition.



[edit] Template

default: blank, from DB, etc
datatype/format/Biz Obj: Datatypes#TBD or link to Business Object wiki
required: N, Y
validation type: Validation#zk_standard, Validation#on submit, Validation#ststus line
readonly: N, Y

[edit] See also

[edit] Figures

[edit] Fig 1

File:Textbox.png

Personal tools