Changeset 324

Show
Ignore:
Timestamp:
04/03/06 16:03:12
Author:
douglm
Message:

Action to initialise create of an event for a given day

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/calendar3/webclient/war/WEB-INF/struts-config.xml

    r323 r324  
    242242         addEvent.jsp page. --> 
    243243    <action    path="/initEvent" 
    244                type="org.bedework.webclient.BwAction" 
     244               type="org.bedework.webclient.BwInitEventAction" 
    245245               name="calForm" 
    246246               scope="session" 
  • trunk/calendar3/webcommon/src/org/bedework/webcommon/BwActionFormBase.java

    r300 r324  
    19271927   * ==================================================================== */ 
    19281928 
     1929  /** Assign event dates based on parameter 
     1930   * 
     1931   * @param dt     Date object representing date 
     1932   */ 
     1933  public void assignEventDates(Date dt) { 
     1934    getEventDates().setFromDate(dt); 
     1935  } 
     1936 
    19291937  /** Return an object containing the dates. 
    19301938   * 
  • trunk/calendar3/webcommon/src/org/bedework/webcommon/EventDates.java

    r187 r324  
    6363import edu.rpi.sss.util.log.MessageEmit; 
    6464 
     65import java.util.Date; 
     66 
    6567/** The dates (and/or duration which define when an event happens. These are 
    6668 * stored in objects which allow manipulation of indiviual date and time 
     
    124126      err.emit(t); 
    125127    } 
     128  } 
     129 
     130  /** We set the time date components from the date. 
     131   * 
     132   * <p>If the end date is a date only value it is adjusted backwards by one 
     133   * day to take account of accepted practice. 
     134   * 
     135   * @param val 
     136   */ 
     137  public void setFromDate(Date val) { 
     138    getStartDate().setDateTime(val); 
     139    getEndDate().setDateTime(val); 
    126140  } 
    127141