[ https://issues.apache.org/jira/browse/FLEX-11646?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Justin Mclean resolved FLEX-11646. ---------------------------------- Resolution: Duplicate > Consider adding DateRange class for calendar related functionality > ------------------------------------------------------------------ > > Key: FLEX-11646 > URL: https://issues.apache.org/jira/browse/FLEX-11646 > Project: Apache Flex > Issue Type: Improvement > Components: mx: DateChooser > Affects Versions: Adobe Flex SDK 2.0.1 (Release) > Environment: Affected OS(s): All OS Platforms > Affected OS(s): All OS Platforms > Language Found: English > Reporter: Adobe JIRA > > When dealing with date ranges, there are a lot of situations that describe > "an object with rangeStart and rangeEnd properties". It would be better to > use a specific DateRange class, rather than a generic object with those > properties. Then, ArrayElementType can be used for example for the > selectedRanges property, and it would be easier to define these ranges in > mxml. > I've been using my own DateRange class internally on a project and it's been > working great. I have a createFromObject() method that converts a generic > object with rangeStart/rangeEnd into a DateRange instance as well. > Additionally, a createCursor() would be welcome functionality for looping > over the dates in a given range, where the cursor.current would be an > instance of Date. Manipulating the cursor wouldn't really make sense here, > but moveNext() and current makes looping through a date range easier. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira