Changes between Version 15 and Version 16 of Grits_ProjectPreferenceStore


Ignore:
Timestamp:
03/20/2017 02:53:24 PM (5 years ago)
Author:
shan
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Grits_ProjectPreferenceStore

    v15 v16  
    4545
    4646
    47 {{{preference enum object (as parameter)}}} -> {{{PROJECT PREFERENCE STORE}}} -> {{{preference values (returned)}}}
     47[[BR]]
     48[[Image(preference_store_enum_and_values.png)]][[BR]]
     49__''ProjectPreferenceStore Enum and Values''__
     50[[BR]]
     51
    4852
    4953__Note:__ The simplest ''StringPreference'' is self-contained. It has a single string value that is available in the enum object itself.
     
    6973
    7074=== Working with GritsPreferenceStore ===
    71 {{{Classes using preference values}}} call-> {{{PROJECT PREFERENCE STORE}}} calls-> {{{GRITS PREFERENCE STORE}}}
     75[[BR]]
     76[[Image(using_preference_store.png)]][[BR]]
     77__''Working with GritsPreferenceStore''__
     78[[BR]]
     79
    7280
    7381In GRITS wherever a preference value related to a project is used, ''ProjectPreferenceStore'' is to be called. ''ProjectPreferenceStore'' would first look into its cache and if it is not found then it would call ''GritsPreferenceStore''. It would add these value to its cache so that next time it need not to call ''GritsPreferenceStore''.