Jump to: navigation, search

Scout/Concepts/Type of Data

< Scout‎ | Concepts
Revision as of 05:15, 18 January 2011 by Dev.jmini.fr (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Scout
Wiki Home
Website
DownloadGit
Community
ForumsBlogTwitter
Bugzilla
Bugzilla


Scout contains several implementation of fields and columns to cover the most common types of data that are used in business application. These implementations provide formatting and parsing mechanisms (taking care of the locale settings). In some cases a picker is also associated to the field to improve the user experience.

For the developer of a scout application, this also enables to manipulate the value of the field with the corresponding Java Object (no need to cast and to parse the text input).

Types

Text

Integer

Long

Double

Date

Time

Time is store in a Java Date Object (Between 1970-01-01 00:00:00.000 and 1970-01-01 23:59:59.999).

The DateUtility class provides method to convert this value to a double in the interval [0.0, 1.0[ or to combine the time represented in the Date with a Date without any time.

Boolean

Smart<T>

This is not a Java Data type. Smart is a scout concept to designate a smart association realized with CodeType or LookupCall. The Key of type T can be any Serializable java Object (Long, String, …). We speak from a Smart association, because there is more than just a text (display text) associated to the key (Icon, Color, TooltipText...)

See also