⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 defaultdatastore.java

📁 The program is used for the calculations of the day , week , month on the calendar .
💻 JAVA
字号:
package us.k5n.ical;import java.util.Vector;/**  * A simple implementation of the DataStore interface.  This is the default  * implementation used by the IcalParser class.  * @version $Id$  * @author Craig Knudsen, craig@k5n.us  * @see IcalParser  */public class DefaultDataStore  implements DataStore{  Vector timezones, events, todos, journals, freebusys;  /**    * Constructor    */  public DefaultDataStore ()  {    timezones = new Vector ();    events = new Vector ();    todos = new Vector ();    journals = new Vector ();    freebusys = new Vector ();  }  /**    * This method will be called the parser finds a VTIMEZONE object.    */  public void storeTimezone ( Timezone timezone )  {    timezones.addElement ( timezone );  }  /**    * This method will be called the parser finds a VEVENT object.    */  public void storeEvent ( Event event )  {    events.addElement ( event );  }  /**    * This method will be called the parser finds a VTODO object.    */  public void storeTodo ( Todo todo )  {    todos.addElement ( todo );  }  /**    * This method will be called the parser finds a VJOURNAL object.    */  public void storeJournal ( Journal journal )  {    journals.addElement ( journal );  }  /**    * This method will be called the parser finds a VFREEBUSY object.    */  public void storeFreebusy ( Freebusy freebusy )  {    freebusys.addElement ( freebusy );  }  /**    * Get a Vector of all Event objects    */  public Vector getAllEvents ()  {    return events;  }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -