uk.co.weft.event
Class EventsDiaryPseudoWidget
java.lang.Object
uk.co.weft.htform.ResourceConsumerImpl
uk.co.weft.domutil.NodeGeneratorImpl
uk.co.weft.htform.Widget
uk.co.weft.htform.TimeStampWidget
uk.co.weft.htform.DateWidget
uk.co.weft.htform.CalendarPseudoWidget
uk.co.weft.event.EventsDiaryPseudoWidget
- All Implemented Interfaces:
- java.lang.Cloneable, NodeGenerator, ResourceConsumer
- public class EventsDiaryPseudoWidget
- extends CalendarPseudoWidget
A wrapper around CalendarPseudoWidget which takes events from the events
database. It generates urls of the form 'dayview?day=yyyy-mm-dd' i.e. ANSI SQL date format.
- Version:
- $Revision: 1.10.4.1 $
This revision: $Author: simon $
$Log: EventsDiaryPseudoWidget.java,v $
Revision 1.10.4.1 2005/12/23 10:48:33 simon
Brute force tidy up after CVS server crash: this time it should work.
Revision 1.10 2004/05/17 07:22:44 simon
Checkpoint: 1.10pre9
Revision 1.9 2004/02/23 18:17:19 simon
Deprecated many (most?) public static finals with mixed case names
in favour of equivalents with ALLUPPERNAMES. Cleaned through the
deprecation warnings which were consequent on this.
Revision 1.8 2003/08/20 09:38:35 simon
Code cleanup with eclipse; mostly removal of exccessive includes
Revision 1.7 2000/09/19 10:35:48 simon
Major changes rationalising Contexts. There is now no Context but Context,
and dbutil is its Package
Revision 1.6 2000/06/29 11:03:49 simon
New widgets to allow (configurable) location and category searches.
Revision 1.5 2000/06/27 19:14:52 simon
Cosmetic changes: made events count configurable.
Revision 1.4 2000/05/12 10:29:12 simon
Changes primarily to allow events with null start and finish times.
Revision 1.3 2000/05/09 17:45:03 simon
Now possible to store events for several different people, and view either
all or just one; in the process the AUTHOR table has become ACTOR
Revision 1.2 2000/05/04 10:50:13 simon
Switch to IBM Java2 compiler; Jacquard 1 Release Candidate 2
Revision 1.1 2000/03/30 11:37:21 simon
Integration with PRES; event-type changed to category.
- Author:
- Simon Brooke (simon@weft.co.uk)
|
Field Summary |
protected java.lang.String |
action
the stub I will use to build action URLs |
protected boolean |
showNumOfEvents
whether or not to show the number of events on each day |
| Fields inherited from class uk.co.weft.htform.TimeStampWidget |
allowUnset, AMPMSUFFIX, DAYSUFFIX, DEFAULTSECONDS, HOURSUFFIX, maxYear, MINUTESUFFIX, minYear, monthname, MONTHSUFFIX, nullMarker, SECONDSUFFIX, showAmPm, showDayWidget, showSecWidget, showYearWidget, YEARSUFFIX |
| Fields inherited from class uk.co.weft.htform.Widget |
ACTIONCSSCLASS, akprompt, attrs, CONTEXTATTRIBUTESSUFFIX, cssClass, DANGEROUSCSSCLASS, debug, DEFAULTTOKEN, dflt, form, generateAs, GENERATEASHTML, GENERATEASXFORM, GENERATEASXML, help, HELPTOKEN, immutable, ISIMMUTABLETOKEN, ISMANDATORYTOKEN, mandatory, MANDATORYCSSCLASS, maxVisibleSize, name, NAMETOKEN, OPTIONALCSSCLASS, PREVIOUSVALUESUFFIX, prompt, PROMPTTOKEN, size, SIZETOKEN, type, TYPETOKEN |
|
Constructor Summary |
EventsDiaryPseudoWidget(java.lang.String name,
java.lang.String prompt,
java.lang.String help)
Nothing special here. |
|
Method Summary |
protected void |
formatDate(Calendar when,
Context context)
Format the content of the cell for an individual date for printing. |
| Methods inherited from class uk.co.weft.htform.TimeStampWidget |
getDateTabPlaces, getTimeTabPlaces, layoutDatePart, layoutDatePart, layoutDateValue, layoutTimePart, layoutTimePart, layoutTimeValue, onloadRequest, postProcess, preProcessDate, preProcessTime |
| Methods inherited from class uk.co.weft.htform.Widget |
clone, generate, generateAttributes, generateAttributes, generateHTML, generateHTMLPrompt, generateValue, generateXML, getContextAttribute, getCssClass, getHeight, getHelp, getName, getPrompt, getType, init, layout, layout, layout, layoutAttribute, layoutAttributes, makeReady, maybeLayout, maybeLayout, onloadRequest, scriptRequest, setAttribute, setContextAttribute, setCssClass, setDebug, setDefault, setHelp, setImmutable, setMandatory, setMandatory, setName, setPrompt, setSize, setType |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
action
protected java.lang.String action
- the stub I will use to build action URLs
showNumOfEvents
protected boolean showNumOfEvents
- whether or not to show the number of events on each day
EventsDiaryPseudoWidget
public EventsDiaryPseudoWidget(java.lang.String name,
java.lang.String prompt,
java.lang.String help)
- Nothing special here.
formatDate
protected void formatDate(Calendar when,
Context context)
throws java.io.IOException,
DataStoreException
- Format the content of the cell for an individual date for printing. In
this case, see if there are any events in the database for the given
date, and if so print the number in brackets as a link to a DayView
for that date.
- Overrides:
formatDate in class CalendarPseudoWidget
- Throws:
unlikely - to throw IOException unless something is horribly
broken;
throws - a DataStoreException if something goes wrong with the
database connection
java.io.IOException
DataStoreException