net.sf.advjavacalendar.common
Interface CalendarItem

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
CalendarItemUI

public interface CalendarItem
extends java.io.Serializable

Interface of all kind of entries in the calendar

Author:
probstl

Field Summary
static long FIVE_MINUTES
          Constant for a five minute interval
static long ONE_DAY
          Constant for the mills of one day
static long ONE_HOUR
          Constant for a half hour, thirty minutes
static long ONE_MINUTE
          Constant for one minute
static long QUARTER_HOUR
          Constant for a quarter hour, fifteen minutes
static long TEN_MINUTES
          Constant for ten minutes
static long TWO_HOURS
          Constant for two hours
 
Method Summary
 java.lang.Long getDuration()
          Returns the duration of the calendar item
 java.lang.String getName()
          Returns the name of the item
 Data getSource()
          Returns the data element where this item is from
 java.util.Date getStart()
          Returns the start date of the calendar item
 void setDuration(java.lang.Long duration)
          Sets the duration of the item
 void setName(java.lang.String name)
          Sets the name of the item
 void setStart(java.util.Date start)
          Sets the start date
 

Field Detail

ONE_MINUTE

static final long ONE_MINUTE
Constant for one minute

See Also:
Constant Field Values

FIVE_MINUTES

static final long FIVE_MINUTES
Constant for a five minute interval

See Also:
Constant Field Values

TEN_MINUTES

static final long TEN_MINUTES
Constant for ten minutes

See Also:
Constant Field Values

QUARTER_HOUR

static final long QUARTER_HOUR
Constant for a quarter hour, fifteen minutes

See Also:
Constant Field Values

ONE_HOUR

static final long ONE_HOUR
Constant for a half hour, thirty minutes

See Also:
Constant Field Values

TWO_HOURS

static final long TWO_HOURS
Constant for two hours

See Also:
Constant Field Values

ONE_DAY

static final long ONE_DAY
Constant for the mills of one day

See Also:
Constant Field Values
Method Detail

getSource

Data getSource()
Returns the data element where this item is from

Returns:

getName

java.lang.String getName()
Returns the name of the item

Returns:

setName

void setName(java.lang.String name)
Sets the name of the item

Parameters:
name -

getStart

java.util.Date getStart()
Returns the start date of the calendar item

Returns:

setStart

void setStart(java.util.Date start)
Sets the start date

Parameters:
start -

getDuration

java.lang.Long getDuration()
Returns the duration of the calendar item

Returns:

setDuration

void setDuration(java.lang.Long duration)
Sets the duration of the item

Parameters:
duration -


Copyright © 2008 null. All Rights Reserved.