net.sf.borg.ui.calendar
Class DateZone

java.lang.Object
  extended by net.sf.borg.ui.calendar.DateZone

 class DateZone
extends Object

A DateZone is used to mark a rectagular area on the calendar UIs that corresponds to a particular date. It provides the popup menu and the on-click action that occurs when the user clicks on a date, but outside of any other calendar items


Constructor Summary
DateZone(Date d, Rectangle bounds)
          constructor.
 
Method Summary
 Rectangle getBounds()
          Gets the bounds.
 Date getDate()
          Gets the date.
 JPopupMenu getMenu()
          Gets the popup menu.
(package private)  void onClick()
          take action on a user mouse click - open an appt editor for a new appt
 void setBounds(Rectangle bounds)
          Sets the bounds.
 void setDate(Date date)
          Sets the date.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateZone

public DateZone(Date d,
                Rectangle bounds)
constructor.

Parameters:
d - the date that this zone represents
bounds - the bounds of this zone
Method Detail

getBounds

public Rectangle getBounds()
Gets the bounds.

Returns:
the bounds

getDate

public Date getDate()
Gets the date.

Returns:
the date

getMenu

public JPopupMenu getMenu()
Gets the popup menu.

Returns:
the popup menu

onClick

void onClick()
take action on a user mouse click - open an appt editor for a new appt


setBounds

public void setBounds(Rectangle bounds)
Sets the bounds.

Parameters:
bounds - the new bounds

setDate

public void setDate(Date date)
Sets the date.

Parameters:
date - the new date


Generated September 24 2010 by mbb using Apache Ant version 1.7.1 compiled on June 27 2008 and Java version 1.6.0_20 from Sun Microsystems Inc. on Linux i386 2.6.24-28-generic