home *** CD-ROM | disk | FTP | other *** search
/ Peanuts NeXT Software Archives / Peanuts-2.iso / Developer / webobjects / extensions / win-nt / WOPerl-lite-10e7.exe / Examples / WOPerl / TimeOff / Main.wo / Main.wod < prev   
Encoding:
Text File  |  1996-08-09  |  890 b   |  43 lines

  1. /*
  2.  * Main.wod
  3.  *
  4.  * You may freely copy, distribute and reuse the code in this example.
  5.  * NeXT disclaims any warranty of any kind, expressed or implied, as to
  6.  * its fitness for any particular use.
  7.  *
  8.  * This is the declarations file for the Main (first) page of the
  9.  * TimeOff application.
  10.  *
  11.  */
  12.  
  13.  
  14. NAME:WOTextField {
  15.     value = name;
  16. };
  17.  
  18. PASSWORD:WOPasswordField {
  19.     value = password;
  20. };
  21.  
  22. SUBMIT:WOSubmitButton {
  23.     action = recordTimeOff;
  24.     value = "Record";
  25. };
  26.  
  27. /* 
  28.  * In the following declarations, callBack is a WOAction object that has
  29.  * an associated method, mainPage. mainPage is invoked whenever the
  30.  * callBack object receives an invoke message. For more information, see
  31.  * the comments in Main.wos and Calendar.wos.
  32.  */
  33. START:Calendar {
  34.     selectedDate = startDate;
  35.     callBack = mainPage;
  36. };
  37.  
  38. END:Calendar {
  39.     selectedDate = endDate;
  40.     callBack = mainPage;
  41. };
  42.  
  43.