Java Programs

PalmOS Programs

Source Code

About us

Postcards

Contact us


Other TwinFeats
sponsored sites:

Sydney Ariana

Gecko Gameworks

MyKidworks

Omaha Martial Arts

Nebraska Chess League

West Omaha Piano

Blog

TwinFeats Software

TFCalender

Kent L. Smotherman
(August 6, 1998)
 

Source code

The TwinFeats Calender is a handy JavaBean for displaying arbitrary calendar data from a text configuration file either stored locally or optionally anywhere on the web. If you want to see the TFCalendar in action we have an sample one already set up . To set up your own calendar the first thing you need to do is create the text configuration file. Here is a sample:

[Omaha Chess Club]
Period=Thursday
Start date=1/1/1997
Freq=1
End date=12/31/2010
details=7:15pm, Southwest Church of Christ at 124th & Center (north side of center)

[Brownell-Talbot Chess Camp]
Start date=8/10/1998
End date=8/14/1998
Period=Day
Freq=1
details=Brownell-Talbott School, Omaha. Contact the school or Karen Bowley, Brownell-Talbot School, 400 N. Happy Hallow Blvd, Omaha, NE 68132

[Eastern Nebraska Open]
Start date=8/22/1998
End date=8/23/1998
Period=Day
Freq=1
details=POY event, Eppley Airport Ramada Inn, Omaha (Bruce Draney)

The format of this file isn't terribly complex but it is still quite powerful to describe just about any kind of event. Each event to describe in the file starts with a line like:

[Omaha Chess Club]

This line specifies the event name which will be displayed in the calendar. There are five lines that follow:

Start date=1/1/1997

The starting date for the event, which MUST be in the form month/day/year.

End date=12/31/2010

The ending date for the event, may be the same as the start date for single day events.

Period

This specifies the nature of a recurring event, it must be one of day,week,month,year,day of week (monday,tuesday,etc). Examples: For an event that is every day for a given date range you would use day. For events that are occur on a weekly basis use week.

Freq

This specifies the frequency of the period for a recurring event, it must be a number or one of first,second,third,fourth,last. Any of these options except a number is only valid with a day of week Period.

details

This specifies the details describing this event. It MUST be a single line, but can be as long as you like!

If you have any questions, just let me know!
 


Copyright 2003, TwinFeats Software