r1 - 12 Apr 2007 - 17:00:47 - BobbyRulloYou are here: OSAF >  Journal Web  >  BobbyRulloNotes > WhatAPIDoesUINeedForRecurrence

Smart Getters and Setters

Originally I thought you could just have recurrence instances which "come from" master events by calling for example var instance = master.getInstance(someDate); This would create an instance item which has a reference back to the master one. If you called instance.getDisplayName() for instance, it would be "smart" enough somehow to first see if the master item contains a modification item for the given date, and if so is the displayName property overridden, and if so return that value and if not return the master item's displayName.

As far as I can tell that works just fine for just getting the value of a particular property on an event. It's a little trickier I think

Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r1 | More topic actions
 
Open Source Applications Foundation
Except where otherwise noted, this site and its content are licensed by OSAF under an Creative Commons License, Attribution Only 3.0.
See list of page contributors for attributions.