net.sf.advjavacalendar.common
Class CalendarItemUI

java.lang.Object
  extended by com.jgoodies.binding.beans.Model
      extended by net.sf.advjavacalendar.common.CalendarItemUI
All Implemented Interfaces:
com.jgoodies.binding.beans.Observable, java.io.Serializable, CalendarItem

public class CalendarItemUI
extends com.jgoodies.binding.beans.Model
implements CalendarItem

GUI implementation of an calendar item

Author:
probstl
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface net.sf.advjavacalendar.common.CalendarItem
FIVE_MINUTES, ONE_DAY, ONE_HOUR, ONE_MINUTE, QUARTER_HOUR, TEN_MINUTES, TWO_HOURS
 
Constructor Summary
CalendarItemUI()
          Default constructor
CalendarItemUI(Data source)
          Default constructor
 
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 date)
          Sets the start date
 
Methods inherited from class com.jgoodies.binding.beans.Model
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, equals, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, fireMultiplePropertiesChanged, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, getVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CalendarItemUI

public CalendarItemUI()
Default constructor


CalendarItemUI

public CalendarItemUI(Data source)
Default constructor

Method Detail

getStart

public java.util.Date getStart()
Description copied from interface: CalendarItem
Returns the start date of the calendar item

Specified by:
getStart in interface CalendarItem
Returns:
date.

setStart

public void setStart(java.util.Date date)
Description copied from interface: CalendarItem
Sets the start date

Specified by:
setStart in interface CalendarItem
Parameters:
date - The date to set.

getName

public java.lang.String getName()
Description copied from interface: CalendarItem
Returns the name of the item

Specified by:
getName in interface CalendarItem
Returns:
name.

setName

public void setName(java.lang.String name)
Description copied from interface: CalendarItem
Sets the name of the item

Specified by:
setName in interface CalendarItem
Parameters:
name - The name to set.

getDuration

public java.lang.Long getDuration()
Description copied from interface: CalendarItem
Returns the duration of the calendar item

Specified by:
getDuration in interface CalendarItem
Returns:
duration.

setDuration

public void setDuration(java.lang.Long duration)
Description copied from interface: CalendarItem
Sets the duration of the item

Specified by:
setDuration in interface CalendarItem
Parameters:
duration - The duration to set.

getSource

public Data getSource()
Description copied from interface: CalendarItem
Returns the data element where this item is from

Specified by:
getSource in interface CalendarItem
Returns:
See Also:
CalendarItem.getSource()


Copyright © 2008 null. All Rights Reserved.