2009年1月16日 星期五

20090116 和碩團圓(和聯永碩尾牙)日 彭佳慧 and 楊培安



2009年1月4日 星期日

iCal4j 簡單範例 + Flex Calendar

最近有需要幫 使用者做一工作排程程式
找了一下資源
決定使用Flex 開發
Flex己有己前人開發好的 Calendar 元件
http://blog.flexcommunity.net/?p=11
這個版本是採用了 http://www.quietlyscheming.com/blog/components/interactive-calendar/
所做的修改
排程中主要是使用了iCal 的檔案格式來做事件的排定

於是 找了 iCal4J做成產生iCal的底層程式
http://ical4j.sourceforge.net/introduction.html
請下載了相關的jar檔
開始了第一個簡單的範例

























我所貼的這段 請注意在 第24行的部份
我在Run時一定要有 Method 這個Properties
官網範例沒加 會一直出現 週期性農曆約會儲存為 iCalendar 格式
這個$M說明 講的不是很清楚的怪說明

接著就就把 產生的 .ics 檔案按下步驟放到
Calendar程式中


1) open app_code.as
2) on line 81 insert the path to your .ics file

由FlexBuilder執行即可看到所建立的事件















中文沒法出現 但Tip可出現中文,還在了解ing..........