Overview | File | Class | Tree | Index | Help
| The Gravey 2.0 Framework
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## Class MVCCollection

    Object
       |
       +--MVCCollection

class MVCCollection

the MVCCollection "interface" has no code, only an API followed by convention (ie DUCK-TYPING)

      The required "interface" for "collections":
      (1) getCount() - returns number of elements in collection
      (2) getItem( itemKey ) - return specified element
      (3) iterate( function(itemKey,itemObject,itemIndex) ) - calls
          specified function on each element in collection;
          If the function returns a true then the iteration
          stops right there instead of continuing thru rest
          of the elements in the collection
      (4) getMemento() - return a "memento" that can be accepted later
      (5) setMemento(m) - update the current state based on given "memento"
      (6) reset() - empties collection of elements
      (7) dump() - returns debug string with contents of collection
      (8) iterate(func) - invokes func(itemKey,itemObject,itemIndex)
          on each item in collection

See Memento design pattern.
Version: 2.0
Author: Bruce Wallace (PolyGlotInc.com)
Defined in grvMVC.js

Constructor Summary
`MVCCollection ()`

Constructor Detail

### MVCCollection

    MVCCollection()

Version: 2.0
Author: Bruce Wallace (PolyGlotInc.com)

Overview | File | Class | Tree | Index | Help
| The Gravey 2.0 Framework
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Documentation generated by JSDoc on Sun Feb 11 13:28:59 2007